Overview
WebSocket transport lets you open a real-time, bidirectional audio connection to an assistant instead of using a phone number or the web SDK. This page covers creating a call on this transport, connecting to the socket it returns, the two message types you'll see on that socket, and how background messages fit into this specific transport context.
The audio format requirements here are separate from — and looser than — the strict raw-PCM requirements that apply specifically to Custom Voice (TTS) webhook responses; don't confuse the two. For the general background-message concept across transports, see Async Server Tools & Background Messages, which this page applies specifically to the WebSocket transport context.