HTML5 Web Speech API not working locally
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. <html> <head> <title>Voice API</title> </head> <body> <button onClick="func()">Click Me</button> <script> 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(); } </script> </body> Any suggestions? Code Uniquely You could try adding the following snippet to see what error is