Audio Transcription - quickstart
Audio Transcription - quickstart
The Audio Transcriptions API provides a dedicated speech-to-text endpoint for uploaded audio files. It features:
- Performant audio transcription with low word error rate (WER)
- A simple multipart upload flow
- Multilingual support
Setting up the audio file
The Audio Transcriptions endpoint accepts FLAC, MP3, MPEG, MPGA, OGG, and WAV files of 25MB or less. For this quickstart, we’ll use the following WAV example.
If you don’t have an audio file already, download the example to follow along.
Passing the audio file
Use the following code to pass the audio file to the Audio Transcription endpoint.
curl
Python
For Cohere Transcribe Arabic, use the following snippet. Note: the sample audio in this quickstart is in English, so language is set to en. For audio files in which the predominant language is Arabic, make sure to set language to ar.