# \<prosody>

## \<prosody> <a href="#prosody" id="prosody"></a>

The `<prosody>` tag changes the sound characteristics of the text being spoken.

### Attributes

<table><thead><tr><th width="178.33333333333331">Name</th><th width="155">Data type<select><option value="3bb73c6a97d24ff19ecb2696a8a962df" label="String" color="blue"></option><option value="fade29901fe5482e99c1ee2b1de25a89" label="Integer" color="blue"></option><option value="ac5869fdc7ea44b19090365cde10513f" label="Boolean" color="blue"></option></select></th><th>Description</th></tr></thead><tbody><tr><td>pitch</td><td><span data-option="3bb73c6a97d24ff19ecb2696a8a962df">String</span></td><td><p>(defaults to “default”) The “pitch” attribute of the &#x3C;prosody> tag changes the pitch of the spoken text. You can specify the following preset pitches: “high”, “medium”, “low”, or “default”. </p><p></p><p><strong>Note:</strong> This attribute is available with the <strong>Cepstral Theta TTS engine only</strong>.</p></td></tr><tr><td>contour</td><td></td><td>This attribute is not supported.</td></tr><tr><td>range</td><td></td><td>This attribute is not supported.</td></tr><tr><td>rate</td><td><span data-option="3bb73c6a97d24ff19ecb2696a8a962df">String</span></td><td><p>(defaults to “default”) The “rate” attribute of the &#x3C;prosody> tag changes the rate at which the text is spoken. You can specify the following preset rates: “fast”, “medium”, “slow”, or “default”.</p><p></p><p>The <code>rate</code> attribute can also be set to an integer value such as “100.0” or “50.0”. A normal voice rate should be set to around “150.0” (for AT&#x26;T Natural Voices). These values are not in accordance with the SSML spec, where rates are specified relative to 1.</p><p></p><p>Additionally, you can also adjust the voice rate by using percentages. For example, entering “+50%” would make the voice rate 50% faster. SImilarly, entering “-50%” would make the voice rate 50% slower.</p></td></tr><tr><td>duration</td><td></td><td>This attribute is not supported.</td></tr><tr><td>volume</td><td><span data-option="3bb73c6a97d24ff19ecb2696a8a962df">String</span></td><td><p>(defaults to “default”) The “volume” attribute of the <code>&#x3C;prosody></code> tag allows the application to change the volume of the TTS voice. You can specify the following preset volumes: “silent”, “soft”, “medium”, “loud”, or “default”.</p><p></p><p>Also, the volume level can be set to an integer number such as “25.0” for a soft volume or “200.0” for a loud volume.</p></td></tr></tbody></table>

### Notes

When using a Realspeak TTS voice, the talking speed of the TTS voice does not revert back to the normal speed after the tag has been used. To revert it back to normal, you must use the tag again with the attribute of “volume” set to “100.0” and the attribute of “rate” set to “default”.

### Example

```markup
<?xml version="1.0"?>
<vxml version="2.0">
  <form>
    <block>
      <prompt>
        This sentence uses the default prosody settings.
        <prosody volume="25.0" rate="slow">
          This sentence is slow and quiet.
        </prosody>
        <prosody volume="200.0" rate="fast">
          This sentence is fast and loud.
        </prosody>
      </prompt>
    </block>
  </form>
</vxml>
```

The output of the above script would be:

> Computer: This sentence uses the default prosody settings.\
> Computer: (slowly and quietly) This sentence is slow and quiet.\
> Computer: (quickly and loudly) This sentence is fast and loud.

### Child Tags

[\<audio>](/dev/voicexml/tags/audio-tag.md), [\<break>](/dev/voicexml/tags/break-tag.md), [\<emphasis>](/dev/voicexml/tags/emphasis-tag.md), [\<enumerate>](/dev/voicexml/tags/enumerate-tag.md), [\<mark>](/dev/voicexml/tags/mark-tag.md), [\<paragraph>](/dev/voicexml/tags/paragraph-tag.md), [\<phoneme>](/dev/voicexml/tags/phoneme-tag.md), [\<prosody>](/dev/voicexml/tags/prosody-tag.md), [\<say-as>](/dev/voicexml/tags/say-as-tag.md), [\<sentence>](/dev/voicexml/tags/sentence-tag.md), [\<speak>](/dev/voicexml/tags/speak-tag.md), [\<sub>](/dev/voicexml/tags/sub-tag.md), [\<value>](/dev/voicexml/tags/value-tag.md), [\<voice>](/dev/voicexml/tags/voice-tag.md)

### Parent Tags

[\<audio>](/dev/voicexml/tags/audio-tag.md), [\<emphasis>](/dev/voicexml/tags/emphasis-tag.md), [\<enumerate>](/dev/voicexml/tags/enumerate-tag.md), [\<foreach>](/dev/voicexml/tags/foreach-tag.md), [\<paragraph>](/dev/voicexml/tags/paragraph-tag.md), [\<prompt>](/dev/voicexml/tags/prompt-tag.md), [\<prosody>](/dev/voicexml/tags/prosody-tag.md), [\<sentence>](/dev/voicexml/tags/sentence-tag.md), [\<speak>](/dev/voicexml/tags/speak-tag.md), [\<voice>](/dev/voicexml/tags/voice-tag.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.plumvoice.com/dev/voicexml/tags/prosody-tag.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
