首页 > 解决方案 > Azure Bot Framework Direct Line - 如何更改语言?

问题描述

我正在关注以下示例https://github.com/Microsoft/BotFramework-Samples/blob/master/docs-samples/web-chat-speech/index.html

如果我使用选项 2“本机浏览器语音”,则输入仍然是英语,而输出是德语。

  BotChat.App({
    bot: bot,
    locale: 'de-DE',
    resize: 'detect',
    // sendTyping: true,    // defaults to false. set to true to send 'typing' activities to bot (and other users) when user is typing
    speechOptions: speechOptions,
    user: user,

    directLine: {
        domain: params['domain'],
        secret: params['s'],
        token: params['t'],
        webSocket: params['webSocket'] && params['webSocket'] === 'true' // defaults to true
    }

我只是改变了

locale = 'de-DE'

如何获得德语的麦克风输入?

或者如何让它与选项 3 一起使用?

谢谢。

标签: azurebotframeworkchatbotdirect-line-botframework

解决方案


推荐阅读