voice
voice element
Controls the vocal characteristics for the contained text when played back by the TTS engine.
Syntax
<voice
gender = "string"
name = "string"
/>
Attributes
gender |
One of the following values:
femaleIndicates that a female voice should be used.
maleIndicates that a male voice should be used.
|
name |
A space-separated list of voice names used to speak the contained text. The names should be listed in order of preference.
tomIndicates that "Tom's" voice should be used.
ziraIndicates that "Zira's" voice should be used.
|
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
Examples
The following example exercises the name and gender attributes of the voice element.
<vxml version="2.0"
xmlns="http://www.w3.org/2001/vxml"
>
<form>
<block>
<prompt>
<voice name="tom"> This is Tom. </voice>
<break time="200ms"/>
<voice name="zira"> This is Zira. </voice>
<break time="200ms"/>
<voice gender="male"> This is a generic male voice. </voice>
<break time="200ms"/>
<voice gender="female"> This is a generic female voice. </voice>
<break time="200ms"/>
</prompt>
</block>
</form>
</vxml>
See also
TTS Engine Behavior