> 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)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.plumvoice.com/dev/voicexml/tags/voice-tag.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
