|VoiceXML 2.1 Development Guide||Home | Frameset Home|
|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.|
|<?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"/>
<var name="MyVar" expr="'Dirk Diggler'"/>
Our favorite movie star is
|ANNOTATIONS: EXISTING POSTS|
|<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.
<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."
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,
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:
Text to speech message goes here
You can read more about the <prosody> tag here: