How to make HTML5 speech recognition not ask permission every time

Posted by user2081044 on Stack Overflow See other posts from Stack Overflow or by user2081044
Published on 2014-08-18T16:16:35Z Indexed on 2014/08/18 16:21 UTC
Read the original article Hit count: 147

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:

Print screen example

That message pops up everytime I click the button. Is there any way to disable Chrome for asking permission?

© Stack Overflow or respective owner

Related posts about html5

Related posts about google-chrome