title: Chrome speech API network error
body: <p>I'm trying to create a PHP web application using Chrome web speech API. I'm always getting network errors. But, I have a good network connection.</p>
  
  <pre><code>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();
  };
  </code></pre>
  
  <p>Thanks</p>