Queues TTS and audio output to the user.
<prompt
bargein="true"|"false"
bargeintype="hotword"|"speech"
cond="js_expression"
count="integer"
timeout="time_interval"
xml:lang="language specifier"
>
Prompt Text
</prompt>
Uses TTS to convey information to the user. If the prompt consists of simple text only, you can omit the prompt tags and the text will be interpreted as if they were present.
The prompt is played in its entirety unless interrupted.
If the bargein property is true, a user utterance can interrupt the prompt. If the bargeintype property is hotword, only an utterance that matches an active grammar can interrupt the prompt. In the latter case, the bevocal.hotwordmin and bevocal.hotwordmax properties specify the minimum and maximum time duration, respectively, of the interrupting utterance.
| Attribute | Description | ||||
bargein |
Determines whether user input will be recognized during the prompt. Optional (if not specified, the current value of the |
||||
bargeintype |
New in VoiceXML 2.0. Determines what kind of input can interrupt the prompt. Optional (if not specified, the current value of the
This attribute is relevant only when If the |
||||
cond |
JavaScript boolean expression that must evaluate to |
||||
count |
Minimum number of times the user must have visited the form item containing the prompt for the prompt to be spoken. Optional (default is Lets you vary prompts if the user is having problems and revisits the same form item several times. Form item prompt counters are reset with each invocation of the form. |
||||
timeout |
Time to wait before throwing a no-input event. Optional (if not specified, the current value of the Express time interval as an unsigned number followed by |
||||
xml:lang |
Language of TTS voice to use (see Specifying TTS Voices). Optional TTS voices can be specified by setting the See the If no matching TTS voice is found for the specified language, an |
|
|||
|
| | VoiceXML 2.0 Specification: <prompt> |
| | Related tags: <reprompt>, <audio>, <transfer> |
<?xml version="1.0" ?>
<!DOCTYPE vxml PUBLIC "-//BeVocal Inc//VoiceXML 2.0//EN"
"http://cafe.bevocal.com/libraries/dtd/vxml2-0-bevocal.dtd">
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
<property name="universals" value="help" />
<form id="tapered">
<block>
<prompt bargein="false">
This is question number 1.
</prompt>
</block>
<field name="color">
<noinput> <reprompt/> </noinput>
<nomatch> <reprompt/> </nomatch>
<grammar type="application/x-nuance-gsl">
[blue red green yellow]
</grammar>
<prompt count="1">What is the color of the Sky?</prompt>
<prompt count="2">Choose a color.</prompt>
<prompt count="3">Choose from red blue green or yellow.</prompt>
<help>
The color of the sky is usually blue except
during sunset and sunrise.
</help>
<filled>
<if cond="color=='blue'">
<prompt>Thats correct. The sky is <value expr="color"/> </prompt>
<else/>
<prompt> thats not correct. The sky is blue in color. </prompt>
</if>
</filled>
</field>
</form>
</vxml>
<?xml version="1.0" ?>
<!DOCTYPE vxml PUBLIC "-//BeVocal Inc//VoiceXML 2.0//EN"
"http://cafe.bevocal.com/libraries/dtd/vxml2-0-bevocal.dtd">
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
<form id="mynum">
<var name="phone" expr="5555555555"/>
<field name="get_num" type="boolean">
<prompt>
My phone number is
<say-as type="telephone"> <value expr="phone"/> </say-as>
Do you want to tell me your number?
</prompt>
<filled>
<if cond="get_num">
<goto nextitem="your_num"/>
<else/>
<prompt> Ok, do not tell me. </prompt>
</if>
</filled>
</field>
<field name="your_num" type="phone" cond="get_num">
<prompt>
What is your phone number
</prompt>
<filled>
<prompt>
So your number is
<say-as type="telephone"> <value expr="your_num"/> </say-as>
</prompt>
</filled>
</field>
</form>
</vxml>
| Café Home |
Developer Agreement |
Privacy Policy |
Site Map |
Terms & Conditions Part No. 520-0001-02 | © 1999-2007, BeVocal, Inc. All rights reserved | 1.877.33.VOCAL |