Created
August 20, 2016 07:10
-
-
Save josher19/00f60c443c8e22d65a391f6af0fb37af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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