我正在使用以下文章来启用语音,这在Chrome中运行良好(即使有bing语音) .
然而同样在Firefox中不起作用,尽管已经提到它应该在Firefox中工作 . 我也在这里发布了同样的问题,但没有得到回复,有什么建议吗? https://github.com/Microsoft/BotFramework-WebChat/issues/1141
以下是firefox的控制台日志:
This browser does not support speech recognition botchat.js:20:29333
t
https://webchat.botframework.com/scripts/webchat-stable/botchat.js:20:29333
<anonymous>
https://myurl/speechtest/samples/speech/index.html:93:28
This browser does not support speech recognition CognitiveServices.js:15:32927
e
https://webchat.botframework.com/scripts/webchat-stable/CognitiveServices.js:15:32927
<anonymous>
https://myurl/speechtest/samples/speech/index.html:100:27
2 回答
问题在于我正在使用的js文件 . 根据下面的线程,我下载了正确的js文件,它开始工作 .
https://github.com/Microsoft/BotFramework-WebChat/issues/1141
我通过Bing Speech服务在Web Chat控件中进行语音识别和综合测试,该服务可以在Chrome和Firefox中使用 .
要解决此问题,您可以尝试:
1)将Firefox升级到最新版本,我使用的是版本62.0
2)确保您的网站使用麦克风