ASR is represented by the ASR module that should be mounted into a scenario via the require syntax.
This is how the module is used:
- Create an ASR object by calling the VoxEngine.createASR method.
- Subscribe to the ASR object events like ASREvents.Result
- Send media from a call object to the ASR object via the sendMediaTo method
- Receive recognized text via events
Recognition based on provided phrase hints is useful for building IVRs, when the expected user input is usually limited to a short number of variants.
Bear in mind that phrase hints supported by the Google profile only and they do not limit the recognition to the specific list. Instead, words in the specified list will have a higher chance to be selected.