Choice

Choice

in

The choice element serves several purposes: It specifies a speech and/or dtmf grammar fragment that determines when that choice has been selected, the contents are used to form the prompt string, and it specifies the URI to go to when the choice is selected. The fetchaudio attribute is the URI of the audio clip to play while the fetch is being done. If not specified, the fetchaudio property is used, and if that property is not set, no audio is played during the fetch. Fetchtimeout indicates the timeout fetches. It must be specified with the appropriate time units. Maxage tells the platform the maximum acceptable age, in seconds of cached documents. Maxstale tells the platform the maximum acceptable staleness, in seconds, of expired cached documents. Accept overrides the setting for accept in menu for this particular choice. When set to exact, the text of the choice element defines the exact phrase to be recognized. DTMF determines the DTMF sequence for the choice. It is equivalent to a simple DTMF grammar and DTMF properties apply to recognition of the sequence. Event specifies an event to be thrown instead of specifying a next. Eventexpr is an ECMAScript expression evaluating to the name of the event to be thrown. Message is a message string providing additional context about the even being thrown. Messageexpr is an ECMAScript expression evaluating to the message string. Next indicates the URI of the next dialog or document. Expr specifies an expression to evaluates a URI to transition to instead of specifying a next.

Related links

Related terms

for "Choice"

Search Glossary

Term of the Day

Mixed initiative forms are created when both the computer and the human can direct the flow of the phone call. To make a form mixed initiative, it must have one or more form-level grammars.
See also: Grammar