我有一个网络聊天机器人工作正常(我可以使用语音并返回语音)使用以下链接的必应语音:
使用选项 3:
const speechOptions = {
speechRecognizer: new CognitiveServices.SpeechRecognizer({ subscriptionKey: 'YOUR_COGNITIVE_SPEECH_API_KEY' }),
speechSynthesizer: new CognitiveServices.SpeechSynthesizer({
gender: CognitiveServices.SynthesisGender.Female,
subscriptionKey: 'YOUR_COGNITIVE_SPEECH_API_KEY',
voiceName: 'Microsoft Server Speech Text to Speech Voice (en-US, JessaRUS)'
})
};
但是,我正在尝试从 Bing Speech API 切换到 Speech Services AP,因为 Bing Speech 即将退役。
有谁知道如何为我的网络聊天机器人执行此操作?