I'm trying to use the node webkit speech recognition API but it gives me a strange behavior. I initialize the recorder like that :
var rec = new webkitSpeechRecognition();
rec.continuous = true;
rec.interimResults = true;
rec.onresult = function(e){ alert('result') };
rec.onstart = function(e){ alert('start') };
rec.onerror = function(e){ console.log(e); };
rec.onend = function(e){ alert('end') };
rec.onspeechstart = function(e){ alert('speechStart') };
rec.start();
But nothing occurs after start()
call. The only slot which works is end()
and I can't figure out this one works and not the other ones... What am I loosing ?
I browse this Github issue (webkitSpeechRecognition for desktop apps?) but don't find any useful information.