Documentation
OpenAI Realtime transcription API
Cloud subtitle integration (#251). OpenAI’s translated captions use a different endpoint and session; see the Realtime Translate notes. For subtitles without an account or key, see local Whisper.
Verified 23 November 2026 against OpenAI’s
Realtime transcription guide,
the Transcription overview, the
model pages for gpt-live-transcribe
and gpt-realtime-whisper,
the Realtime client events
and server events
references, and the pricing page. The same day
a live probe confirmed the endpoint and the session shape.
Scope
gpt-live-transcribe is OpenAI’s streaming speech-to-text model: audio in, same-language text
out, as word deltas. It does not translate, so the UI exposes it under Live subtitles,
beside Voxtral, Gemini Transcribe and Whisper.
- Recommended model. The Transcription overview names
gpt-live-transcribeas the starting model for live audio, and saysgpt-realtime-whisper“isn’t the recommended starting model for a new transcription integration”; existing integrations may keep it. The translation engine still usesgpt-realtime-whisperfor its source monitor, which is a different session (openai/client.rs). - Endpoint. Both model pages list Realtime transcription
(
v1/realtime/transcription_sessions) as their only supported endpoint;v1/live/sessions, which the issue asked about, is marked unsupported for both. Server-side WebSocket clients reach it aswss://api.openai.com/v1/realtime?intent=transcription. - Price. $0.017 per minute of realtime audio ($1.02 an hour) for either model, on the model pages and the pricing page, read on 23 November 2026. Not available on the free tier. Dearer than Voxtral ($0.48 an hour) and Gemini Transcribe ($0.30–0.54); Whisper is free.
- Rate limits. The
gpt-live-transcribepage lists 2,000 requests a minute at the Build tier; one session per source is far below that. - Not returned. No word timestamps, speaker labels, confidence scores or detected language. The app needs none of them.
Connection and setup
wss://api.openai.com/v1/realtime?intent=transcription
Authorization: Bearer <OPENAI_API_KEY>
The URL carries no model: the guide warns that the model-based URL opens a conversation
session, which refuses the transcription update below. The same OpenAI key as the translation
engine authenticates it.
session.created arrives first and describes a default session with server_vad turn
detection and no transcription. The client then sends one session.update:
{
"type": "session.update",
"session": {
"type": "transcription",
"audio": {
"input": {
"format": { "type": "audio/pcm", "rate": 24000 },
"transcription": {
"model": "gpt-live-transcribe",
"keywords": ["Université Joseph Ki-Zerbo", "IWAC"],
"languages": ["fr"]
},
"turn_detection": null
}
}
}
}
- Audio. Base64 mono PCM16 little-endian at 24 kHz, the only PCM rate the session takes
(G.711 μ-law and A-law are the alternatives), in
input_audio_buffer.appendevents of up to 15 MiB each. The app sends its usual 100 ms chunks, as for the translation engine. - Turn detection. Must be
nullor absent: the guide saysgpt-live-transcribesupports neitherserver_vadnorsemantic_vad, and the default session hasserver_vad, so the update setsnullexplicitly. keywords. “Product names, acronyms, and other literal terms that may appear in the audio”: hints, not required output. Each keyword stays on one line, with no<,>, carriage return or line feed; a keyword with one of those makes the server reject the update. No limit on their number or length is published.prompt. Free text describing the recording or its setting. It is rejected past “the model’s length limit”, which is not published.languages. Expected input languages, at least one item when present: ISO 639-1 codes (en,fr), selected ISO 639-3 codes (eng,yue,cmn) and regionalzhcodes (zh-cn,zh-tw,zh-hk). Unsupported or malformed codes are rejected. The model takeslanguagesinstead of the older singularlanguage, and the guide says not to send both.delay.minimal,low,medium,highorxhigh, trading latency for accuracy. The guide shows it withgpt-live-transcribe; the client-event reference says it is “only supported withgpt-realtime-whisper”. The probe sentlow: no error, butsession.updateddid not echo it, so whether this model applies it is unknown and the app leaves it out. The issue’s idea of mapping it onto the reading controls waits on that.noise_reduction(near_fieldorfar_field) andinclude(log probabilities) are available and unused.
A later session.update may change the transcription settings mid-session.
Events
Deltas stream as speech arrives, before any commit:
{ "type": "conversation.item.input_audio_transcription.delta", "item_id": "item_003", "content_index": 0, "delta": " Hello," }
Each delta carries a word or part of one, with its own leading space and punctuation. Deltas only append: in the probe, none corrected earlier text.
The client ends an audio turn with {"type":"input_audio_buffer.commit"}. The server answers
input_audio_buffer.committed (with the new item_id), conversation.item.added and
conversation.item.done, the last deltas of that turn, then
conversation.item.input_audio_transcription.completed:
{ "type": "conversation.item.input_audio_transcription.completed", "item_id": "item_003", "content_index": 0, "transcript": "Hello, how are you?", "usage": { "type": "duration", "seconds": 9 } }
The completed transcript is the item’s deltas joined, with the first space trimmed. Audio
appended after a commit starts a new item. OpenAI says completions of different turns may
arrive out of order, and that item_id matches them to their commits. A turn the model cannot
transcribe ends with conversation.item.input_audio_transcription.failed, which carries an
error object (audio_unintelligible in the reference’s example) instead of a transcript.
Committing an empty buffer is an error.
With no server turn detection, the guide asks the client to detect the end of speech itself and commit there.
Errors and the end of a session
error events carry error.type (invalid_request_error, server_error, …), an optional
error.code, message, param and the event_id of the client event at fault. “Most errors
are recoverable and the session will stay open.” This is the same payload as the translation
session, so the same shared classification applies
(Realtime Translate notes).
The probe’s session.created had an expires_at 60 minutes after the session opened, the
Realtime API’s session cap. At the cap OpenAI sends session_expired, which the shared
classification already hands over to a new session.
No keepalive and no idle timeout are documented: the server-events reference has none for
transcription sessions (its only idle_timeout_ms belongs to server_vad, which this model
does not use, and triggers a model response rather than ending a session). So the client sets no
keepalive, unlike Mistral and DeepL, which end a session after 30 seconds without audio. The
runner’s WebSocket pings prove the path while the room is quiet. Untested: whether a
transcription session ends after a long stretch without audio, as a system source sends while
nothing plays. If it does, the error it sends will say so, and a keepalive of silence is the
fix the other two engines use.
The engine
src-tauri/src/openai/transcribe.rs speaks this session on the shared realtime runner, as
Provider::OpenAiTranscribe (openai-transcribe in the interface).
- Setup. The
session.updateabove, sent straight after the handshake. The client waits forsession.updatedbefore streaming (wait_for_setup_complete), so a keyword or language code OpenAI refuses ends the source during setup, with OpenAI’s message.delayandpromptare not sent. - Glossary. The setup’s names and terms go as
keywords,<,>and line breaks replaced by spaces. The shared limits of 100 entries of 200 characters apply (Mistral notes). - Spoken language. Step 03 shows the spoken-language selector Whisper uses, with automatic
detection as the default. A chosen language goes as the one entry of
languages, Whisper’sjw(Javanese) as ISOjv; automatic detection sends nolanguages. The selector lists Whisper’s 99 languages; OpenAI publishes no list for this model and rejects a code it does not support, so an unusual choice can stop the source at setup with OpenAI’s message. - Commits. With no server turn detection, the client commits the buffer from the level of
the 100 ms chunks it sends (
RealtimeProtocol::after_audio): once at least a second of audio is buffered, speech (RMS above about −40 dBFS) has been heard, and half a second has been quiet since, the default silence of OpenAI’s own server VAD; and at 20 seconds whatever the audio. A commit only bounds the server’s item: the probe showed deltas streaming before any commit and a mid-sentence commit losing no word, so the threshold decides where items end, never what is captioned. - Caption lines. Deltas append to the line, the first without its leading space. A line
closes once its text has been still for 900 ms, and stays open past that while its text does
not end a sentence, up to the runner’s four-second hold, as Mistral’s do without turn events.
A completion adds nothing to the line unless its item streamed no delta, in which case its
transcript is the line. A
failedturn is logged and the session goes on. - Pause and Stop. The client commits what is still buffered and drains until every commit it sent has completed, or for the runner’s four seconds; with nothing buffered there is nothing to commit, and an empty commit would be an error.
- Errors. Shared with the translation session:
session_expiredhands over, transient errors reconnect, the rest stop the source with OpenAI’s message. - Key and consent. The OpenAI key saved for translation (
openai-api-key); the question before audio first goes to a provider is asked once for OpenAI, whichever of its engines is used first. - Rate. $1.02 an hour per source in
src/lib/providers.ts, for the cost estimate and the spending guard.
Live probe, 23 November 2026
One session, from an ignored test that read the saved key in-process and printed only server
events: the update above (with prompt, two keywords, languages: ["en"] and delay: "low"
sent as a second update), then rehearsal-en.wav (20.8 s, Windows text-to-speech) resampled
to 24 kHz and sent in 100 ms chunks at real-time pace, with one commit 8 s in and one at the end.
- Endpoint and setup: accepted.
session.updatedechoed the model,turn_detection: null, theprompt, thekeywordsand thelanguages; notdelay. - First text: 1.5 s after the first chunk, one word per delta, each 0.2 to 0.5 s apart.
- Deltas without a commit: yes, from the first word.
- A commit mid-sentence: the words being spoken at the commit (“transcribed and”) still
arrived as deltas of the committed item, 0.1 s after
committed; its completion followed 0.4 s after the commit. The next item began cleanly at the next word (“Shown on screen…”): no word was lost or split. - Accuracy: both items’ transcripts were the script word for word.
- Usage: each completion reported its audio as
{"type":"duration","seconds":9}and13.
The probe’s server events, with nothing secret in them, are the contract tests’ fixture
(src-tauri/src/openai/fixtures/live-transcribe-en.jsonl).
Live check of the engine, 23 November 2026
The ignored test openai::transcribe::tests::the_rehearsal_recordings_through_the_real_endpoint
streams both rehearsal recordings through the real runner at real-time pace, then two seconds
of silence and Stop, and prints the lines it closes. The French run sends the glossary
["sous-titres", "Live Translation"] and the spoken language fr:
cargo test --manifest-path src-tauri/Cargo.toml --lib the_rehearsal_recordings -- --ignored --nocapture
- Accepted: the keywords and the language hint, with no error.
- Accuracy: both recordings word for word, four lines each, one per sentence: the idle boundary closed every line at a sentence end and none mid-sentence.
- Timing: the lines closed 4.9, 12.2, 18.9 and 23.4 s (English) and 6.9, 13.7, 20.4 and 25.9 s (French) after the first chunk.
- A first run that spoke as the session opened lost the start: “This is a” in English, and
in French “Ceci” came back as “Live”. The runner then dropped audio queued while a fresh
session set up, as it still does after a failure, so the clipped opening was transcribed from
its tail, and the
Live Translationkeyword is the likely source of the substitution. Since then a fresh start holds that audio in the runner’s bounded backlog and sends it once the session streams, for every engine (architecture). The test waits for the session to run before speaking all the same. A keyword that never occurs in the speech may pull a clipped or unclear word towards it, which is worth watching for with real glossaries.
The recordings are Windows text-to-speech, so these runs test the protocol, the line closing and relative timing, not accuracy on real speakers. Mistral’s runs on the same recordings were also word for word (Mistral notes); the three engines have not been compared on real speech. Still to try in the running app: a long session past the 60-minute cap, a quiet system source for minutes on end, and a real room.