oxDocs
Browse documentation
Introduction
Vision API
Inference API
Realtime
Integrations
LiveKit & SIP
Administration
Reference

Runtime

Barge-in, backpressure, and reconnect

Implement barge-in, backpressure, cancellation, and safe session reconnects.

Interruptions and buffered audio

Stop local playout as soon as the capture worklet detects probable speech. Confirm the interruption on input.speech_started, discard all buffered audio from the cancelled generation, and never replay it. The SDK drops stale capture frames rather than building conversational lag. The relay closes a client that exceeds 1048576 buffered bytes.

Reconnect safely

A session secret expires after 900 seconds, is single-use, and cannot reconnect after it has been claimed. Mint a new session and restore only customer-approved text history. Never replay microphone audio or a partially executed tool call automatically.

Help improve this guideFound something unclear or incomplete?
Report an issue ↗View source ↗