How to make HTML5 speech recognition not ask permission every time
- by user2081044
I have created a script that requires my microphone. It uses the HTML5 speech recognition API. Chrome asks permission every time I want to perform a speech recognition test.
Javascript (partial) code that I am 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 to add it into the list of exceptions in either Chrome and Flash player, but it still asks for permission.
Printscreen:
That message pops up everytime I click the button.
Is there any way to disable Chrome for asking permission?