prosody

prosody element

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:

fastApplies a fast speaking rate when playing back the contained text.
mediumApplies a medium speaking rate when playing back the contained text.
slowApplies a slow speaking rate when playing back the contained text.
defaultApplies 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:

silentMutes output when playing back the contained text.
softLowers the volume when playing back the contained text.
mediumApplies medium volume when playing back the contained text.
loudRaises the volume when playing back the contained text.
defaultUses the default volume when playing back the contained text.

Parents

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

Children

audio, break, emphasis, enumerate, mark, p element, phoneme, prosody, s element, 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

The

<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>