Bot框架中的德语语音支持

时间:2017-07-13 09:39:46

标签: botframework chatbot

Bot Framework中的语音支持是否也适用于德语?

亲切的问候

1 个答案:

答案 0 :(得分:0)

如果您通过“使用DirectLine频道在您的应用中使用跨平台语音支持”部分阅读this blog,则会显示以下代码段:

_botClient = new Microsoft.Bot.Client.BotClient(
    BotConnection.DirectLineSecret,
    BotConnection.ApplicationName
){
    // We used the Cognitive Services Speech-To-Text API, with speech priming support as the speech recognizer as well as the Text-To-Speech API.
    // Alternate/custom speech recognizer & synthesizer implementation are supported as well.
    SpeechRecognizer = new CognitiveServicesSpeechRecognizer(BotConnection.BingSpeechKey),
    SpeechSynthesizer = new CognitiveServicesSpeechSynthesizer(BotConnection.BingSpeechKey, Microsoft.Bot.Client.SpeechSynthesis.CognitiveServices.VoiceNames.Jessa_EnUs)
};

理论上你可以替换这一行:

SpeechSynthesizer = new CognitiveServicesSpeechSynthesizer(BotConnection.BingSpeechKey, Microsoft.Bot.Client.SpeechSynthesis.CognitiveServices.VoiceNames.Jessa_EnUs)

使用您想要的任何合成器。所以假设有一个德国合成器,你问题的答案是肯定的。