Skip to content

Instantly share code, notes, and snippets.

@philsinatra
Created September 9, 2013 11:35
Show Gist options
  • Save philsinatra/6494422 to your computer and use it in GitHub Desktop.
Save philsinatra/6494422 to your computer and use it in GitHub Desktop.
Javascript Speech Recognition
r = new webkitSpeechRecognition;
r.continuous = true;
r.interimResults = true;
r.onresult = function(ev) {
console.log(ev.results[ev.results.length-1][0].transcript);
};
r.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment