Audio Stream
Vobiz's audio streaming resource lets you receive raw audio input over WebSocket (wss or ws) URLs from live phone calls in near real time.
The Audio Stream API enables real-time bidirectional audio streaming over WebSocket connections during active phone calls. Stream audio from calls to your application, process it in real-time, and optionally send audio back to the caller.
Base Endpoint: https://api.vobiz.ai/api/v1/Account/{auth_id}/Call/{call_uuid}/Stream/
Key Features
Bidirectional Streaming
Stream audio from the call to your WebSocket and send audio back to the caller in real-time.
Multiple Audio Tracks
Choose to stream inbound audio only, outbound audio only, or both tracks simultaneously.
Flexible Codecs
Support for L16 (8kHz/16kHz) and μ-law (8kHz) audio formats to match your application needs.
Status Callbacks
Receive HTTP callbacks when streams start, stop, or reach checkpoints for monitoring and logging.
Use Cases
Real-Time Transcription
Stream call audio to speech-to-text services like Google Speech, AWS Transcribe, or Deepgram for live transcription and conversation analysis.
AI Voice Agents
Power conversational AI agents that can listen to callers and respond with generated speech in real-time using services like ElevenLabs, OpenAI, or custom AI models.
Sentiment Analysis
Analyze caller emotions and sentiment during live calls to provide insights for customer service teams or trigger automated workflows.
Call Recording & Processing
Capture and process audio streams for compliance, quality assurance, training, or analytics purposes.
API Endpoint
https://api.vobiz.ai/api/v1/Account/{auth_id}/Call/{call_uuid}/Stream/Authentication Required: All requests must include X-Auth-ID and X-Auth-Token headers.
https://api.vobiz.aiQuick Start
Basic Example
curl -X POST https://api.vobiz.ai/api/v1/Account/MA_AABBCC/Call/call-uuid-xxxx-yyyy/Stream/ \
-H "X-Auth-ID: YOUR_AUTH_ID" \
-H "X-Auth-Token: YOUR_AUTH_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"service_url": "wss://yourapp.example.com/audiostream",
"bidirectional": true,
"audio_track": "both",
"content_type": "audio/x-l16;rate=16000"
}'Next Steps:
- • Review the Audio Stream Object to understand all available attributes
- • Learn how to initiate an audio stream on an active call
- • Explore retrieving stream details and managing streams