<enumerate>

The <enumerate> element is an automatically generated description of the choices available to the user.

Attributes

None

Notes

NOTE: The element specifies a template that is applied to each choice in the order they appear in the menu. The element may refer to two special variables: _prompt refers to the prompt within the choice and _dtmf refers to the assigned DTMF sequence of the choice.


Example

<?xml version="1.0"?>
<vxml version="2.0">
  <menu id="maincoursea">
    <prompt>
      Please select an entree.
    <enumerate>
      For <value expr="_prompt"/>, say <value expr="_prompt"/> or press <value expr="_dtmf"/>.
    </enumerate>
    </prompt>
    <choice next="#maincoursea1"> swordfish steak </choice>
    <choice next="#maincoursea2"> roast beef </choice>
  </menu>

  <menu id="maincoursea1">
    <prompt>
      You chose swordfish steak. Press 1 or say dessert to hear what's for dessert.
    </prompt>
    <choice next="#dessert" dtmf="1">Dessert</choice>
  </menu>

  <menu id="maincoursea2">
    <prompt>
      You chose roast beef. Press 1 or say dessert to hear what's for dessert.
    </prompt>
    <choice next="#dessert" dtmf="1">Dessert</choice>
  </menu>

  <form id="dessert">
    <block>
      <prompt>
        The dessert today is chocolate pie.
      </prompt>
    </block>
  </form>
</vxml>

The output of the above script would be:

Computer: Please select an entree. For swordfish steak, say swordfish steak. For roast beef, say roast beef.
Human: Roast beef.
Computer: You chose roast beef. Press 1 or say dessert to hear what's for dessert.
Human: Dessert.
Computer: The dessert today is chocolate pie.



Child Tags

<audio>, <break>, <emphasis>, <enumerate>, <mark>, <phoneme>, <prosody>, <say-as>, <speak>, <sub>, <p>, <paragraph>, <s>, <sentence>, <value>, <voice>



Parent Tags

<audio>, <block>, <catch>, <emphasis>, <enumerate>, <error>, <field>, <filled>, <help>, <if>, <initial>, <menu>, <noinput>, <nomatch>, <p>, <paragraph>, <prompt>, <prosody>, <record>, <s>, <sentence>, <speak>, <subdialog>, <transfer>, <voice>