<prosody>
<prosody>
The <prosody>
tag changes the sound characteristics of the text being spoken.
Attributes
Name | Data type | Description |
---|---|---|
pitch | String | (defaults to “default”) The “pitch” attribute of the <prosody> tag changes the pitch of the spoken text. You can specify the following preset pitches: “high”, “medium”, “low”, or “default”. Note: This attribute is available with the Cepstral Theta TTS engine only. |
contour | This attribute is not supported. | |
range | This attribute is not supported. | |
rate | String | (defaults to “default”) The “rate” attribute of the <prosody> tag changes the rate at which the text is spoken. You can specify the following preset rates: “fast”, “medium”, “slow”, or “default”. The 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. |
duration | This attribute is not supported. | |
volume | String | (defaults to “default”) The “volume” attribute of the 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. |
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
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>, <break>, <emphasis>, <enumerate>, <mark>, <paragraph>, <phoneme>, <prosody>, <say-as>, <sentence>, <speak>, <sub>, <value>, <voice>
Parent Tags
<audio>, <emphasis>, <enumerate>, <foreach>, <paragraph>, <prompt>, <prosody>, <sentence>, <speak>, <voice>
Last updated