Motorola 1 manual Prompt Element

Page 43

VoxML 1.0 Element Reference

PROMPT Element

PROMPT Element

The PROMPT element is used to define content (text or an audio file) that is to be presented to the user. Typically, the PROMPT element will contain text and several markup elements, like the BREAK or EMP element, that are read to the user via text-to-speech technology.

The PROMPT element can be contained within a STEP or a CLASS element.

Syntax

<PROMPT> text </PROMPT>

Attributes

The PROMPT element has no attributes.

Examples

1 <STEP NAME="init">

2<PROMPT> How old are you? </PROMPT>

3<INPUT TYPE="number" NAME="age" NEXT="#weight"/>

4</STEP>

In this simple example, the text “How old are you?” will be spoken via text-to- speech technology, and then the application will wait for the user to say his age. The PROMPT element on line 2 defines what will be presented to the user.

October 1998

VoxML 1.0 Language Reference 39

Image 43
Contents Revision VoxML Language ReferencePage Contents Appendices Overview What is VoxMLPurpose of this Document DIALOGs and STEPs Structure of a VoxML DocumentBasic Elements VoxML 1.0 Application Development Guide Other Reference DocumentationSyntax ACK ElementAttributes Examples Audio Element Break Element Next step URL Cancel ElementExamples Case Element Integer Class ElementExamples Dialog Element EMP Element Error Element Input TYPE=OPTIONLIST Help Element Option NEXT=#end done /OPTION 11 /INPUT 12 /STEP Input Element Data Format Input Element Type DateInput 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 Syntax Attributes Or ElementPrompt Element Pros Element Rename Element Response Element Examples Step Element Switch Element Prompt Value ElementAppendix a VoxML 1.0 Document Type Definition AppendicesOctober VoxML 1.0 Language Reference Vcard Profile Names and Subtypes Appendix B Vcard Profile Names and SubtypesFirst