Skip to main content

Basic Generation

Generate complete audio and receive it all at once:
to_float32(), to_wav_bytes(), and save(..., format="wav") expect PCM16 output. For ulaw_8000 or alaw_8000, use audio.audio as raw G.711 bytes.

Generation parameters

These parameters are accepted by generate(), generate_async(), stream(), and stream_async().

Async Generation

Word Timestamps with Generate

Request word-level time alignments alongside audio when using generate():
Word timestamps are also available with async generation:

Models

List Available Models

Next steps