VoiceXML 2.1 Development Guide Home  |  Frameset Home


<value>  element


The value element can be used to insert a variable value for use as a TTS prompt.


usage

<value expr="CDATA">


attributes

expr Data Type: CDATA Default: Required
The expr attribute specifies the ECMAScript expression which evaluates to a string to be rendered by the TTS engine.



shadow variables

none


parents

<audio>   <block>   <catch>   <choice>   <enumerate>   <error>   <field>   <filled>   <help>   <if>   <initial>   <log>   <menu>   <nomatch>   <prompt>   <record>   <transfer>


children

none


code samples

<Value expr> sample
<?xml version="1.0" encoding="UTF-8"?>

<vxml version = "2.1">

<meta name="author" content="Matthew Henry"/>
<meta name="copyright" content="2005 voxeo corporation"/>
<meta name="maintainer" content="YOUR_EMAIL@HERE.COM"/>

<form id="F1">

  <var name="MyVar" expr="'Dirk Diggler'"/>
  <block>
  <prompt>
Our favorite movie star is
    <value expr="MyVar"/>.
  </prompt>
  </block>
</form>
</vxml>



additional links

W3C 2.0 Specification


  ANNOTATIONS: EXISTING POSTS
moshe
6/4/2004 10:41 AM (EDT)
<prompt> is also a parent of <value>

The explanation of what <value> does is wong, even though that's what the W3C spec says. <value> transforms an ECMA expression into text, and can be used where the interepreter expects text.

Examples:  Given

<var name="foo" value="'bar'"/>

In a log,

<log>The value was <value expr="foo"/></log>

prints out "The value was bar."

And in a <prompt>,

<prompt>The value was <value expr="foo"/></prompt>

The system will say "The value was bar."
chakri.950
5/31/2009 10:33 AM (EDT)
Hi,

I want to slow down the speed of the

I am using the below syntax for reading teh date which is in variable datetemp.

<say-as format="my" interpret-as="date"> <value expr="datetemp"/> </say-as>

For example it is saying the date as march 2009 but it is saying too fast. Is there any way to reduce speed of saying date.

Thanks & Regards,
Kalyan M

voxeojeremyr
5/31/2009 10:49 AM (EDT)
Hi Kalyan,

You can use the <prosody> element to give the TTS engine instructions on how to read the value.

In your case I would use this syntax:
<prompt>
  <prosody rate="slow">
    Text to speech message goes here
  </prosody>
</prompt.

You can read more about the <prosody> tag here:
http://www.vxml.org/prosody.htm

Regards,
Jeremy Richmond
Voxeo Support

login



© 2013 Voxeo Corporation  |  Voxeo IVR  |  VoiceXML & CCXML IVR Developer Site