Ir para o conteúdo principal
You are viewing the Portuguese (Brazil) site, but your language preference is set to English. Switch to English site →
Voice

Primeiros passos

Saiba como começar a criar uma experiência de voz envolvente

Adicionar recursos de voz
personalizáveis nunca foi tão fácil

illo_adding_voice.png

Concentre-se em seus clientes, não em criar voz a partir do zero

O Twilio Voice oferece as ferramentas necessárias para criar experiências de voz personalizadas que atendam às expectativas em constante mudança dos clientes e as superem. Usando nossa infraestrutura de nível empresarial, você pode passar mais tempo oferecendo experiências memoráveis aos clientes e menos tempo criando essas experiências do zero.

E com nossas APIs, SDKs e recursos de desenvolvedor inovadores, você terá todo o suporte necessário para começar a criar um aplicativo de voz memorável.

API Voice

Modernize a forma como você se conecta com seus clientes

  • Node.js
  • Python
  • C#
  • Java
  • Go
  • PHP
  • Ruby
  • twilio-cli
  • curl
//Downloadthehelperlibraryfromhttps://www.twilio.com/docs/node/install//FindyourAccountSIDandAuthTokenattwilio.com/console//andsettheenvironmentvariables.Seehttp://twil.io/secureconstaccountSid=process.env.TWILIO_ACCOUNT_SID;constauthToken=process.env.TWILIO_AUTH_TOKEN;constclient=require('twilio')(accountSid,authToken);client.calls.create({url:'https://example.com',to:'+15558675310',from:'+15017122661'}).then(call=>console.log(call.sid));
# Download the helper library from https://www.twilio.com/docs/python/installimportosfromtwilio.restimportClient# Find your Account SID and Auth Token at twilio.com/console# and set the environment variables. See http://twil.io/secureaccount_sid=os.environ['TWILIO_ACCOUNT_SID']auth_token=os.environ['TWILIO_AUTH_TOKEN']client=Client(account_sid,auth_token)call=client.calls.create(url='https://example.com',to='+15558675310',from_='+15017122661')print(call.sid)
// Install the C# / .NET helper library from twilio.com/docs/csharp/installusingSystem;usingTwilio;usingTwilio.Rest.Api.V2010.Account;classProgram{staticvoidMain(string[]args){// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/securestringaccountSid=Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");stringauthToken=Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");TwilioClient.Init(accountSid,authToken);varcall=CallResource.Create(url:newUri("https://example.com"),to:newTwilio.Types.PhoneNumber("+15558675310"),from:newTwilio.Types.PhoneNumber("+15017122661"));Console.WriteLine(call.Sid);}}
// Install the Java helper library from twilio.com/docs/java/installimportcom.twilio.Twilio;importcom.twilio.rest.api.v2010.account.Call;importcom.twilio.type.PhoneNumber;importjava.net.URI;publicclassExample{// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/securepublicstaticfinalStringACCOUNT_SID=System.getenv("TWILIO_ACCOUNT_SID");publicstaticfinalStringAUTH_TOKEN=System.getenv("TWILIO_AUTH_TOKEN");publicstaticvoidmain(String[]args){Twilio.init(ACCOUNT_SID,AUTH_TOKEN);Callcall=Call.creator(newcom.twilio.type.PhoneNumber("+15558675310"),newcom.twilio.type.PhoneNumber("+15017122661"),URI.create("https://example.com")).create();System.out.println(call.getSid());}}
// Download the helper library from https://www.twilio.com/docs/go/installpackagemainimport("fmt""github.com/twilio/twilio-go"api"github.com/twilio/twilio-go/rest/api/v2010")funcmain(){// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/secureclient:=twilio.NewRestClient()params:=&api.CreateCallParams{}params.SetUrl("https://example.com")params.SetTo("+15558675310")params.SetFrom("+15017122661")resp,err:=client.Api.CreateCall(params)iferr!=nil{fmt.Println(err.Error())}else{ifresp.Sid!=nil{fmt.Println(*resp.Sid)}else{fmt.Println(resp.Sid)}}}
<?php// Update the path below to your autoload.php,// see https://getcomposer.org/doc/01-basic-usage.mdrequire_once'/path/to/vendor/autoload.php';useTwilio\Rest\Client;// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/secure$sid=getenv("TWILIO_ACCOUNT_SID");$token=getenv("TWILIO_AUTH_TOKEN");$twilio=newClient($sid,$token);$call=$twilio->calls->create("+15558675310",// to"+15017122661",// from["url"=>"https://example.com"]);print($call->sid);
# Download the helper library from https://www.twilio.com/docs/ruby/installrequire'rubygems'require'twilio-ruby'# Find your Account SID and Auth Token at twilio.com/console# and set the environment variables. See http://twil.io/secureaccount_sid=ENV['TWILIO_ACCOUNT_SID']auth_token=ENV['TWILIO_AUTH_TOKEN']@client=Twilio::REST::Client.new(account_sid,auth_token)call=@client.calls.create(url:'https://example.com',to:'+15558675310',from:'+15017122661')putscall.sid
# Install the twilio-cli from https://twil.io/cli twilio api:core:calls:create \ --url https://example.com \ --to +15558675310 \ --from +15017122661
curl -X POST "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Calls.json"\--data-urlencode "Url=https://example.com"\--data-urlencode "To=+15558675310"\--data-urlencode "From=+15017122661"\-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN

Comece a se conectar com clientes em todo o mundo

  • Node.js
  • Python
  • C#
  • Java
  • Go
  • PHP
  • Ruby
  • twilio-cli
  • curl
//Downloadthehelperlibraryfromhttps://www.twilio.com/docs/node/install//FindyourAccountSIDandAuthTokenattwilio.com/console//andsettheenvironmentvariables.Seehttp://twil.io/secureconstaccountSid=process.env.TWILIO_ACCOUNT_SID;constauthToken=process.env.TWILIO_AUTH_TOKEN;constclient=require('twilio')(accountSid,authToken);client.transcriptions('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch().then(transcription=>console.log(transcription.dateCreated));
# Download the helper library from https://www.twilio.com/docs/python/installimportosfromtwilio.restimportClient# Find your Account SID and Auth Token at twilio.com/console# and set the environment variables. See http://twil.io/secureaccount_sid=os.environ['TWILIO_ACCOUNT_SID']auth_token=os.environ['TWILIO_AUTH_TOKEN']client=Client(account_sid,auth_token)transcription=client.transcriptions('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \ .fetch()print(transcription.date_created)
// Install the C# / .NET helper library from twilio.com/docs/csharp/installusingSystem;usingTwilio;usingTwilio.Rest.Api.V2010.Account;classProgram{staticvoidMain(string[]args){// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/securestringaccountSid=Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");stringauthToken=Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");TwilioClient.Init(accountSid,authToken);vartranscription=TranscriptionResource.Fetch(pathSid:"TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");Console.WriteLine(transcription.DateCreated);}}
// Install the Java helper library from twilio.com/docs/java/installimportcom.twilio.Twilio;importcom.twilio.rest.api.v2010.account.Transcription;publicclassExample{// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/securepublicstaticfinalStringACCOUNT_SID=System.getenv("TWILIO_ACCOUNT_SID");publicstaticfinalStringAUTH_TOKEN=System.getenv("TWILIO_AUTH_TOKEN");publicstaticvoidmain(String[]args){Twilio.init(ACCOUNT_SID,AUTH_TOKEN);Transcriptiontranscription=Transcription.fetcher("TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").fetch();System.out.println(transcription.getDateCreated());}}
// Download the helper library from https://www.twilio.com/docs/go/installpackagemainimport("fmt""github.com/twilio/twilio-go"api"github.com/twilio/twilio-go/rest/api/v2010")funcmain(){// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/secureclient:=twilio.NewRestClient()params:=&api.FetchTranscriptionParams{}resp,err:=client.Api.FetchTranscription("TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",params)iferr!=nil{fmt.Println(err.Error())}else{ifresp.DateCreated!=nil{fmt.Println(*resp.DateCreated)}else{fmt.Println(resp.DateCreated)}}}
<?php// Update the path below to your autoload.php,// see https://getcomposer.org/doc/01-basic-usage.mdrequire_once'/path/to/vendor/autoload.php';useTwilio\Rest\Client;// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/secure$sid=getenv("TWILIO_ACCOUNT_SID");$token=getenv("TWILIO_AUTH_TOKEN");$twilio=newClient($sid,$token);$transcription=$twilio->transcriptions("TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")->fetch();print($transcription->dateCreated->format());
# Download the helper library from https://www.twilio.com/docs/ruby/installrequire'rubygems'require'twilio-ruby'# Find your Account SID and Auth Token at twilio.com/console# and set the environment variables. See http://twil.io/secureaccount_sid=ENV['TWILIO_ACCOUNT_SID']auth_token=ENV['TWILIO_AUTH_TOKEN']@client=Twilio::REST::Client.new(account_sid,auth_token)transcription=@client.transcriptions('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetchputstranscription.date_created
# Install the twilio-cli from https://twil.io/cli twilio api:core:transcriptions:fetch \ --sid TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
curl -X GET "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Transcriptions/TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json"\-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN

Controle e modifique chamadas com facilidade

  • Node.js
  • Python
  • C#
  • Java
  • Go
  • PHP
  • Ruby
  • twilio-cli
  • curl
//Downloadthehelperlibraryfromhttps://www.twilio.com/docs/node/install//FindyourAccountSIDandAuthTokenattwilio.com/console//andsettheenvironmentvariables.Seehttp://twil.io/secureconstaccountSid=process.env.TWILIO_ACCOUNT_SID;constauthToken=process.env.TWILIO_AUTH_TOKEN;constclient=require('twilio')(accountSid,authToken);client.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').payments.create({idempotencyKey:'idempotency_key',statusCallback:'https://example.com'}).then(payment=>console.log(payment.sid));
# Download the helper library from https://www.twilio.com/docs/python/installimportosfromtwilio.restimportClient# Find your Account SID and Auth Token at twilio.com/console# and set the environment variables. See http://twil.io/secureaccount_sid=os.environ['TWILIO_ACCOUNT_SID']auth_token=os.environ['TWILIO_AUTH_TOKEN']client=Client(account_sid,auth_token)payment=client.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \ .payments \ .create(idempotency_key='idempotency_key',status_callback='https://example.com')print(payment.sid)
// Install the C# / .NET helper library from twilio.com/docs/csharp/installusingSystem;usingTwilio;usingTwilio.Rest.Api.V2010.Account.Call;classProgram{staticvoidMain(string[]args){// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/securestringaccountSid=Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");stringauthToken=Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");TwilioClient.Init(accountSid,authToken);varpayment=PaymentResource.Create(idempotencyKey:"idempotency_key",statusCallback:newUri("https://example.com"),pathCallSid:"CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");Console.WriteLine(payment.Sid);}}
// Install the Java helper library from twilio.com/docs/java/installimportcom.twilio.Twilio;importcom.twilio.rest.api.v2010.account.call.Payment;importjava.net.URI;publicclassExample{// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/securepublicstaticfinalStringACCOUNT_SID=System.getenv("TWILIO_ACCOUNT_SID");publicstaticfinalStringAUTH_TOKEN=System.getenv("TWILIO_AUTH_TOKEN");publicstaticvoidmain(String[]args){Twilio.init(ACCOUNT_SID,AUTH_TOKEN);Paymentpayment=Payment.creator("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX","idempotency_key",URI.create("https://example.com")).create();System.out.println(payment.getSid());}}
// Download the helper library from https://www.twilio.com/docs/go/installpackagemainimport("fmt""github.com/twilio/twilio-go"api"github.com/twilio/twilio-go/rest/api/v2010")funcmain(){// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/secureclient:=twilio.NewRestClient()params:=&api.CreatePaymentsParams{}params.SetIdempotencyKey("idempotency_key")params.SetStatusCallback("https://example.com")resp,err:=client.Api.CreatePayments("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",params)iferr!=nil{fmt.Println(err.Error())}else{ifresp.Sid!=nil{fmt.Println(*resp.Sid)}else{fmt.Println(resp.Sid)}}}
<?php// Update the path below to your autoload.php,// see https://getcomposer.org/doc/01-basic-usage.mdrequire_once'/path/to/vendor/autoload.php';useTwilio\Rest\Client;// Find your Account SID and Auth Token at twilio.com/console// and set the environment variables. See http://twil.io/secure$sid=getenv("TWILIO_ACCOUNT_SID");$token=getenv("TWILIO_AUTH_TOKEN");$twilio=newClient($sid,$token);$payment=$twilio->calls("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")->payments->create("idempotency_key","https://example.com");print($payment->sid);
# Download the helper library from https://www.twilio.com/docs/ruby/installrequire'rubygems'require'twilio-ruby'# Find your Account SID and Auth Token at twilio.com/console# and set the environment variables. See http://twil.io/secureaccount_sid=ENV['TWILIO_ACCOUNT_SID']auth_token=ENV['TWILIO_AUTH_TOKEN']@client=Twilio::REST::Client.new(account_sid,auth_token)payment=@client.calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').payments.create(idempotency_key:'idempotency_key',status_callback:'https://example.com')putspayment.sid
# Install the twilio-cli from https://twil.io/cli twilio api:core:calls:payments:create \ --call-sid CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \ --idempotency-key idempotency_key \ --status-callback https://example.com
curl -X POST "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Payments.json"\--data-urlencode "IdempotencyKey=idempotency_key"\--data-urlencode "StatusCallback=https://example.com"\-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN

Crie sem se preocupar com a segurança de seus dados

  • Chamada de emergência: Ative o roteamento de chamadas de emergência para PSAPs (Public Safety Answering Points, pontos de atendimento de segurança pública) nos EUA, Canadá e Reino Unido
  • Mascaramento de chamada: Proteja seus dados e os dados confidenciais de seus clientes com proxies temporários de números de telefone
  • Conformidade com HIPAA e PCI: O Twilio Voice está em conformidade com HIPAA e PCI DSS nível 1

PREÇOS

Preços flexíveis para uma API de voz flexível

Com o Twilio Voice, você paga apenas pelo que usa, sem a necessidade de compromissos. Pague conforme usar ou obtenha descontos em um volume comprometido.