Docs / Music Series / Suno / Vocals & Voices
Docs / Music Series / Suno / Vocals & Voices
Voice Persona step 2: upload the verification recording and create the persona.
Submit a recording of a real person reading the phrase_text from the previous step, along with the session_id, to verify and create a vocal voice (persona). The endpoint returns a public task_id as soon as the request is accepted; fetch the result through the task query endpoint once it completes.
This is step two of the voice creation flow. The session_id comes from the task ID returned by voice/sample, and the recording must match the phrase_text returned by that task.
Have a real person read the phrase_text and submit the recording. Once complete, the persona_id in the result can be used for subsequent music generation.
You can submit the recording either as a multipart form or as JSON Base64.
Submit the session_id, a real-person recording of the phrase, and a voice name.
| Field | Location | Type | Required | Description |
|---|---|---|---|---|
session_id | body / form / query | string | Yes | Task ID returned by voice/sample |
| Audio | body / form | file / string | Yes | A real-person recording of the phrase_text; provide a Base64 string when using JSON |
name | body / form / query | string | Yes | Voice name |
description | body / form / query | string | No | Voice description |
is_public | body / form / query | bool | No | Whether the voice is public; defaults to false |
user_input_styles | body / form / query | string | No | Style description |
notify_hook | body / form / query | string | No | Callback URL invoked when the task completes |
session_id, the audio, and name are required. The session_id must correspond to a voice/sample task that already returned a verification phrase successfully, and the recording should match the phrase_text returned by that task.
curl --request POST \
--url https://api.apimax.ai/v1/music/voice/create \
--header 'Authorization: Bearer <token>' \
--form 'audio=@/path/to/phrase.mp3' \
--form 'session_id=task_voice_01J...' \
--form 'name=My Voice' \
--form 'is_public=false'{
"session_id": "task_voice_01J...",
"audio": "<base64 verification recording>",
"name": "My Voice",
"description": "Warm, clear vocals",
"is_public": false,
"user_input_styles": "pop",
"notify_hook": "https://example.com/hooks/voice-create"
}{
"code": "success",
"message": "",
"data": "task_voice_02K..."
}| Field | Type | Description |
|---|---|---|
code | string | Response code; fixed to success on success |
message | string | Status message; usually empty on success |
data | string | Public task ID used for subsequent queries |
Errors use the structure below, where error.message is the reason returned by the upstream:
{
"error": {
"code": "upstream_error",
"message": "session_id not found",
"type": "max_api_error",
"upstream": {
"code": "task_request_invalid"
}
}
}| HTTP | error.code | error.message | Scenario |
|---|---|---|---|
| 400 | upstream_error | one of audio or audio_url required | No audio was provided |
| 400 | upstream_error | unsupported media type: body is not a recognized audio format | The audio content is not recognized |
| 400 | upstream_error | session_id not found | No sample session matches session_id |
After a successful submission, poll with the returned task_id:
GET /v1/tasks/:idstatus values#| Value | Description |
|---|---|
queued | The task has been created and is waiting to be processed |
in_progress | The task is being processed |
completed | The task finished; read data |
failed | The task failed; read error |
completed and failed are terminal states; keep polling for any other status.
When the task completes, the data array contains the ID of the created voice, for example:
[
{ "persona_id": "7d20fabc-..." }
]Once you have the persona_id, you can reuse this voice in music generation requests.