【发布时间】:2018-01-24 12:28:53
【问题描述】:
我在 botframeowrk 中使用 bing 语音,如下所示:
var speechOptions =
{
speechRecognizer: new CognitiveServices.SpeechRecognizer(
{
subscriptionKey: 'YOUR_COGNITIVE_SPEECH_API_KEY'
}),
speechSynthesizer: new CognitiveServices.SpeechSynthesizer(
{
subscriptionKey: 'YOUR_COGNITIVE_SPEECH_API_KEY',
gender: CognitiveServices.SynthesisGender.Female,
voiceName: 'Microsoft Server Speech Text to Speech Voice (en-US, JessaRUS)'
})
}
我想将语言从 'en-us' 更改为其他语言,有没有我应该添加的选项,例如 lang:'it-it'。
还有一种方法可以让我根据用户说的语言更改语言吗?
【问题讨论】:
标签: speech-recognition botframework bing-speech