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/voices
API URLhttps://api.sonilo.com/v1/dubbing/voices

Send 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_key

Store 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

languagestring
Optional. A video translation language code, e.g. pt. Returns only the voices that speak it.
genderstring
Optional. female or male.
agestring
Optional. child, teen, adult or senior. Any other value for a filter returns 422.
stylestring
Optional. 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

voicesarray
The available voices.
voices[].voice_idstring
The ID to send as voice, or as a value in voices.
voices[].namestring
Display name.
voices[].genderstring
female or male.
voices[].agestring
child, teen, adult or senior.
voices[].stylestring
A short description of the voice.
voices[].tagsarray
Style tags: exactly one pitch tag (relative to voices of the same gender and age), then tone and energy. Filter with style.
voices[].languagesarray
The language codes this voice speaks. A request that pairs a voice with a language it does not speak returns 422.
voices[].preview_urlstring | null
The English audio sample, or null. Expires after 24 hours.
voices[].previewsobject
A short audio sample for each language this voice speaks: language code → URL. Links expire after 24 hours; list the voices again for new ones.