Skip to content

Instantly share code, notes, and snippets.

@josher19
Created August 20, 2016 07:10
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 josher19/00f60c443c8e22d65a391f6af0fb37af to your computer and use it in GitHub Desktop.
Save josher19/00f60c443c8e22d65a391f6af0fb37af to your computer and use it in GitHub Desktop.
var recog = new SpeechRecognition();
recog.addEventListener('result', function (event) {
for (var i = event.resultIndex; i < event.results.length; i++) {
if (event.results[i].isFinal) {
console.log(event.results[i][0].transcript);
}
}
});
recog.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment