Created
July 31, 2013 22:31
-
-
Save steeve/6126800 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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