SIGN UP

ASREvents

Events

ASRError

The event is triggered in case of problems during the recognition process

Parameters

  • asr:

    ASR

    ASR instance that generated the event

  • error:

    string

    Error message

CaptureStarted

The event is triggered after ASR detected voice input and started collecting audio data for ASR

Parameters

  • asr:

    ASR

    ASR instance that generated the event

InterimResult

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

Parameters

  • asr:

    ASR

    ASR instance that generated the event

  • text:

    string

    Recognition result

Result

The event is triggered when recognition result received from ASR. We strongly recommend to create recognition timeout manually to prevent unexpectedly long recognition time.

Parameters

  • asr:

    ASR

    ASR instance that generated the event

  • confidence:

    number

    Recognition confidence in 0..100 Range (100 means full confidence, 0 - not confident at all)

  • text:

    string

    Recognition result

SpeechCaptured

The event is triggered after ASR captured audio data, before recognition process

Parameters

  • asr:

    ASR

    ASR instance that generated the event

Started

The event is triggered after ASR instance was created

Parameters

  • asr:

    ASR

    ASR instance that generated the event

Stopped

The event is triggered as a result of the ASR.stop method call

Parameters

  • asr:

    ASR

    ASR that generated the event

  • cost:

    string

    Record cost (in the account's currency: USD, EUR or RUR)

  • duration:

    number

    Record duration (sec)