Skip to content

Instantly share code, notes, and snippets.

@jdrew1303
Forked from addyosmani/recog.js
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdrew1303/a8b650dc05f8753f703a to your computer and use it in GitHub Desktop.
Save jdrew1303/a8b650dc05f8753f703a to your computer and use it in GitHub Desktop.
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