VoiceXML 2.1 Development GuideHome  |  Frameset Home


<prosody>  element

The prosody element replaces the non-compliant pros element from VXML 1.0, and allows the developer to change several aspects of the TTS output to allow for custom tailoring of prompts to sound more naturalistic to the caller. Do note that SSML tags are ignored by some of the available TTS engines, while some engines use their own non-compliant markup. Check the Text-To-Speech appendices for additional details.



usage
<prosody contour="CDATA" duration="CDATA" pitch="CDATA" range="CDATA" rate="CDATA" volume="CDATA">


attributes
contourData Type: CDATADefault: Optional
The contour attribute denotes the pitch contour for the text nested within the parent element. This attribute is non-functional on all TTS platforms, (Speechify and Rhetorical).
durationData Type: CDATADefault: Optional
The duration element specifies the time , (in seconds or milliseconds) in which to read the enclosed text.
pitchData Type: CDATADefault: Optional
The pitch attribute denotes the level and intensity of the TTS output.
rangeData Type: CDATADefault: Optional
The range attribute specifies the range of the pitch for the text enclosed. This attribute is non-functional on all TTS platforms, (Speechify and Rhetorical).
rateData Type: CDATADefault: Optional
The rate attribute denotes the rate at which the enclosed TTS is read to the caller.
volumeData Type: CDATADefault: Optional
The volume attribute specifies the volume of speech output.



shadow variables
none


parents
<audio> <choice> <emphasis> <enumerate> <paragraph> <prompt> <sentence>


children
none


code samples
<Prosody duration-rate-volume-pitch>
<?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"/>

<property name="nuance.core.tts.ResourceName" value="en-US.F019" />


<form id="F_1">

  <block>
    <prompt>
      <prosody duration="8000ms">
        Purple Haze, was in my brain.
      </prosody>

      <prosody duration="50ms">
        Lately things dont seem the same.
      </prosody>

      <prosody rate="slow">
        Acting funny, and I dont know why.
      </prosody>

      <prosody rate="fast">
        Excuse me, while I kiss the sky!
      </prosody>

      <prosody volume="soft">
        Purple Haze, all around
      </prosody>

      <prosody volume="loud">
        Dont know if I am coming up or down.
      </prosody>

      <prosody pitch="low">
        Am I happy, or in misery?
      </prosody>

      <prosody pitch="high">
        Whatever it is, that girl put a spell on me!
      </prosody>

    </prompt>
  </block>

</form>

</vxml>



additional links
W3C SSML 1.0 Specification


  ANNOTATIONS: EXISTING POSTS
mallu
11/17/2004 11:00 AM (EST)
Prosody works with Rhetorical TTS Engine...
http://docs.voxeo.com/voicexml/2.0/frame.jsp?page=appendixn.htm
jimjetjock
8/5/2005 7:27 PM (EDT)
Ah the many talents of Mr. Henry. Not just a technocrat, but a poet!

login



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