Description
Plays TTS to the user.
Note that 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.
Syntax
<prompt
bargein="true" | "false" | "dtmf"
bargeintype="energy" | "speech" | "hotword" | "recognition"
cond="ECMAScript_Expression"
count="integer"
timeout="time_interval"
xml:lang="language"
xml:base="URI"
ttsengine="string"
broadcast="boolean">
child elements
</prompt> |
Attributes
| 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 |
| 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 The |
| broadcast |
Optional. |
Parents
<block>, <catch>, <error>, <field>, <filled>, <foreach>, <help>, <if>, <initial>, <menu>, <noinput>, <nomatch>, <object>, <record>, <subdialog>, <transfer>
Children
<audio>, <enumerate>, <foreach>, <mark>, <value>, Speech Markup (SSML), #PCDATA
Extensions
bargein attribute.bargeintype
attribute.
ttsengine attribute.broadcast attribute.Limitations/Restrictions
xml:base attribute is not currently supported, and
will be ignored if defined.
<prompt> cannot be used as a child of <foreach>
when <foreach> is a child of <prompt>.
com.voicegenie.STRICTCONFORMANCE property set to
FALSE), the platform has the following behaviour:timeout.
timeouts of empty or invalid prompts (i.e. ones
that don't contain any child elements or text) are ignored.
bargein="true"
will cause bargein to remain enabled for all the remaining
queued prompts.
Example
<?xml version="1.0"?>
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
<form>
<block>
<prompt> Hello, world! </prompt>
</block>
</form>
</vxml> |