Audio Streams
Start an Audio Stream
Fork live call audio over a WebSocket connection to your AI pipeline in near real time - configure codec, track direction, and bidirectional mode per stream.
POST
Start audio stream
stream_id.
Authentication required:
X-Auth-ID- Your account Auth IDX-Auth-Token- Your account Auth TokenContent-Type: application/json
Important: The target WebSocket URL must be reachable from Vobiz and must accept connections over
wss:// in production.Path parameters
Request Parameters
Status Callback Events
When the stream changes state, Vobiz sends a form-encoded HTTP request to yourstatus_callback_url. The Event field is one of:
These HTTP callbacks are a separate channel from the WebSocket events. For the exact payload fields and examples, see Status callback events.
Bidirectional streaming
Whenbidirectional=true, your WebSocket server can send outbound playback audio to the call. This format is independent of the inbound REST content_type.
Send audio from WebSocket to call
For the full bidirectional protocol -
checkpoint, clearAudio (barge-in), stop, and the inbound media/start events - see Stream Events Overview and Play Audio Event.
Response
Returns a confirmation along with the generatedstream_id.
Response - 202 Accepted
Example Request
cURL
Authorizations
Your Vobiz account Auth ID
Your Vobiz account Auth Token
Path Parameters
Your account Auth ID
Example:
"MA_XXXXXX"
Body
application/json
Response
200 - application/json
Stream started