Channels
VOICE CALLING
AI-powered inbound and outbound voice call agents via Twilio.
Setup
- Create a bot with
type: "inbound_call"or"outbound_call" - Configure Twilio credentials in Settings
- Set your Twilio phone number webhook to:
bash
https://api.callmissed.com/api/v1/webhooks/twilio/voiceCall Flow
bash
Incoming call β Twilio
β POST /api/v1/webhooks/twilio/voice
β Returns TwiML to open WebSocket stream
β WebSocket /ws/call/{call_id} receives audio
β Audio chunks β Sarvam STT β text
β Text β Sarvam LLM β response
β Response β Sarvam TTS β audio
β Audio streamed back to callerWebSocket Streaming
Connect to the voice WebSocket for real-time audio:
bash
wss://api.callmissed.com/ws/call/{call_id}Send raw audio bytes (PCM 16-bit, 8kHz). Receive synthesized audio bytes back.
Was this page helpful?