# \<voice>

## \<voice> <a href="#voice" id="voice"></a>

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

### Attributes

<table><thead><tr><th width="176.33333333333331">Name</th><th width="155">Data type<select><option value="49a2df2a77da4790ad24633441ab7070" label="String" color="blue"></option><option value="1bce4fcf36454e308c3c3560e30b7e51" label="Integer" color="blue"></option><option value="f03847abdfab4da7bbe8f61f8783dbcc" label="Boolean" color="blue"></option></select></th><th>Description</th></tr></thead><tbody><tr><td>gender</td><td><span data-option="49a2df2a77da4790ad24633441ab7070">String</span></td><td>Accepts the following values: “male”, “female”, or “neutral”.</td></tr><tr><td>age</td><td><span data-option="1bce4fcf36454e308c3c3560e30b7e51">Integer</span></td><td>An integer value representing the age.</td></tr><tr><td>variant</td><td></td><td>This attribute is not supported.</td></tr><tr><td>name</td><td><span data-option="49a2df2a77da4790ad24633441ab7070">String</span></td><td>Please see <a href="../../developer-reference/tts-engine-characteristics">TTS Engine Characteristics</a> for information on what names are available.</td></tr><tr><td>xml:lang</td><td><span data-option="49a2df2a77da4790ad24633441ab7070">String</span></td><td>Please see <a href="../../developer-reference/tts-engine-characteristics">TTS Engine Characteristics</a> for information on what languages are available.</td></tr></tbody></table>

### Notes

Default values are dependent on the voice selected at TTS daemon startup time. For more information, see [TTS Engine Characteristics](https://docs.plumvoice.com/dev/developer-reference/tts-engine-characteristics). NOTE: If using the `<voice>` tag with the `<audio>` tag, please keep in mind that the `<voice>` tag will need to be embedded within the `<audio>` tag for it to work properly.

### Example

```markup
<?xml version="1.0" encoding="utf-8"?>
<vxml version="2.0">
  <form>
    <block>
      <prompt>
        <voice name="crystal">
          Hi, I'm Crystal.
        </voice>
        <voice name="mike">
          Hi, I'm Mike.
        </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.

### Child Tags

[\<audio>](https://docs.plumvoice.com/dev/voicexml/tags/audio-tag), [\<break>](https://docs.plumvoice.com/dev/voicexml/tags/break-tag), [\<emphasis>](https://docs.plumvoice.com/dev/voicexml/tags/emphasis-tag), [\<enumerate>](https://docs.plumvoice.com/dev/voicexml/tags/enumerate-tag), [\<mark>](https://docs.plumvoice.com/dev/voicexml/tags/mark-tag), [\<paragraph>](https://docs.plumvoice.com/dev/voicexml/tags/paragraph-tag), [\<phoneme>](https://docs.plumvoice.com/dev/voicexml/tags/phoneme-tag), [\<prosody>](https://docs.plumvoice.com/dev/voicexml/tags/prosody-tag), [\<say-as>](https://docs.plumvoice.com/dev/voicexml/tags/say-as-tag), [\<sentence>](https://docs.plumvoice.com/dev/voicexml/tags/sentence-tag), [\<speak>](https://docs.plumvoice.com/dev/voicexml/tags/speak-tag), [\<sub>](https://docs.plumvoice.com/dev/voicexml/tags/sub-tag), [\<value>](https://docs.plumvoice.com/dev/voicexml/tags/value-tag), [\<voice>](https://docs.plumvoice.com/dev/voicexml/tags/voice-tag)

### Parent Tags

[\<audio>](https://docs.plumvoice.com/dev/voicexml/tags/audio-tag), [\<emphasis>](https://docs.plumvoice.com/dev/voicexml/tags/emphasis-tag), [\<enumerate>](https://docs.plumvoice.com/dev/voicexml/tags/enumerate-tag), [\<foreach>](https://docs.plumvoice.com/dev/voicexml/tags/foreach-tag), [\<paragraph>](https://docs.plumvoice.com/dev/voicexml/tags/paragraph-tag), [\<prompt>](https://docs.plumvoice.com/dev/voicexml/tags/prompt-tag), [\<prosody>](https://docs.plumvoice.com/dev/voicexml/tags/prosody-tag), [\<sentence>](https://docs.plumvoice.com/dev/voicexml/tags/sentence-tag), [\<speak>](https://docs.plumvoice.com/dev/voicexml/tags/speak-tag), [\<voice>](https://docs.plumvoice.com/dev/voicexml/tags/voice-tag)
