简体   繁体   中英

Speech Recognition in Firefox

So I have speech recognition working, but the problem is it only works in Chrome. After searching around I have seen many people saying that speech recognition works now in Firefox but some saying it doesn't. What is the clear answer?

This website states that

It is July 2018, and the WebSpeech API is still a working draft and only available in Chrome and Firefox.

I have added window.SpeechRecognition = window.webkitSpeechRecognition || window.SpeechRecognition; window.SpeechRecognition = window.webkitSpeechRecognition || window.SpeechRecognition;

I have media.webspeech.recognition.enable enabled in Firefox.

But nothing works.

Here is an example of my code:

https://jsfiddle.net/k5cm8ypg/

According to https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API#Browser_compatibility there is no support for Firefox (but for some versions of Edge). Last update in February 2019 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM