【问题标题】:multiple accent Langiage in gather speech in twilio在 twilio 中收集语音中的多种口音语言
【发布时间】:2021-05-19 08:15:12
【问题描述】:

因为我们的客户通常用不同的口音说话,比如西班牙语、印度语和其他一些英语口音。是否可以在聚集动词 SPEECH RECOGNITION LANGUAGE 中添加多种语言的口音?

我也没有在 twilio studio 中找到“增强”选项。

exports.handler = function(context, event, callback) {
let twiml = new Twilio.twiml.VoiceResponse();
 //twiml.say("Testing voice command, please say something");
const gather = twiml.gather({
                    hints:"one, two, help, voicemail",
                    input:"speech",
                    
      partialResultCallback:"https:",
                    action:"https:",
                    language:"en-IN", 
                    language:"en-US",   //,en-US"
                    profanityFilter:true,
                    speechTimeout:15,
                    speechModel:"phone_call",           
                   //"numbers_and_commands",
                   // enhanced:true
                    
                });
        
  gather.say("Testing voice command, please say something and we will 
   transcribe it");             
  callback(null, twiml);
   };

【问题讨论】:

    标签: twilio diacritics speech gather


    【解决方案1】:

    识别的语言是单个value。在设置他们选择的主要语言之前,您需要使用一种常见的方式来询问他们希望与哪种语言进行交互(比如英语)。

    https://www.twilio.com/docs/voice/twiml/gather#language

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2010-09-07
      • 2019-09-26
      • 2020-04-19
      • 1970-01-01
      • 1970-01-01
      • 2021-08-06
      • 2012-04-28
      相关资源
      最近更新 更多