This endpoint is currently not supported.
Translates audio into English text.
Request Parameters
The audio file object (not file name) to translate, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
ID of the model to use. Only whisper-1 is currently available.
An optional text to guide the model’s style or continue a previous audio segment. The prompt should be in English.
The format of the translation output, in one of these options: json, text, srt, verbose_json, vtt.
The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
Response
The translated English text.
curl -X POST https://api.example.com/v1/audio/translations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: multipart/form-data" \
-F file="@/path/to/audio.mp3" \
-F model="whisper-1"
{
"text": "Hello, my name is Wolfgang and I come from Germany. Where are you heading today?"
}