ASREvents

Add the following line to your scenario code to use the events: require(Modules.ASR);

View as Markdown

Values

ASRError
'ASR.Error'

Triggers in case of errors during the recognition process.

Started
'ASR.Started'

Triggers after ASR instance is created.

CaptureStarted
'ASR.CaptureStarted'

Triggers after ASR detected voice input and started collecting audio data for ASR.

SpeechCaptured
'ASR.SpeechCaptured'

Triggers after ASR captured audio data, before recognition process.

Result
'ASR.Result'

Triggered when a speech recognition result has been received from ASR. We strongly recommend to create recognition timeout manually to prevent unexpectedly long recognition time. NOTE: we recommend to take a decision about continuing speech recognition in this event’s handler. Otherwise, speech recognition continues automatically.

InterimResult
'ASR.InterimResult'

Triggered when interim recognition result received from ASR. Note that event could be triggered only if the ASRParameters.interimResults option is set to true.

Stopped
'ASR.Stopped'

Triggers as a result of the ASR.stop method call.