Browser Calls (WebRTC)
Browser Calls (WebRTC)
Voicebip supports browser-based voice calls via WebRTC using pion/webrtc. This enables two use cases:
- Dashboard test calls - Test your agent from the dashboard without a phone
- Shareable links - Let anyone call your agent from a browser (see Shareable Links)
WebRTC Signaling (Public Endpoint)
The public endpoint handles WebRTC signaling for shareable agent links. No authentication required.
Response:
Browser Implementation
Here is a minimal JavaScript example for establishing a WebRTC call:
Audio Visualization
The dashboard includes real-time audio level visualization during calls. To implement this in your own UI:
Live Transcript
During a WebRTC call, you can stream the live transcript via Server-Sent Events (SSE). Pass your API key as a ?token= query parameter since browsers cannot set Authorization headers on EventSource connections.
Requirements
- Modern browser with WebRTC support (Chrome, Firefox, Safari, Edge)
- Microphone access permission
- Agent must have
shareable: truefor public endpoint access
Current Limitations
Barge-in is not yet supported on WebRTC calls. When the agent is speaking and the user interrupts, the WebRTC path lets the current TTS audio finish before processing the next turn. Barge-in (interrupting mid-response) works on regular phone calls placed and received via the API (ESL and SIP transports), but is not yet wired into the WebRTC peer connection path.