2.8. Events

For a voice application to be useful it must respond in real time to user input. VoiceXML models these real-time occurrences as events. Much of this event handling happens automatically - an active grammar is satisfied by user's response, thus causing a form field to be filled. In this situation the VoiceXML programmer doesn't need to explicitly catch the event. It is implicit in the definition of the grammar element and the elements that comprise the form.

The VoiceXML programmer usually needs to worry about events only for exceptional behavior, such as the caller's response not being understood by the speech recognizer, or the caller asking for help. In these situations the VoiceXML programmer may want to "catch" an event - in other ...

Get Definitive VoiceXML™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.