Motorola 1 manual Examples

Page 14

VoxML 1.0 Element Reference

CANCEL Element

Examples

1<STEP NAME="report">

2<CANCEL NEXT="#traffic_menu"/>

3<PROMPT> Traffic conditions for Chicago,

4Illinois, Monday, May 18. Heavy

5congestion on ... </PROMPT>

7<INPUT TYPE="optionlist">

8<OPTION NEXT="#report"> repeat </OPTION>

9<OPTION NEXT="#choose"> new city </OPTION>

10</INPUT>

11</STEP>

The code on line 2 illustrates the use of the CANCEL element to specify that when the user says “cancel”, the browser should proceed to the STEP named “traffic_menu”, instead of the default behavior, which would be to simply stop the PROMPT from playing and wait for a user response. Users can also interrupt the PROMPT by speaking valid OPTION. In this example, the user could interrupt the PROMPT and get the traffic conditions for a different city by saying “new city”.

October 1998

VoxML 1.0 Language Reference 10

Image 14
Contents VoxML Language Reference RevisionPage Contents Appendices Purpose of this Document What is VoxMLOverview Structure of a VoxML Document DIALOGs and STEPsBasic Elements Other Reference Documentation VoxML 1.0 Application Development GuideAttributes ACK ElementSyntax Examples Audio Element Break Element Cancel Element Next step URLExamples Case Element Class Element IntegerExamples Dialog Element EMP Element Error Element Input TYPE=OPTIONLIST Help Element Option NEXT=#end done /OPTION 11 /INPUT 12 /STEP Input Element Input Element Type Date Data FormatInput Element Type Digits Input Element Type Grammar Input Element Type Hidden Input Element Type Money Input Element Type None Input Element Type Number Input Element Type Optionlist Input Element Type Phone Input Element Type PROFILE‡ Input Element Type Record Prompt Input Element Type Time Input Element Type Yorn Option Element VoxML 1.0 Element Reference Options Element Or Element Syntax AttributesPrompt Element Pros Element Rename Element Response Element Examples Step Element Switch Element Value Element PromptAppendices Appendix a VoxML 1.0 Document Type DefinitionOctober VoxML 1.0 Language Reference Appendix B Vcard Profile Names and Subtypes Vcard Profile Names and SubtypesFirst