List voices to choose an agent's voice from
GET /Platform/tts/voices
List voices to choose an agent's voice from.
Without provider it lists the platform's default provider; name
another, or all to search every provider. One row per voice; set
its provider, voice_id and default_model_id (or another of
its models) on the agent's tts settings. Open a voice's
sample_url to hear it. A model with a streaming_model_id (in
providers) can stream the rest of each reply in that cheaper model
when the agent's tts.cheaper_streaming is on. Your organization's
custom voices are listed (marked custom); another organization's
never are, and cannot be spoken in or set.
Query parameters
provider: optional "all" or "elevenlabs" or "rime" or "resemble" or "inworld" or 3 more. A provider as in an agent'stts.provider(the platform default when omitted), orall.voice_id: optional str. Only this voice (withprovider), e.g. to show the current one.model_id: optional str. Only voices that can use this model.language: optional str. Only voices that speak this two-letter language code.gender: optional str. Only voices with this gender label, e.g. female.age: optional str. Only voices of this age group: young, adult, middle_aged or senior.accent: optional str. Only voices with this accent, asfacetslists it, e.g. british; search matches part of an accent.style: optional str. Only voices with this tag or use case, e.g. warm or customer support.use_case: optional str. Only voices with this use-case label, e.g. customer support.tag: optional str. Only voices with this tag, e.g. warm.search: optional str. Only voices whose name, description, accent or tags contain this text (any case); when none does, the voices closest in meaning (matchsays which).limit: optional int. Voices per page, at most 200 (default 50).offset: optional int. Voices to skip, for the next page.facets: optional bool. True to also return, on the first page, the values of each filter with how many voices each matches, for building filters.
Returns
VoiceList
voices: List[VoiceOption]. Voices on this page, by name, one row per voice.total: int. Voices matching the filters, across all pages.offset: optional int. Voices skipped before this page.providers: optional List[TTSProviderInfo]. Every provider with its models; filter by one withprovider.facets: optional Dict[str, List[FacetValue]] or null. Withfacets, on the first page: per filter (provider, model, gender, age, language, accent, style), its values by how many voices each matches under the other filters, most first.match: optional "exact" or "similar".exact: the voices contain the search text (or there is no search).similar: none did, so these are the voices closest in meaning to the search, nearest first, on one page.
Example request
curl -X GET "https://api.hilus.ai/Platform/tts/voices" \
-H "Authorization: Bearer $HILUS_API_KEY"