ASR
Represents an ASR object provides speech recognition capabilities. Audio stream can be sent to an ASR instance from Call, Player or Conference instances. Parameters language or dictionary should be passed to the VoxEngine.createASR function.
Add the following line to your scenario code to use the class:
Constructor
Parameters
Parameters
Methods
addEventListener
Adds a handler for the specified ASREvents event. Use only functions as handlers; anything except a function leads to the error and scenario termination when a handler is called.
Parameters
dictionary
Returns the asr’s dictionary.
id
Returns the asr’s id.
language
Returns the asr’s language.
removeEventListener
Removes a handler for the specified ASREvents event.
Parameters
stop
Stops recognition. Triggers the ASREvents.Stopped event. Do not call any other ASR functions/handlers after the ASR.stop call.