SDK
Text to speech
Voices
Choose or clone a voice

Voices

Voice selectors

SelectorResult
defaultUses the server default voice
voice_...Uses a public catalog voice
Reference audioZero-shot clones the speaker for one request

List public voices

Python

voices = client.voices.list()

Select a returned ID and pass it to the speech request.

Python

voice = next(item for item in voices.data if item.name.casefold() == "ira")

speech = client.audio.speech.create(
    model="teen-v1",
    voice=voice.id,
    input="Use a public voice.",
    response_format="mp3",
)

Voice IDs are opaque. Store the returned ID instead of building one from a display name.

Note

The current voice resource is read-only. It provides voices.list() but no create, update, or delete methods.