> For the complete documentation index, see [llms.txt](https://docs.plumvoice.com/dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.plumvoice.com/dev/voicexml/tags/voice-tag.md).

# \<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="/pages/-M4L-yECQC1UvuTUrKvk">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="/pages/-M4L-yECQC1UvuTUrKvk">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](/dev/developer-reference/tts-engine-characteristics.md). 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>](/dev/voicexml/tags/audio-tag.md), [\<break>](/dev/voicexml/tags/break-tag.md), [\<emphasis>](/dev/voicexml/tags/emphasis-tag.md), [\<enumerate>](/dev/voicexml/tags/enumerate-tag.md), [\<mark>](/dev/voicexml/tags/mark-tag.md), [\<paragraph>](/dev/voicexml/tags/paragraph-tag.md), [\<phoneme>](/dev/voicexml/tags/phoneme-tag.md), [\<prosody>](/dev/voicexml/tags/prosody-tag.md), [\<say-as>](/dev/voicexml/tags/say-as-tag.md), [\<sentence>](/dev/voicexml/tags/sentence-tag.md), [\<speak>](/dev/voicexml/tags/speak-tag.md), [\<sub>](/dev/voicexml/tags/sub-tag.md), [\<value>](/dev/voicexml/tags/value-tag.md), [\<voice>](/dev/voicexml/tags/voice-tag.md)

### Parent Tags

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