SpeechRecognition is not working in firefox

試著忘記壹切 提交于 2020-01-22 22:22:03

问题


I am trying to test webspeech-api of firefox but encountering an error in the console saying ReferenceError: SpeechRecognition is not defined.

I have even enabled media.webspeech.recognition.enable and media.webspeech.synth.enabled flags in about:config.

Is there a way to make SpeechRecognition work on firefox?


回答1:


According to this blog post from January 21, 2016 by Chris Mills (a senior tech writer at Mozilla) you can't use it yet in web environment on FF ...

... because the UX/UI to allow users to grant an app permission to use it is not yet implemented.

...

Here is a bug report for which you can vote.

And currently, you'll have to be in the chrome environment (extension) to use it.


Update winter 2019

The linked bug report has been marked as fixed.

To enable the SpeechRecognition in Firefox Nightly > 72, go to about:config and switch the flags media.webspeech.recognition.enable and media.webspeech.recognition.force_enable to true.

However note this is an online service, which means you'll need an internet connection.



来源:https://stackoverflow.com/questions/39784986/speechrecognition-is-not-working-in-firefox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!