Skip to main content

Voice Widget

Let website visitors talk to your voice agent directly from the browser — no phone number needed. The voice widget adds a call button to your site that connects users via WebRTC for real-time voice conversations.

Quick Setup

Add the voice widget to any webpage by setting the data-widget-type to "voice":
A floating call button appears. When clicked, the browser connects to your voice agent via WebRTC.

How It Works

No phone network is involved — audio travels directly over the internet. Works on all modern browsers (Chrome, Firefox, Safari, Edge).

Combined Chat + Voice Widget

Deploy both chat and voice on the same page — the embed widget supports a combined mode:
Users can choose to type or speak. The widget shows both a text input and a microphone button.

Custom Integrations (JavaScript SDK)

If you’d like to build a completely custom voice UI rather than use the drop-in widget, you can use our dedicated Voice SDK.

Installation

Basic Usage

React Example

For React applications building custom voice interfaces:

Browser Requirements

Permissions

The browser will ask for microphone permission on the first call. Users must grant access for the voice SDK to work.

Audio Quality

The voice engine uses:
  • Opus codec for efficient audio compression
  • Echo cancellation built into WebRTC
  • Noise suppression for cleaner input
  • Adaptive bitrate based on network conditions
For best quality, recommend users use headphones or a quiet environment.

vs Phone Calls

Use the voice widget for website visitors. Use phone calls when you need to reach users on their phones.