
| Selector | Result |
|---|---|
default | Uses the server default voice |
voice_... | Uses a public catalog voice |
reference | Uses reference audio supplied with this request |
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.
The current voice resource is read-only. It provides voices.list() but no create, update, or delete methods.
On this page