Skip to main content
Send text to POST /v1/audio/speech and get the spoken audio back in the format you ask for. The examples use a client created as in Installation.

Method per language

Rust has no speech method, and its post() helper parses responses as JSON, so it can’t return audio.

Parameters

Field names are the JSON body fields in every SDK. Use format: the API also accepts response_format, but the TypeScript request type rejects it. The full schema is in the Speech API reference.

Set a provider’s own voice

Pass the provider’s exact voice under config. The same nested object works in every SDK’s request map.
Last modified on November 5, 2026