Created
January 1, 2017 10:40
-
-
Save aylarov/677d36689fea4aeff0c3becfd3b4344a to your computer and use it in GitHub Desktop.
Voximplant ASR example #3: long streaming
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
var streaming_result = ""; | |
asr.addEventListener(ASREvents.SpeechCaptured, function (e) { | |
// Don't stop sending media after SpeechCaptured event | |
//call.stopMediaTo(asr); | |
}); | |
// Recognition results will continue arriving to the Result handler | |
asr.addEventListener(ASREvents.Result, function (e) { | |
if (e.confidence > 0) { | |
streaming_result += " " + e.text; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment