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.
The Twilio Client JavaScript SDK has been renamed to Twilio Voice JavaScript SDK.
When using the Voice JavaScript SDK with Twilio Regions, please make sure the SDK version is updated to at least 2.1.0
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.
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.
Intending to write back-end JavaScript with Twilio in Node.js to support your front-end client? Check out the Twilio Node.js SDK.
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.