私はTwilio Voice Gather verbを使用して、いくつかの質問にuser speechの回答を集めています。アクションURLを呼び出す前に待ち時間を短縮する方法はありますか?私のテストによれば、デフォルトの動作は、各Gatherコールごとに無音が検出されてから6秒以上待つような感じです。twilio音声認識を使用して無音の後の待ち時間を減らす
var gather = new Gather(input: "speech", action: GetActionUrl(), language: Constants.Language, method: "POST", bargeIn: true, speechTimeout: 3, timeout: 3, partialResultCallback: "/RealTimeVoice", partialResultCallbackMethod: "GET");
gather.Say(promptMessage, language: Constants.Language, voice: Constants.Voice);
response.Gather(gather);
response.Redirect(GetRedirectUrl());
return TwiML(response, System.Text.Encoding.UTF8);
コードを表示できますか?あなたは普通のTWIMLまたはlibを使用していますか? –
私はasp.net mvcのtwilioを使っています。このアプリはwebhooksを使ってtwilio番号に接続しています。 これはコードスニペットです: 'var gather = new Gather(入力:" speech "、アクション:GetActionUrl()、言語:Constants.Language、メソッド:" POST "、bargeIn:true、speechTimeout:3、timeout: 3、partialResultCallback: "/ RealTimeVoice"、partialResultCallbackMethod: "GET"); gather.Say(promptMessage、言語:Constants.Language、voice:Constants.Voice); レスポンス。収集(収集); レスポンス。リダイレクト(GetRedirectUrl()); return TwiML(response、System.Text.Encoding.UTF8); ' –
私はdtmfとスピーチの両方に適用する必要があるので、' speechTimeout'を完全に削除して 'timeout'を調整しようとします。また、別の 'speechTimeout:" auto "'を試し、これがどうなるかを見てください。 –