Changes

Jump to: navigation, search

Web Speech API - Speech Recognition

718 bytes added, 22:49, 24 October 2019
m
no edit summary
As an example, a user might see a microphone button in a text field. When they click it, they will be prompted to grant temporary permission for the browser to access the microphone. Then they can input what they want to say (an utterance). Once they’ve finished their utterance, the browser passes the audio to a server, where it is run through a speech recognition engine. The speech recognizer decodes the audio and sends a transcript back down to the browser to display on a page as text.
 
===== How can I use it? =====
First make sure you are running Firefox Nightly newer than [https://www.mozilla.org/en-US/firefox/nightly/all/ 72.0a1 (2019-10-22)]. Then type '''''about:config''''' in your address bar, search for the '''''media.webspeech.recognition.enable''''' and '''''media.webspeech.recognition.force_enable''''' preferences and make sure they are set as true. Then navigate to a website that makes use of the API, like [https://translate.google.com Google Translate], for example, select a language, click the microphone and say something. If you your purpose is to develop using the API, you can find the documentation on [https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API MDN].
 
===== Where does the audio go? =====
Confirm
58
edits

Navigation menu