所以我可以使用语音识别功能,但问题是它只能在 Chrome 中使用。经过搜索后,我看到很多人说语音识别现在可以在 Firefox 中使用,但也有人说不行。明确的答案是什么?
This网站指出
It is July 2018, and the WebSpeech API is still a working draft and only available in Chrome and Firefox.
我添加了window.SpeechRecognition = window.webkitSpeechRecognition || window.SpeechRecognition;
我在 Firefox 中启用了 media.webspeech.recognition.enable
。
但是没有任何作用。
这是我的代码示例:
最佳答案
根据https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API#Browser_compatibility不支持 Firefox(但不支持某些版本的 Edge)。最后更新于February 2019 .
关于javascript - Firefox 中的语音识别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60811836/