因为我们的客户通常用不同的口音说话,比如西班牙语、印度语和其他一些英语口音。是否可以在聚集动词 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);
};