azure - Azure Bot Framework Direct Line - 如何更改语言?
问题描述
如果我使用选项 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 一起使用?
谢谢。
解决方案
推荐阅读
- elasticsearch - ElasticSearch:日期时间格式的平均聚合
- javascript - 如何在搜索字段中将 value.val() 与正则表达式进行比较?想以多个单词为标准
- enums - 枚举设置在春季 Roo
- ios - 如何使用经过训练的 .tfilte 模型在实时摄像头输出上创建遮罩?
- optimization - 如何制作支持向量回归 (SVR) 的手动程序?
- python-3.x - Python中的排序功能有问题吗?
- unix - 文件中的 awk bash avg 计算
- comments - 发现已知事物的过程是什么?
- javascript - 将 prop 传递给不公开它的组件的子元素
- java - 如何在逻辑上解决这个问题