Generate a recording from text

Synthesizes speech from text and stores the result as a WAV recording on your own account. The file is then pushed out to the voice servers, but a push failure is only logged: a 201 does not guarantee every server already has the audio. Speech synthesis is billable.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

Recording name, which also seeds the generated filename; omitting it is a 400.

string

Description; defaults to TTS: followed by the first 100 characters of the input text.

tts
object
required

The synthesis request; it must contain tts.input.

string
required

The text to speak.

string

Speech model to use; defaults to gpt-4o-mini-tts.

string

Voice to speak in; defaults to alloy.

number

Speaking rate; defaults to 1.0.

string

Requested audio format; defaults to wav, and the recording is stored as WAV either way.

string

Optional style instructions for the delivery.

Responses
201

The recording was generated and stored.

401

Missing or invalid API key.

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json