Skip to content

Instantly share code, notes, and snippets.

@steeve
Created July 31, 2013 22:31
Show Gist options
  • Save steeve/6126800 to your computer and use it in GitHub Desktop.
Save steeve/6126800 to your computer and use it in GitHub Desktop.
function recognitionResult(event) {
for (var i = event.resultIndex; i < event.results.length; ++i) {
if (event.results[i].isFinal) {
connection.send(event.results[i][0].transcript);
}
}
}
to =>
function recognitionResult(event) {
for (var i = event.resultIndex; i < event.results.length; ++i) {
connection.send(event.results[i][0].transcript);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment