O'Reilly logo

Definitive VoiceXML™ by David Cuddihy, Adam Hocek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

2.7. Menus

A menu is a special case of a form so frequently used that the creators of VoiceXML made a shorthand notation for it - the menu element type. A menu is similar to a form with only one question. For example, a banking application might present a menu like:

Would you like to:
  * Check your account balance,
  * Transfer funds, or
  * Speak with a customer service representative?

There is only one question - what does the customer want to do? There are three possible valid answers to this question, namely to check your account balance, to transfer funds, or to speak with a customer service representative.

The menu element type represents this special sort of a form. In VoiceXML, the banking menu described above could be written as in Example ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required