Motorola 1 manual Value Element, Prompt

Page 50

VoxML 1.0 Element Reference

VALUE Element

VALUE Element

The VALUE element is used to present the value of a VoxML variable to the user via text-to-speech. The VALUE element can be used anywhere that text is read to the user.

The VALUE element can be contained by a PROMPT, EMP, PROS, HELP,

ERROR, CANCEL, or ACK element.

Syntax

<VALUE NAME="value" />

Attributes

Attribute Name

Allowed Values

NAMEidentifier

Examples

1 <STEP NAME="thanks">

2<PROMPT> Thanks for your responses. I'll record

3that <VALUE NAME="first"/> is your favorite

4and that <VALUE NAME="second"/> is your

5second choice.

6</PROMPT>

7<INPUT TYPE="NONE" NEXT="/recordresults.asp" />

8</STEP>

The VoxML code shown above illustrates the use of the VALUE element to read the user’s selections back to the user. On line 3, the value of the VoxML variable named “first” would be inserted into the PROMPT, and on line 4 the value of the VoxML variable named “second” would be inserted into the

PROMPT.

October 1998

VoxML 1.0 Language Reference 46

Image 50
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