SDK
Text to speech

Text to speech

Every native speech request uses client.audio.speech and the teen-v1 model.

Python

speech = client.audio.speech.create(
    model="teen-v1",
    voice="default",
    input="Generate speech with Teen V1.",
    response_format="mp3",
)

Build your speech flow

  1. Select default, a public voice ID, or inline reference audio.
  2. Send text with audio.speech.create().
  3. Save the complete response or consume it while it is generated.
  4. Add generation controls only when the default output needs adjustment.

Continue with

TaskGuide
Create a requestCreate speech
Select a voiceVoices
Choose PCM, MP3, or WAVAudio formats
Stream known textHTTP and SSE streaming
Send text incrementallyWebSocket streaming
Keep an existing provider clientProvider patches
Note

The public method does not accept a language field. The SDK sends the required language value internally and still accepts multilingual input.