Motorola 1 manual Dialog Element

Page 18

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

Image 18
Contents VoxML Language Reference RevisionPage Contents Appendices What is VoxML OverviewPurpose of this Document Structure of a VoxML Document DIALOGs and STEPsBasic Elements Other Reference Documentation VoxML 1.0 Application Development GuideACK Element SyntaxAttributes 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