google chrome - How to make HTML5 speech recognition not ask permission every time -


i have created script requires microphone. uses html5 speech recognition api. chrome asks permission every time want perform speech recognition test.

javascript (partial) code using:

         var recognition = new webkitspeechrecognition();             recognition.continuous = true;             recognition.interimresults = true;             recognition.onresult = function(event) {                 console.log(event.results[0][0].transcript);                 if(event.results[0][0].transcript === 'print')                 {                     console.log('');                 }             };              recognition.start(); 

i have tried add list of exceptions in either chrome , flash player, still asks permission.

printscreen:

print screen example

that message pops everytime click button. there way disable chrome asking permission?

as jschorr mentioned in comments above, using https prevent browser asking permissions every time recognition started

as stated here


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -