<menu>

A menu is a convenient syntactic shorthand for a form containing a single anonymous field that prompts the user to make a choice and transitions to different places based on that choice.

Attributes
id The identifier of the menu. It allows the menu to be the target of a <goto> or a <submit>.
scope (default is "dialog") The menu's grammar scope. If it is dialog, the menu's grammars are only active when the user transitions into the menu. If the scope is document, its grammars are active over the whole document (or if the menu is in the application root document, any loaded document in the application).
accept (default is "exact") When set to "exact", the text of the choice elements in the menu defines the exact phrase to be recognized. When set to "approximate", the text of the choice elements defines an approximate recognition phrase. Each <choice> can override this setting.
dtmf When set to true, the first nine choices that have not explicitly specified a value for the dtmf attribute are given the implicit ones "1", "2", etc. Remaining choices that have not explicitly specified a value for the dtmf attribute will not be assigned DTMF values (and thus cannot be matched via a DTMF keypress).


Child Tags
<audio>, <enumerate>, <error>, <value>, <choice>, <catch>, <help>, <noinput>, <nomatch>, <prompt>, <property>


Parent Tags
<vxml>

 
Notes
none


Example
<?xml version="1.0"?>
<vxml version="2.0">
<menu>
<prompt>
Say one of the following choices: <enumerate/>
</prompt>
<choice next="http://nonexistent.domain.com/sports.vxml">
Sports
</choice>
<choice next="http://nonexistent.domain.com/weather.vxml">
Weather
</choice>
<choice accept="approximate" event="assistance">
Operator Assistance
</choice>
<noinput>Please say one of <enumerate/></noinput>
<catch event="assistance">
<prompt>
Sorry, there is no operator assistance available.
</prompt>
</catch>
</menu>
</vxml>

An interaction with the above script could be:

Computer: Say one of the following choices: Sports, Weather, Operator Assistance.
Human: Assistance.
Computer: Sorry, there is no operator assistance available.