Skip to main content

Text to speech

audio.synthesize returns raw audio bytes.

Speech to text

audio.transcribe accepts raw audio bytes plus a filename hint for format detection.
Argument order differs by language:
  • Python: transcribe(bytes, TranscriptionParams, filename=)
  • Node.js: transcribe(audio, { model }, { filename })
  • Go: Transcribe(ctx, bytes, filename, TranscriptionParams)

Translate audio to English

POST /v1/audio/translations transcribes audio in any language and returns the text translated to English. It returns the same TranscriptionResponse (with a .text field) as transcription.
This is a distinct endpoint from the transcribe-and-translate helper (POST /v1/audio/transcriptions/translate). Use a speech model that supports translation — see the Models list. model is required.
Optional parameters: prompt (context hint), response_format (json, text, or verbose_json), and temperature (0–2).

List voices

ListVoicesParams fields

Get a voice

Fetch a single voice by ID — GET /v1/audio/voices/{voice_id}.

Parameter reference

SpeechParams (text to speech)

AudioTranslationsParams (translate to English)