0

我正在使用以下文章来启用语音,这在 Chrome 中运行良好(即使使用 bing 语音)。

https://docs.microsoft.com/en-us/azure/bot-service/bot-service-channel-connect-webchat-speech?view=azure-bot-service-3.0

然而,同样在 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
4

2 回答 2

1

我做了一个测试,通过 Bing Speech 服务在 Web Chat 控件中启用语音识别和合成,该服务可以在 Chrome 和 Firefox 中运行。

在此处输入图像描述

要解决此问题,您可以尝试:

1) 将您的 Firefox 升级到最新版本,我使用的是 62.0 版

在此处输入图像描述

2) 确保您允许您的网站使用您的麦克风

在此处输入图像描述

于 2018-09-10T03:09:17.263 回答
0

问题出在我使用的 js 文件上。根据下面的线程,我下载了正确的 js 文件并开始工作。

https://github.com/Microsoft/BotFramework-WebChat/issues/1141

于 2018-10-07T07:55:37.700 回答