Skip to contentSkip to navigationSkip to topbar
On this page

Voice JavaScript SDK: Twilio in the browser


(information)

Info

You're viewing the documentation for the 2.X version of the Voice JavaScript SDK. View the Migration Guide to learn how to migrate from 1.X to 2.X or view the 1.x-specific documentation.

(information)

Info

The Twilio Client JavaScript SDK has been renamed to Twilio Voice JavaScript SDK.

(warning)

Warning

When using the Voice JavaScript SDK with Twilio Regions, please make sure the SDK version is updated to at least 2.1.0


Overview

overview page anchor

The Twilio Voice JavaScript SDK allows you to make voice calls to and from a web browser and a Twilio TwiML Voice Application. This means you can open inbound and outbound audio connections to Twilio for building softphones, walkie-talkies, conference calls, click-to-talk systems, and more, all from the browser.

(information)

Info

Want to get started right away? Jump right in with one of our Voice JavaScript SDK Quickstarts. Additionally, take a look at our Reference Components for more in depth examples.

(information)

You set up your device and establish a connection to Twilio. Audio from your device's microphone is sent to Twilio, and Twilio sends back audio which is played through your device's speakers, like on a normal phone call. The key difference is that with Twilio Voice JavaScript SDK, your "phone" is a Twilio.Device, a "soft device" that provides connections into Twilio.

Your application connects to Twilio, Twilio sends a webhook to your back end to get TwiML instructions.

Need some help?

Terms of service

Copyright © 2025 Twilio Inc.