Skip to main content
The server sends these JSON events as text frames on the Realtime WebSocket. Each event has a type field. Event names follow the OpenAI Realtime GA protocol.

Session

Input audio

Conversation items

Responses

Audio output

Decode each delta from base64 and play the chunks in order at the configured output rate. The default is PCM16 at 24 kHz, mono.

Text output

Function calls

See Function tools for the reply loop.

Errors

Examples