Motorola 1 manual Break Element

Page 12

VoxML 1.0 Element Reference

BREAK Element

BREAK Element

The BREAK element is used to insert a pause into content to be presented to the user. BREAK elements can be used anywhere that you would read text to or play audio samples for the user.

The BREAK element can be contained within a PROMPT, EMP, PROS, HELP,

ERROR, CANCEL, or ACK element.

Syntax

<BREAK [MSECS="value" SIZE="value"] />

Attributes

Attribute Name

Allowed Values

 

 

MSECS

milliseconds (integer)

 

 

SIZE

NONE

 

SMALL

 

MEDIUM *

 

LARGE

Examples

1<PROMPT>

2Welcome to Earth. <BREAK MSECS="250"/>

3How may I help you?

4</PROMPT>

The code shown above illustrates the use of the BREAK element with the MSECS attribute, inside a PROMPT. When interpreted by the VoxML voice browser, this code would speak the text “Welcome to Myosphere.”, pause for 250 milliseconds, and then speak the text “How may I help you?”.

1<PROMPT>

2Welcome to Earth. <BREAK SIZE="medium"/>

3How may I help you?

4</PROMPT>

As an alternative to specifying an exact number of milliseconds, an application developer can use the SIZE attribute of the BREAK element to control the duration of the pause.

The actual duration of “small”, “medium”, and “large” are system defined, and may change. Use the MSECS attribute if a specific duration is required.

October 1998

VoxML 1.0 Language Reference 8

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