List voices
The voices a video translation request can use in
voice or voices, instead of a voice modeled on the original speaker. Filter by language, gender and age to offer a shortlist per speaker; filters combine.GET
/v1/dubbing/voicesAPI URL
https://api.sonilo.com/v1/dubbing/voicesSend API requests to https://api.sonilo.com. The platform.sonilo.com/docs pages are documentation only and are not API endpoints.
curl "https://api.sonilo.com/v1/dubbing/voices?language=pt&gender=male&age=senior" \
-H "Authorization: Bearer $SONILO_API_KEY"{
"voices": [
{
"voice_id": "sv_amara",
"name": "Amara",
"gender": "female",
"age": "adult",
"style": "warm, confident",
"languages": [
"en",
"pt",
"pt_br",
"es",
"es_419",
"fr",
"de",
"ja"
],
"preview_url": "https://…/voices/previews/sv_amara/en.mp3?…",
"previews": {
"en": "https://…/voices/previews/sv_amara/en.mp3?…",
"pt": "https://…/voices/previews/sv_amara/pt.mp3?…",
"…": "…"
}
}
]
}Authorization
Authenticate via Bearer token. Generate keys at the API Keys page and pass them in the Authorization header on every request. Keep keys server-side, for example in SONILO_API_KEY.
Authorization: Bearer sk_your_api_keyStore the key server-side, commonly as SONILO_API_KEY. A 401 means the key is missing, invalid, or revoked. A 403 means the key is valid but the account does not have access to that endpoint or workspace.
Query Parameters
languagestringOptional. A video translation language code, e.g.
pt. Returns only the voices that speak it.genderstringOptional.
female or male.agestringOptional.
child, teen, adult or senior. Any other value for a filter returns 422.stylestringOptional. One style tag, or several comma-separated, e.g.
deep,calm; returns only the voices that have all of them. Tags: low-pitch, mid-pitch, high-pitch, warm, bright, deep, soft, clear, husky, smooth, crisp, calm, lively, playful, authoritative, gentle.Response
voicesarrayThe available voices.
voices[].voice_idstringThe ID to send as
voice, or as a value in voices.voices[].namestringDisplay name.
voices[].genderstringfemale or male.voices[].agestringchild, teen, adult or senior.voices[].stylestringA short description of the voice.
voices[].tagsarrayStyle tags: exactly one pitch tag (relative to voices of the same gender and age), then tone and energy. Filter with
style.voices[].languagesarrayThe language codes this voice speaks. A request that pairs a voice with a language it does not speak returns 422.
voices[].preview_urlstring | nullThe English audio sample, or
null. Expires after 24 hours.voices[].previewsobjectA short audio sample for each language this voice speaks: language code → URL. Links expire after 24 hours; list the voices again for new ones.
curl "https://api.sonilo.com/v1/dubbing/voices?language=pt&gender=male&age=senior" \
-H "Authorization: Bearer $SONILO_API_KEY"{
"voices": [
{
"voice_id": "sv_amara",
"name": "Amara",
"gender": "female",
"age": "adult",
"style": "warm, confident",
"languages": [
"en",
"pt",
"pt_br",
"es",
"es_419",
"fr",
"de",
"ja"
],
"preview_url": "https://…/voices/previews/sv_amara/en.mp3?…",
"previews": {
"en": "https://…/voices/previews/sv_amara/en.mp3?…",
"pt": "https://…/voices/previews/sv_amara/pt.mp3?…",
"…": "…"
}
}
]
}