continous speech recognition with Webkit speech api continous speech recognition with Webkit speech api google-chrome google-chrome

continous speech recognition with Webkit speech api


I know this is an old thread, but I had this problem too. I found that, even with the continuous flag set, if there are pauses in the input speech, a "no-speech" error gets thrown (triggers the onerror event) and the engine is shut down. I just added code in the onend to restart the engine:

recognition.onend = function() {    recognition.start();};

The next problem you might get is, every time the engine restarts, the user has to re-grant permission to let the browser use the microphone. The only solution at this time seems to be to make sure you connect to your site over HTTPS (source: http://updates.html5rocks.com/2013/01/Voice-Driven-Web-Apps-Introduction-to-the-Web-Speech-API bottom of post in bold)


Perhaps the typo on this line:

recognition.continuos = true;

Should equal:

recognition.continuous = true;


recognition.onend = function(){recognition.start();// sets off a beep/noise each time it is accessed from a cell phone (Andoid).// does NOT if accessed from a desktop (Windows using Chrome).};