voice

Controls the vocal characteristics for the contained text when played back by the TTS engine.

<voice
gender = "string"
name = "string"
/>

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.

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>

TTS Engine Behavior

Community Additions

ADD
Show: