Seed Audio 1.5
This guide shows how to generate speech using the Seed Audio 1.5 model via the Leonardo.AI REST API.
Sample Request
curl --request POST \
--url https://cloud.leonardo.ai/api/rest/v2/generations \
--header 'accept: application/json' \
--header 'authorization: Bearer <YOUR_API_KEY>' \
--header 'content-type: application/json' \
--data '
{
"model": "bytedance/seed-audio-1.5",
"public": false,
"parameters": {
"prompt": "Narrator, English, warm and calm, steady pace: \"Welcome back, traveller. The city gates close at sundown, so lets not waste any time.\"",
"voice_id": "multi_female_lisa_v3_uranus_bigtts",
"speed": 1,
"pitch": 0,
"volume": 1,
"quantity": 1,
"sample_rate": 44100,
"output_format": "mp3"
}
}
'API Request Endpoint, Headers, Parameters
Endpoint
https://cloud.leonardo.ai/api/rest/v2/generationsHeaders
--header "accept: application/json" \
--header "authorization: Bearer <YOUR_API_KEY>" \
--header "content-type: application/json"Body Parameters
| Parameter | Type | Definition |
|---|---|---|
| guidances.audio_reference | array | Voice clips that set the timbre or performance. Maximum 6 items. Each item includes audio.id and audio.type (UPLOADED or GENERATED). A preset voice_id counts toward the same 6-item limit. With several speakers, name each clip's speaker in the prompt. Cannot be combined with an image reference. Each item must be 2–30 seconds and under 15 MB, with a maximum of 180 seconds in total. |
| guidances.image_reference | array | An image that guides the voice. Maximum 1 item. Each item includes image (with id and type) and order. Image type is UPLOADED, GENERATED, VARIATION, URL, or BASE64; image.url is required when type is URL, and image.data is required when type is BASE64. Image width and height must be 300 to 6000. Cannot be combined with audio clips, a preset voice, or a video reference. Must be under 10 MB. |
| guidances.video_reference_base | array | A video whose lines and timing the audio follows. Maximum 1 item. Each item includes video.id and video.type (UPLOADED or GENERATED). Add audio clips or a preset voice to set the voice. Cannot be combined with an image reference. Speed stays at normal so the audio keeps in sync. Video width and height must be 300 to 6000. Each item must be 4–60 seconds. The output always lasts as long as the video. |
| model | string | Specifies the model used for generation. Set to bytedance/seed-audio-1.5. Required. |
| output_format | string | The file format of the generated audio. Set to mp3 or wav. Defaults to mp3. |
| pitch | integer | Adjusts the pitch of the generated speech. Ranges from -12 to 12. Defaults to 0. |
| prompt | string | The exact lines to speak, each in quotation marks, and how to perform them: speaker, language, emotion and pace. Required. Maximum of 9999 characters. Speech is required: music and sound effects work only alongside spoken lines. A prompt with no quoted line, or with an unclosed quote, is rejected. With a video reference, quote lines that span the whole video, or start each line with a timestamp range such as [0.0s:10.0s]. A short prompt leaves the rest of the video silent; without a preset voice, it is rejected. |
| public | boolean | Controls whether the generated audio is public (true) or private (false). |
| quantity | integer | The number of outputs to generate. Set to 1. Defaults to 1. |
| sample_rate | integer | The sample rate of the generated audio in Hz. Set to 8000, 16000, 24000, 32000, 44100, or 48000. Defaults to 44100. |
| speed | number | Adjusts the playback speed of the generated speech. Ranges from 0.5 to 2. Defaults to 1. |
| voice_id | string | ID of the preset voice used for speech, or none to describe the voice in the prompt or with audio clips. Defaults to none. A preset voice takes one of the slots shared with the audio reference clips. Cannot be combined with an image reference. See List of Voice IDs below. |
| volume | number | Adjusts the volume of the generated speech. Ranges from 0.5 to 2. Defaults to 1. |
List of Voice IDs
The API accepts the following voice_id values:
| Voice ID | Voice Name | Language | Style |
|---|---|---|---|
none | No preset voice | — | With a video, quote lines across it or add timestamps [0.0s:10.0s] |
multi_female_lisa_v3_uranus_bigtts | Lisa | US English | Conversational |
multi_female_wenrouzhishijieshuonv_v3_uranus_bigtts | Megan | US English | Gentle |
multi_female_skye_v3_uranus_bigtts | Skye | US English | Heartfelt |
multi_male_michael_v3_uranus_bigtts | Hank | US English | Easygoing |
multi_male_jamie_v3_uranus_bigtts | Jamie | US English | Energetic |
multi_male_marcus_v3_uranus_bigtts | Marcus | US English | Deep |
multi_female_authoritative_britishukaudiobook_v3_uranus_bigtts | Charlotte | UK English | Soft-Spoken |
multi_female_yingyujiaoxue_v3_uranus_bigtts | Jean | UK English | Patient |
multi_male_russell_v3_uranus_bigtts | Russell | UK English | Friendly |
multi_male_benukaudiobook_v3_uranus_bigtts | Tobias | UK English | Narrator |
multi_female_vv_xi_v3_uranus_bigtts | Vivi | Mandarin | Approachable |
multi_male_ruyaqingnian_v3_uranus_bigtts | Wen Yu | Mandarin | Articulate |
multi_female_bv166narrator_v3_uranus_bigtts | Freya | Mexican Spanish | Expressive |
multi_male_marcelo_v3_uranus_bigtts | Marcelo | Mexican Spanish | Composed |
multi_female_fr_f47_v3_uranus_bigtts | Camille | French | Clear |
multi_male_fr_m29_v3_uranus_bigtts | Maurice | French | Resonant |
multi_female_bv530_v3_uranus_bigtts | Sofia | Brazilian Portuguese | Lively |
multi_male_bv531_v3_uranus_bigtts | Arthur | Brazilian Portuguese | Steady |
multi_female_bv081_v3_uranus_bigtts | Stella | German | Professional |
multi_male_sven_v3_uranus_bigtts | Sven | German | Husky |
multi_female_bv522_v3_uranus_bigtts | Hana | Japanese | Calm |
multi_male_m1_v3_uranus_bigtts | Hiro | Japanese | Storyteller |
Updated about 4 hours ago
Did this page help you?
