Google Chrome network error error

I am trying to create a PHP web application using the Chrome Web Speech API. I always get network errors. But I have a good network connection.

window.SpeechRecognition = window.SpeechRecognition 
                               || window.webkitSpeechRecognition || null;
    if (window.SpeechRecognition === null) {
    } else {
        var recognizer = new window.SpeechRecognition();
        recognizer.continuous = false;
        recognizer.lang = 'en-US';
        recognizer.onstart = function() {
            recognizing = true;
        };
        recognizer.onresult = function(event) {
        };
    }
recognizer.onerror = function(event) { 
            alert(event.error);
            ignore_onend = true;
            if (event.error == 'not-allowed') {
                alert("Allow to access your microphone");
            }
            recognizer.stop();
            recognizer.start();
};

      

thank

+3


source to share


1 answer


I have a similar problem since the last google update and I am pretty sure there is a bug in the latest update. I have a similar thread in RecognizerIntent giving error after last google search update My android app gives network error for recognizer. Before that, there were no network problems. So W / JavaNetConnection error: Failed to get connection status. java.io.FileNotFoundException: https://www.google.com/m/voice-search/down?pair=6239918a-dc45-4eea-ac6f-b9bf8de57ced



+1


source







All Articles