no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | developer_guide:voicexml_references:elements:choice [2015/10/13 21:42] (current) – created borja | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== < choice > ====== | ||
+ | ===== Description ===== | ||
+ | The < | ||
+ | * Specifies a speech grammar fragment and/or a DTMF grammar fragment that determines when that choice has been selected. | ||
+ | * Forms the < | ||
+ | * Specifies the URI to go to when the choice is selected. | ||
+ | |||
+ | ===== Syntax ===== | ||
+ | < | ||
+ | <choice | ||
+ | dtmf=" | ||
+ | accept=" | ||
+ | next=" | ||
+ | event=" | ||
+ | expr=" | ||
+ | fetchaudio=" | ||
+ | fetchhint=" | ||
+ | fetchtimeout=" | ||
+ | maxage=" | ||
+ | maxstale=" | ||
+ | child elements | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== Attributes ===== | ||
+ | |||
+ | |dtmf|This attribute is the DTMF sequence for this choice. This attribute is optional.| | ||
+ | |accept|The accept attribute overrides the setting for the accepted attribute in the < | ||
+ | |next|The next attribute is the URI of the next dialog or document.| | ||
+ | |event|This attribute throws a specified event. | ||
+ | |expr|The expr attribute is an ECMAScript Expression that defines the URI to transition. | ||
+ | |fetchaudio|The fetchaudio attribute is the URI of the audio to play while waiting for the next document to be fetched.| | ||
+ | |fetchtimeout|This attribute indicates the time interval to wait for an audio file to be fetched before playing the alternate content. | ||
+ | |fetchhint|The fetchhint attribute defines when the audio file should be retrieved. | ||
+ | |maxage|This attribute indicates the maximum time in seconds that this document will use this file before fetching another copy. This attribute is optional.| | ||
+ | |maxstale|The maxstale attribute indicates the maximum time in seconds that this document will use the file that exceeded the maxage time. This attribute is optional.| | ||
+ | |||
+ | ===== Parents ===== | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | ===== Children ===== | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | ===== Extensions ===== | ||
+ | < | ||
+ | None. | ||
+ | </ | ||
+ | |||
+ | ===== Limitations/ | ||
+ | < | ||
+ | The dtmf attribute must be specified. | ||
+ | </ | ||
+ | |||
+ | ===== Example Code ===== | ||
+ | < | ||
+ | <?xml version=" | ||
+ | <vxml version=" | ||
+ | < | ||
+ | < | ||
+ | <choice dtmf=" | ||
+ | <choice dtmf=" | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ |