2017-12-08 18 views
0

twilioに新着私は私の会社のIVRへのtwilioコールを行い、音声チャンクを記録しようとしています。私はIVRをダイヤルする場合たとえば、私が取得: こんにちは、へようこそ... 私たちのメニューには、最近変更されたために... 1を押して、ために...プレス1twilioの録音チャンク

私が使用してダイヤルすることができます。

私のウェブサーバ上で

static void Main(string[] args) 
{ 
string accountSid = "xxxxxxxx"; 
string authToken = "xxxxxxx"; 
Twilio.TwilioClient.Init(accountSid, authToken); 
var call = CallResource.Create(, 1234567890, 
           record: true, 
           recordingChannels: "dual", 
           url: new Uri("http://www.mycompany.com/DialOption"), 
           sendDigits: "wwww1234wwww1234567890") 
} 
、私が持っている:私はオプションではなく1つのファイルに記録全体を選択する前に

public class DialOptionController : TwilioController 
    { 

     [HttpPost] 
     public TwiMLResult Index(VoiceRequest request) 
     { 
      var response = new VoiceResponse();   
      response.Pause(19); 
      response.Play(digits: "1");   

      response.Pause(19); 
      response.Play(digits: "1"); 

      response.Pause(9); 
      response.Play(digits: "1"); 

      return TwiML(response); 
     } 
    } 

がどのように私は私のチャンクを与えるために記録を得るのですか?

答えて

1

私はあなたがチャンクで通話記録を得ることはできないと信じています。通話終了時には録音全体へのリンクのみが表示されます。あなたがinput=speechまたはその代わりに、デフォルトinput=dtmfinput=speech dtmfを選択し、partialResultCallbackパラメータの値を提供する場合、あなたがチャンクで取得することができます

のみ記録がGather動詞時の記録です。例:

var response = new VoiceResponse(); 
var gather = new Gather(input: "speech", 
         action: new Uri("/completed"), 
         partialResultCallback: new Uri("/partial")); 
gather.Say("Welcome to Twilio, please tell us why you're calling"); 
response.Append(gather); 
Console.WriteLine(response.ToString()); 
関連する問題