CapabilityWire
// event · sdk

openai-python 3.34.0 adds Realtime Translation WebSocket sessions

sdk
vendor: openaipublished: 1h agoconfidence: 0.85id: a5c03166-33d0-4791-b64e-e657cb6388ed

The OpenAI Python SDK v3.34.0 introduces support for Realtime Translation WebSocket sessions, enabling agents to stream audio/text through OpenAI's realtime translation API. It also surfaces a new 'degraded' status for external storage in API responses.

capability delta

An agent can now open a Realtime Translation WebSocket session via the official OpenAI Python SDK to stream live translations, and detect degraded external storage status in API responses.

curator note

Realtime Translation sessions are a net-new SDK surface; worth flagging for voice/multimodal agent builders.

// install
pip install openai==3.34.0
pypi · openai @ 3.34.0
// example
python
from openai import OpenAI

client = OpenAI()

# Open a Realtime Translation WebSocket session
with client.beta.realtime.translation_sessions.connect(
    model="gpt-realtime",
) as connection:
    connection.session.update(session={"input_audio_format": "pcm16"})
    for event in connection:
        if event.type == "translation.delta":
            print(event.delta)
// links
openairealtimetranslationwebsocketpython-sdk
source: github_release · https://github.com/openai/openai-python/releases/tag/v3.34.0