prosody element
VoiceXML 2.0
Controls the speaking rate and the volume of the speech output.

Syntax

<prosody
rate = "string"
volume = "string"
/>

Attributes
rate
A floating point value that indicates the speaking rate applied to the contained text in words-per-minute. A positive value increases the speed; a negative value decreases the speed. Alternatively, you can specify a relative change as a positive or negative percentage (e.g. "-20%"), or one of the following absolute values:
fast Applies a fast speaking rate when playing back the contained text.
medium Applies a medium speaking rate when playing back the contained text.
slow Applies a slow speaking rate when playing back the contained text.
default Applies the default speaking rate when playing back the contained text.
volume
A floating point value in the range of 0.0 to 200.0. The default is 100.0. Alternatively, you can specify a relative change expressed as a positive or negative percentage (e.g. "50%"), or one of the following literal string values:
silent Mutes output when playing back the contained text.
soft Lowers the volume when playing back the contained text.
medium Applies medium volume when playing back the contained text.
loud Raises the volume when playing back the contained text.
default Uses the default volume when playing back the contained text.

Parents
audio, emphasis, enumerate, foreach, p, prompt, prosody, s, voice

Children
audio, break, emphasis, enumerate, mark, p, phoneme, prosody, s, say-as, sub, value, voice

Remarks
Setting the value of the volume attribute changes the volume linearly. For example, a value of 200.0 is twice as loud as 100.0.
Examples
<vxml version="2.0" 
  xmlns="http://www.w3.org/2001/vxml"
>
  <form>
    <block>
      <prompt>
        <prosody rate="slow">
          I don't feel so good. 
          Can you hear it in my voice.
        </prosody>
        <prosody rate="-50%">
          Fifty percent slower.
        </prosody>
        <prosody rate="+50%">
          Fifty percent faster.
        </prosody>
        <prosody rate="fast">
          No purchase necessary. Tax and title not included.
        </prosody>

        <prosody volume="soft">
          This is my library voice.
        </prosody>
        <prosody volume="-50%">
          Fifty percent softer.
        </prosody>      
        <prosody volume="+50%">
          Fifty percent louder.
        </prosody>
        <prosody volume="200.00">
          Loudest.
        </prosody>      
        <prosody volume="loud">
          Order in the court!
        </prosody> 
      </prompt>
    </block>
  </form>
</vxml>



[24]7 Inc.| Terms of Service| Privacy Policy| General Disclaimers