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.Attaching to a leg that is in a conference. This route is the way to stream from
a call that is also in a
<Conference> - XML verbs execute in
sequence and a bidirectional <Stream> holds its leg, so a <Conference> placed
after it is never reached. The REST route attaches the stream as a media bug on the
channel, outside XML sequencing.Wait for the ConferenceEnter callback and allow roughly two seconds before
attaching. The leg has to settle in the room first, or the stream receives no audio.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