<option>
<option>
An option list is represented by a set of <option>
elements contained in a <field>
element. Each <option>
element contains PCDATA that is used to generate a speech grammar.
Attributes
Name | Data type | Description |
---|---|---|
dtmf | Integer | The DTMF sequence for this option. It is equivalent to a simple DTMF |
value | String | The string to assign to the field's form item variable when a user selects this option, whether by speech or DTMF. The default assignment is the CDATA content of the <option> element, with leading and trailing white space removed. If this does not exist, then the DTMF sequence is used instead. |
accept | String | (defaults to “exact”) Accepted values include "exact" and "approximate". When set to “exact”, the When set to “approximate”, the |
Notes
None
Example
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. For frog legs, press 3 or say frog legs. Human: <user enters: 1> Computer: You chose fish.
Child Tags
None
Parent Tags
Last updated