audio_id generated by Suno), this API accepts a publicly accessible audio_url, which is your own voice recording. This document explains how to integrate the voice cloning API.
Step 1: Create a Voice Character
This API has three input parameters:audio_url (required), which is a publicly accessible URL of an MP3 or WAV format audio file containing a clear single voice; name and description (optional), which are the name and description of the voice character.
Audio File Requirements
- The audio format must be
WAVorMP3- The audio duration must be between
10~240 seconds, with a recommendation of using clean single-voice material of30~60 seconds- The audio should contain clear, recognizable single speech or singing voice
- Please avoid background noise, accompaniment, echo, reverb; complete songs with accompaniment usually cannot pass voiceprint verification
- Do not include multiple speakers or multiple voices
- Material with too low volume, unclear speech, or excessive noise may lead to cloning failure or poor generation quality Usage Restrictions
- Voice characters created by uploading audio are private resources
- This voice character does not support cross-account reuse
- It is recommended to use it as soon as it is created; prolonged inactivity may result in expiration or unavailability
- The returned
nameis automatically generated by the system; please refer to the returnedpersona_id
Please retry if the call fails
Voice cloning is a compute-intensive task, and even compliant material has a certain probability of occasional failure, common returns include voices_sound_different (voiceprint verification failed), etc. These failures are unrelated to audio quality, and retrying with the same material usually succeeds. It is recommended to implement 1-2 automatic retries for failure results during integration. Failed requests will not incur charges.
The aboveThe result is as follows:https://cdn.acedata.cloud/suno_demo.mp3is a directly callable example material (MP3, 41 seconds, single dry voice). For aWAVformat example, you can usehttps://cdn.acedata.cloud/uploads/82d23b97-ec1c-4b41-91b8-989fc51f8765(WAV, 41 seconds, mono 44.1kHz).
persona_id field in data is the ID of the created voice character. The is_public field is always false because the voice character created by uploading audio is private. Note that the returned name is automatically generated by the system; please use the persona_id to reference this voice character.
Step 2: Use the Voice Character to Generate Music
With the voice character ID, we can use the Suno Audios Generation API to generate music. Setaction to generate, and set persona_id to the voice character ID returned above; the generated song will be sung using the cloned voice.
Note: Voice cloning only supports modelschirp-v4-5and above (such aschirp-v4-5,chirp-v5,chirp-v5-5), and does not supportchirp-v4.
persona_id can also be used with the cover action to cover existing songs with the cloned voice.
