Skip to main content

Audio you send

/v1/transcribe, /v1/translate and /v1/converse read the container from the file’s first bytes, so the file name and content type do not matter. Up to 25 MB and 300 seconds per request. Mono or stereo, any sample rate.

Two ways to send it

The usual way. The file goes in a field named file, the options beside it.

Audio you get back

/v1/speech returns what you ask for with format: /v1/translate (with include_audio) and /v1/converse return the spoken answer as base64 WAV in the JSON.
For people on mobile data, ask for opus: it is a twelfth of the size of WAV and plays in Chrome, Firefox, Android and WhatsApp. For Safari on older iPhones, use mp3.

Long recordings

A request takes up to 5 minutes of audio. For longer recordings, cut them into pieces at silences and send the pieces in order:
Then transcribe piece-000.m4a, piece-001.m4a, … and join the texts. A cut in the middle of a word can lose that word; cutting at a pause (for example with ffmpeg’s silencedetect) avoids it.