Skip to content
alpharouter

Docs

Realtime

Exchange audio over WebSocket for uninterrupted conversation, including barge-in while the user is still speaking.

Connecting

Connect over wss and send session configuration in the first frame. Auth goes in a query token rather than a header.

Events

Audio deltas, text deltas, and speech start/stop events stream in. Barge-in is handled with a cancel event.

EventDirectionNote
session.updateclient → serverVoice, model, instructions
input_audio.appendclient → serverPCM chunk
response.audio.deltaserver → clientOutput audio chunk
response.text.deltaserver → clientTranscript delta
response.cancelclient → serverBarge-in

Billing

Input and output audio are counted per minute. Holding a connection open without speaking is not billed.