メインコンテンツにスキップ
You are viewing the Japanese site, but your language preference is set to English. Switch to English site →
Voice

はじめに

お客様を引きつける音声サービスの構築方法をご紹介します

音声機能のカスタマイズも
簡単にできるようになりました

illo_adding_voice.png

顧客に集中でき、一からの構築は不要です

Twilio Voiceはカスタマイズ可能な音声サービスの構築に必要なツールを提供し、変化し続けるお客様の期待に応え、上回るように支援します。エンタープライズグレードのインフラストラクチャを使用すれば、思い出に残る顧客体験の提供に使える時間が増え、そのような体験をゼロから構築する時間が短縮されます。

また、革新的なAPI、SDK、開発者リソースを使用すれば、思い出に残る音声アプリケーションの構築を開始するうえで必要なあらゆるサポートを受けられます。

Voice API

お客様とつながる方法を
アップグレード

  • 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

世界中のお客様とつながりを始める

  • 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

通話の制御と振る舞い変更が容易にできます

  • グローバル電話会議: 世界各国から最大250人が参加するカスタマイズ可能な電話会議を作成します
  • 通話録音: 着信と発信の両方を安全に録音、保存、暗号化します
  • 録音のテキスト化: 音声録音を選択した言語で文字起こししてテキスト化します
  • 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

データのセキュリティを懸念することなく構築します

  • 緊急通報: 米国、カナダ、英国の国内で緊急通報をPSAP(緊急応答機関)へ転送できます
  • 番号非公開通話: 一時的な電話番号プロキシにより企業と顧客の機密データを保護します
  • HIPAAPCIのコンプライアンス: Twilio VoiceはHIPAAとPCI DSS Level 1の両方に適合しています

料金

柔軟なVoice APIに柔軟な料金

Twilio Voiceはご利用分に応じたお支払いのため、確約利用料金は不要です。従量課金または確約利用量による割引が可能です。