VoxML 1.0 Element Reference

DIALOG Element

DIALOG Element

The DIALOG element is the fundamental element of VoxML. If one were to imagine a VoxML document as a tree, the DIALOG element would be the root of the tree. The DIALOG element defines the basic unit of context within a VoxML application, and in the common case, there is one DIALOG element per URL.

Each VoxML DIALOG must contain exactly one STEP element named “init”.

The execution of the VoxML application begins with the STEP named “init”.

A DIALOG element cannot be contained by any VoxML element.

Syntax

<DIALOG [BARGEIN="value"] > VoxML </DIALOG>

Attributes

Attribute Name

Allowed Values

 

 

BARGEIN

Y *

 

N

Examples

1<DIALOG>

2<STEP NAME="init">

3<PROMPT> Welcome to VoxML. </PROMPT>

4</STEP>

5</DIALOG>

The above code shows a simple, yet complete VoxML DIALOG. The DIALOG element is specified on lines 1 and 5 and contains a single STEP element named “init”. The STEP has a single PROMPT that will be read via text-to-speech.

Since there is no INPUT defined in this STEP, the VoxML application will terminate immediately after the PROMPT is read.

October 1998

VoxML 1.0 Language Reference 14

Page 18
Image 18
Motorola 1 manual Dialog Element