<voice>

The <voice> tag allows the application to change the voice of the TTS speaker from the input text.

Attributes

gender The gender types can only be "male", "female", or "neutral".
age An integer value representing the age.
variant This attribute is not supported.
name Please see Chapter 4 for information on what names are available.
xml:lang Please see Chapter 4 for information on what languages are available.

Notes

Default values are dependent on the voice selected at TTS daemon startup time. For more information, see Chapter 4.


Example

<?xml version="1.0" encoding="latin-1"?>
<vxml version="2.0">
  <form>
    <block>
      <prompt>
        <voice name="crystal">
          Hi, I'm Crystal.
        </voice>
        <voice name="mike">
          Hi, I'm Mike.
        </voice>
        <voice xml:lang="fr_fr">
          Bonjour, c'est la voix française.
        </voice>
      </prompt>
    </block>
  </form>
</vxml>

The output of the above script would be:

Computer: (in Crystal's voice) Hi, I'm Crystal.
Computer: (in Mike's voice) Hi, I'm Mike.
Computer: (in French) Bonjour, c'est la voix française.



Child Tags

<audio>, <break>, <emphasis>, <enumerate>, <mark>, <p>, <paragraph>, <phoneme>, <prosody>, <s>, <say-as>, <sentence>, <speak>, <sub>, <value>, <voice>



Parent Tags

<audio>, <emphasis>, <enumerate>, <foreach>, <p>, <paragraph>, <prompt>, <prosody>, <s>, <sentence>, <speak>, <voice>