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

Page 14
Image 14
Motorola 1 manual Examples