Skip to contentSkip to navigationSkip to topbar

Programmable Voice

With Twilio, you can quickly make and receive voice calls in your application. We provide the docs, code samples, helper libraries, and developer tools you need on your journey. You bring your imagination. Let's build something amazing together.

Make your first voice call

Take the next steps with Twilio Programmable Voice

Get Started
1
Twilio servers
2
Your app

from flask import Flask
from twilio.twiml.voice_response import VoiceResponse
app = Flask(__name__)
@app.route("/answer", methods=['GET', 'POST'])
def answer_call():
resp = VoiceResponse()
resp.say("Twilio's always there when you call!")
return str(resp)
if __name__ == "__main__":
app.run()

View complete examples(link takes you to an external page)
3
Twilio's always there when you call!

Take the next steps with Twilio Programmable Voice


Get Started

With just a few lines of code, you'll make your first outgoing phone call with the Voice API. Add a few more and your app can respond to incoming callers. Choose your programming language to get started.

Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_14
// Download the helper library from https://www.twilio.com/docs/node/install
_14
// Find your Account SID and Auth Token at twilio.com/console
_14
// and set the environment variables. See http://twil.io/secure
_14
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_14
const authToken = process.env.TWILIO_AUTH_TOKEN;
_14
const client = require('twilio')(accountSid, authToken);
_14
_14
client.calls
_14
.create({
_14
url: 'http://demo.twilio.com/docs/voice.xml',
_14
to: '+15017122661',
_14
from: '+15558675310'
_14
})
_14
.then(call => console.log(call.sid));

Ahoy, World

Make your first call. Jump to a Quickstart in the language of your choice:


Build your App

You've got an idea in mind. Let's get it to production.

Pick the docs that are right for you. These short tutorials, sample apps, and API reference docs will get you from dream to HTTP 200 OK.

Voice Tutorials

Advanced Features

Your application is unique, but you're not alone - we've got the building blocks you need to grow and scale. Use Twilio with your current VoIP system, debug call issues, find the right data, and queue and modify calls. Deploy your app with confidence.

Twilio's Voice Insights takes your apps to the next level and helps you target the right improvements. Surface jitter, mean opinion score, and latency issues while monitoring the carrier and hang-up data you need to improve your service.

Build a Conversational IVR using machine learning and natural language understanding with Voice Intelligence and Virtual Agent.


Solve problems before they crop up. Protect your users' and employees' privacy in multi-way conversations and quickly match jobs to worker skills and qualifications.

TaskRouter
TaskRouter

Match workers with tasks across voice and other channels

Product documentation
Twilio Studio
Twilio Studio

Don't want to code? Create your Voice app with our visual builder

Product documentation

Rate this page: