Plum DEV Documentation
voicexml:tags:enumerate

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

voicexml:tags:enumerate [2014/05/29 15:38]
jennifer added meta description
voicexml:tags:enumerate [2019/09/17 12:29]
Line 1: Line 1:
-{{description>​‹enumerate› VoiceXML tag details, attributes and VXML code example | enumerate is an automatically generated description of the choices available.}} 
-=====<​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==== 
- 
-<​code>​ 
-<?xml version="​1.0"?>​ 
-<vxml version="​2.0">​ 
-  <menu id="​maincoursea">​ 
-    <​prompt>​ 
-      Please select an entree. 
-    <​enumerate>​ 
-      For <value expr="​_prompt"/>,​ press <value expr="​_dtmf"/>​ or say <value expr="​_prompt"/>​. 
-    </​enumerate>​ 
-    </​prompt>​ 
-    <choice next="#​maincoursea1"​ dtmf="​1">​ swordfish steak </​choice>​ 
-    <choice next="#​maincoursea2"​ dtmf="​2">​ 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>​ 
-</​code>​ 
-The output of the above script would be: 
- 
-Computer: Please select an entree. For swordfish steak, press 1 or say swordfish steak. For roast beef, press 2 or 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==== 
- 
-[[voicexml:​tags:​audio|<​audio>​]],​ [[voicexml:​tags:​break|<​break>​]],​ [[voicexml:​tags:​emphasis|<​emphasis>​]],​ [[voicexml:​tags:​enumerate|<​enumerate>​]],​ [[voicexml:​tags:​mark|<​mark>​]],​ [[voicexml:​tags:​phoneme|<​phoneme>​]],​ [[voicexml:​tags:​prosody|<​prosody>​]],​ [[voicexml:​tags:​say-as|<​say-as>​]],​ [[voicexml:​tags:​speak|<​speak>​]],​ [[voicexml:​tags:​sub|<​sub>​]],​ [[voicexml:​tags:​p|<​p>​]],​ [[voicexml:​tags:​paragraph|<​paragraph>​]],​ [[voicexml:​tags:​s|<​s>​]],​ [[voicexml:​tags:​sentence|<​sentence>​]],​ [[voicexml:​tags:​value|<​value>​]],​ [[voicexml:​tags:​voice|<​voice>​]] 
- 
- 
-====Parent Tags==== 
- 
-[[voicexml:​tags:​audio|<​audio>​]],​ [[voicexml:​tags:​block|<​block>​]],​ [[voicexml:​tags:​catch|<​catch>​]],​ [[voicexml:​tags:​emphasis|<​emphasis>​]],​ [[voicexml:​tags:​enumerate|<​enumerate>​]],​ [[voicexml:​tags:​error|<​error>​]],​ [[voicexml:​tags:​field|<​field>​]],​ [[voicexml:​tags:​filled|<​filled>​]],​ [[voicexml:​tags:​help|<​help>​]],​ [[voicexml:​tags:​if|<​if>​]],​ [[voicexml:​tags:​initial|<​initial>​]],​ [[voicexml:​tags:​menu|<​menu>​]],​ [[voicexml:​tags:​noinput|<​noinput>​]],​ [[voicexml:​tags:​nomatch|<​nomatch>​]],​ [[voicexml:​tags:​p|<​p>​]],​ [[voicexml:​tags:​paragraph|<​paragraph>​]],​ [[voicexml:​tags:​prompt|<​prompt>​]],​ [[voicexml:​tags:​prosody|<​prosody>​]],​ [[voicexml:​tags:​record|<​record>​]],​ [[voicexml:​tags:​s|<​s>​]],​ [[voicexml:​tags:​sentence|<​sentence>​]],​ [[voicexml:​tags:​speak|<​speak>​]],​ [[voicexml:​tags:​subdialog|<​subdialog>​]],​ [[voicexml:​tags:​transfer|<​transfer>​]],​ [[voicexml:​tags:​voice|<​voice>​]] 
-