I currently have for my web application a speech recognition functionality achieved with a Speech Recognition
library named annyang
. This works only in chrome because x-webkit-speech
(which is used for speech recognition) works only for Chrome.
My question here is if I can do something(even if I have to do radical changes) to have a speech recognition functionality in Mozilla Firefox too (and eventually in IE).
To use the recognition and synthesis parts of the spec in Firefox (desktop/Android), you’ll need to enable the media.webspeech.recognition.enable and media.webspeech.synth.enabled flags in about:config.
We will, however, be testing offline speech recognition in Firefox Reality for Chinese users early in 2020. Depending on how those tests go, we may plan to extend the functionality elsewhere. At one point back in 2015, there was an offline speech recognition engine (Pocketsphinx) embedded into Gecko for FirefoxOS.
Chrome, Edge, Safari and Opera support a form of this API currently for Speech-to-text, which means sites that rely on it work in those browsers, but not in Firefox. As speech input becomes more prevalent, it helps developers to have a consistent way to implement it on the web.
Well, you’d be right. Browsers tend to use the speech services available on the operating system by default, so for example you’ll be using the Mac Speech service when accessing speech synthesis on Firefox or Chrome for OS X. The recognition and synthesis parts of the Web Speech API sit in the same spec, but operate independently to one another.
Looks like they're working on it: https://wiki.mozilla.org/SpeechAPI#Technical_Stuff
...but that it's not coming any time soon: http://caniuse.com/web-speech
Looks like you'll need to stick with Chrome for the time being.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With