代码之家  ›  专栏  ›  技术社区  ›  Alex

Bot框架下的德语语音支持

  •  0
  • Alex  · 技术社区  · 8 年前

    亲切的问候

    1 回复  |  直到 8 年前
        1
  •  0
  •   D4RKCIDE    8 年前

    如果你通读 this blog 在“使用DirectLine频道在应用程序中提供跨平台语音支持”一节中,有以下代码片段:

    _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)
    

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