Voice characteristics for the spoken text.
<voice
age = "CDATA"
gender = "{male | female | neutral}"
name = "CDATA"
xml:lang = "CDATA"
/>
Attribute |
Data Type |
Required? |
Default |
Description |
age |
CDATA |
no |
NA |
Integer specifying the preferred age of the voice to speak the contained text. |
gender |
{male | female | neutral} |
no |
NA |
Preferred gender of the voice to speak the contained text. |
name |
CDATA |
no |
NA |
Name of the voice to speak the contained text. |
xml:lang |
CDATA |
no |
NA |
RFC 1766 compliant identifier used to locate the TTS engine used to render the enclosed text. |
<audio>, <emphasis>, <enumerate>, <p>, <prompt>, <prosody>, <s>, <voice>
<audio>, <break>, <emphasis>, <mark>, <p>, <phoneme>, <prosody>, <s>, <say-as>, <sub>, <value>, <voice>
<?xml version="1.0"?>
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml">
<form>
<block>
<prompt>
<voice gender="female" age="5">Mary had a little lamb,</voice>
<!-- now request a different female child's voice -->
<voice gender="female" age="6" xml:lang="en-GB">
It's fleece was white as snow.
</voice>
<!-- platform-specific voice selection -->
<voice name="Mike">I want to be like Mike.</voice>
</prompt>
</block>
</form>
</vxml>