Deprecated audio translation endpoint and transcription language

The deprecated /v1/audio/translations endpoint uses whisper-1 to translate a completed audio recording into English.

Verified

On this page

Definition

The deprecated /v1/audio/translations endpoint uses whisper-1 to translate a completed audio recording into English. The endpoint remains available until February 26, 2027. Unlike transcription, which preserves the recording’s original language, this endpoint returns English text only.

File transcription is used when you have a completed recording or a bounded audio request. The Transcriptions API accepts files up to 25 MB. Official documentation recommends gpt-transcribe for transcribing recorded speech in its original language.

The supported input formats include flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, and webm.

At a glance

Transcription preserves the recording’s original language, while the deprecated translations endpoint returns English text only.

  • Transcription with gpt-transcribe: official documentation recommends it for transcribing recorded speech in its original language.
  • The deprecated /v1/audio/translations endpoint: uses whisper-1 on a completed recording and returns English text only.
  • Realtime translation: uses gpt-realtime-translate at /v1/realtime/translations.

The source does not state the order of these points, so they are listed without arrows.

How it works

For gpt-transcribe, languages carries the expected input languages and replaces the singular language field. Do not send both fields. Existing models that accept one language hint use language instead of languages. Supported language-code formats include ISO 639-1 codes such as en, es, and fr, selected ISO 639-3 codes such as eng, spa, yue, and cmn, and regional zh locale codes such as zh-cn, zh-tw, and zh-hk.

The API rejects unsupported or incorrectly formatted language codes. Whisper supports 98 languages, but accuracy varies by language. The timestamp_granularities[] parameter is only supported for the whisper-1 model.

prompt holds unstructured context about the recording, while keywords lists literal terms you expect to hear. Use prompt, keywords, and languages with gpt-transcribe to improve transcription of domain terms and multilingual audio. Keywords are hints, not required output, so include only relevant terms and evaluate whether they improve accuracy without causing unspoken terms to appear.

File transcription can stream partial text while processing a completed recording. It emits transcript.text.delta events during transcription and returns the full text in a final transcript.text.done event. For gpt-transcribe, the final event also includes detected languages. Existing integrations can use the deprecated gpt-4o-transcribe-diarize model through /v1/audio/transcriptions to identify who speaks during different parts of a recording until February 26, 2027. This model does not support prompts.

When stream=true, speaker-labeled responses emit transcript.text.segment events whenever a segment completes. transcript.text.delta events include a segment_id field, but deltas do not include partial speaker assignments. The model assigns a speaker only when it finalizes the segment.

Realtime translation uses gpt-realtime-translate at /v1/realtime/translations. Realtime translation requires a translation session, streamed audio input, and translation events. Changing only the model ID in a /v1/audio/translations request does not migrate it.

Example

In the documented transcription request, the audio file is sent to /v1/audio/transcriptions with gpt-transcribe. The model returns the transcript and the detected languages as JSON. When the model cannot make a reliable language prediction, it returns "languages": [].

Transcription preserves the recording’s original language, whereas the deprecated translations endpoint returns English text only. Avoid splitting in the middle of a sentence, which can remove context and reduce accuracy.

From the official source
python
from openai import OpenAI

client = OpenAI()
audio_file = open("audio.wav", "rb")

transcription = client.audio.transcriptions.create(
    model="gpt-transcribe", file=audio_file
)

print(transcription.text)
From the official source
json
{
  "text": "Bonjour, pouvez-vous m'entendre ?",
  "languages": [{ "code": "fr" }]
}

Sources

This page is written from the official sources below. Open them to check the original text.

Verified ·

This page is written by AI from the official sources above and checked automatically. This site has not tested it. Found a mistake? Tell us.