title: HTML5 Web Speech API not working locally
body: <p>I am trying to make this code work and don't know why is it not working locally. I tried the same on CodePen.io and it works.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Voice API&lt;/title&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;button onClick="func()"&gt;Click Me&lt;/button&gt;
      &lt;script&gt;
          function func()
          {
              alert('Hello');
              var recognition = new webkitSpeechRecognition();
              recognition.continuous = true;
              recognition.interimResults = true;
              recognition.onresult = function(event) 
              { 
                  alert(event.results[0][0].transcript); 
              }
              recognition.start();
          }
      &lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>Any suggestions?</p>