| 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"/> <form id="F1"> <var name="MyVar" expr="'Dirk Diggler'"/> <block> <prompt> Our favorite movie star is <value expr="MyVar"/>. </prompt> </block> </form> </vxml> |
| ANNOTATIONS: EXISTING POSTS |
moshe
|
|
| <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
|
|
| 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
|
|
| 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 |