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

Page 43
Image 43
Motorola 1 manual Prompt Element