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 |