Plays TTS to the user.
Note: prompts containing Speech Markup (SSML) will be passed into the TTS engine as an XML document. When the VoiceXML page is first parsed by the interpreter, the prompts will be decoded. The interpreter will then re-encode the prompt content into an XML document to pass to the TTS engine.
<prompt bargein="true" | "false" bargeintype="speech" | "hotword" cond="ECMAScript_Expression" count="integer" timeout="time_interval" xml:lang="language" xml:base="URI" ttsengine="string"> child elements </prompt>
|
Attribute |
Description |
|
bargein |
Controls whether or not user input can be collected before the prompt has finished playing. Optional. (Defaults to true.)
Overrides the value of the |
|
bargeintype |
The bargein type. Optional. (Defaults to speech.)
Overrides the value of the Note: Not all bargeintypes are supported with all ASR engines. |
|
cond |
An ECMAScript expression to be evaluated and used as a boolean condition. This |
|
count |
Each field item maintains a counter of number of times the item has been visited. The |
|
timeout |
The length of time to wait, if no speech occurs, before throwing a |
|
xml:lang |
The language identifier of the prompt. If omitted, it defaults to the value specified in the document's The list of supported values for this attribute depends on the TTS engine being used. Note that the |
|
xml:base |
Declares the base URI from which relative URIs in the prompt are resolved. This base declaration has precedence over the |
|
ttsengine |
Specifies the name of the TTS (Text-to-Speech) engine to use (i.e. the voice) when playing this prompt. Overrides the value of the A platform extension. |
Block Catch Error Field Filled ForEach Help If Initial Menu Noinput Nomatch Object Record Subdialog Transfer
Audio Enumerate ForEach Mark Value Speech Markup (SSML) Tags #PCDATA
ttsengine attributeNone
<?xml version="1.0"?> <vxml version="2.0" xmlns="http://www.w3.org/2001/vxml"> <form> <block> <prompt> Hello, world! </prompt> </block> </form> </vxml>