openai · OpenAI Platform Docs
Realtime translation
Implements real-time audio translation by streaming source audio to a dedicated endpoint to receive translated audio and transcript deltas via WebRTC or WebSockets.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Realtime translation
Implements real-time audio translation by streaming source audio to a dedicated endpoint to receive translated audio and transcript deltas via WebRTC or WebSockets.
When To Use
Use when you need to implement live interpretation, multilingual meetings, or real-time audio translation services using WebRTC for browsers or WebSockets for server-side media streams.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/realtime-translation-workflow-guide.md | A guide explaining how to implement realtime translation using WebRTC or WebSocket transports to stream audio and receive translated output. | Questions about a guide explaining how to implement realtime translation using WebRTC or WebSocket transports to stream audio and rec... |
examples/realtime-translation-openai-realtime-translation-javascript-websocket.javascript | A JavaScript implementation using WebSockets to perform realtime translation via the OpenAI API. | Exact payloads, commands, or snippets shown in A JavaScript implementation using WebSockets to perform realtime translation via the OpenAI API. |
examples/realtime-translation-openai-realtime-translation-python-websocket.python | A Python script demonstrating how to establish a WebSocket connection to the OpenAI Realtime translation API. | Exact payloads, commands, or snippets shown in A Python script demonstrating how to establish a WebSocket connection to the OpenAI Realtime translation API. |
examples/realtime-translation-openai-realtime-translation-javascript-session-upda.javascript | A JavaScript code snippet demonstrating how to configure session settings for realtime translation using a WebSocket connection. | Exact payloads, commands, or snippets shown in A JavaScript code snippet demonstrating how to configure session settings for realtime translation using a WebSocket... |
examples/realtime-translation-openai-realtime-translation-python-session-update.python | A Python script demonstrating how to update a realtime session configuration to specify output language for translation. | Exact payloads, commands, or snippets shown in A Python script demonstrating how to update a realtime session configuration to specify output language for translation. |
examples/realtime-translation-openai-realtime-translation-javascript-audio-buffer.javascript | A JavaScript code example demonstrating how to send base64 encoded PCM16 audio buffers to the OpenAI Realtime API using a WebSocket connection. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to send base64 encoded PCM16 audio buffers to the OpenAI Realtime API usi... |
examples/realtime-translation-openai-realtime-translation-python-websocket-audio-.python | A Python script demonstrating how to send base64 encoded PCM16 audio data to the OpenAI Realtime API using a WebSocket connection. | Exact payloads, commands, or snippets shown in A Python script demonstrating how to send base64 encoded PCM16 audio data to the OpenAI Realtime API using a WebSocke... |
examples/realtime-translation-openai-realtime-translation-javascript-websocket-ev.javascript | A JavaScript implementation of a WebSocket message handler that processes real-time audio deltas and transcripts for translation. | Exact payloads, commands, or snippets shown in A JavaScript implementation of a WebSocket message handler that processes real-time audio deltas and transcripts for... |
examples/realtime-translation-openai-realtime-translation-python-websocket-event-.python | A Python implementation of a WebSocket event loop that processes real-time audio deltas and transcript updates for translation. | Exact payloads, commands, or snippets shown in A Python implementation of a WebSocket event loop that processes real-time audio deltas and transcript updates for tr... |
examples/realtime-translation-openai-realtime-translation-audio-to-subtitles-work.text | A text-based representation of the workflow for converting source audio into a translation session that outputs translated audio and subtitles. | Exact payloads, commands, or snippets shown in A text-based representation of the workflow for converting source audio into a translation session that outputs trans... |
examples/realtime-translation-openai-realtime-translation-audio-workflow.text | A text-based representation of the audio translation workflow between two callers in different languages. | Exact payloads, commands, or snippets shown in A text-based representation of the audio translation workflow between two callers in different languages. |
examples/realtime-translation-openai-realtime-translation-session-formula-logic.text | A text representation of the mathematical formula used to calculate the number of translation sessions based on speaker tracks and target languages. | Exact payloads, commands, or snippets shown in A text representation of the mathematical formula used to calculate the number of translation sessions based on speak... |
What This Skill Covers
- Realtime translation lets you stream source audio into a dedicated translation session and receive translated audio plus transcript deltas while the speaker...
- Main sections:
How translation sessions differ,Choose a transport,Create a browser WebRTC session,Create a WebSocket session,Build listen-along translation.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.openai.com/api/docs/guides/realtime-translation.md
