voice element
VoiceXML 2.0
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:
female Indicates that a female voice should be used.
male Indicates 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.
tom Indicates that "Tom's" voice should be used.
zira Indicates that "Zira's" voice should be used.

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

Children
audio, break, emphasis, enumerate, mark, p, phoneme, prosody, s, say-as, sub, value, voice

Examples

The following example exercises the name and gender attributes of the voice element.

<vxml version="2.1" 
  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
[24]7 Inc.| Terms of Service| Privacy Policy| General Disclaimers