> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XSpeechSynthesizerVoiceGender

> XSpeechSynthesizerVoiceGender

Indicates the gender of a voice.

## Syntax

```cpp theme={null}
enum class XSpeechSynthesizerVoiceGender  : uint32_t  
{  
    Female = 0,  
    Male = 1,  
}  
```

## Constants

| Constant | Description |
| - | - |
| Female | The gender of the voice is female. |
| Male | The gender of the voice is male. |

## Remarks

The gender of an installed speech synthesis engine, or *voice*, is indicated in the [XSpeechSynthesizerVoiceInformation](https://docs.xbox.com/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md) structure by a constant from this enumeration. To enumerate and retrieve information about the voices installed on the current device, call the [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md) function along with the [XSpeechSynthesizerInstalledVoicesCallback](https://docs.xbox.com/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerinstalledvoicescallback.md) callback function. The latter receives an **XSpeechSynthesizerVoiceInformation** structure for an installed voice and is called once for each voice installed on the current device.

For an example that demonstrates how to use the **XSpeechSynthesizerVoiceGender** enumeration, see [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md).

## Requirements

**Header:** XSpeechSynthesizer.h

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[XAccessibility](https://docs.xbox.com/reference/system/xaccessibility/xaccessibility_members.md)\
[XSpeechSynthesizerInstalledVoicesCallback](https://docs.xbox.com/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerinstalledvoicescallback.md)\
[XSpeechSynthesizerVoiceInformation](https://docs.xbox.com/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md)\
[XSpeechSynthesizer](https://docs.xbox.com/reference/system/xspeechsynthesizer/xspeechsynthesizer_members.md)


## Related topics

- [XSpeechSynthesizerVoiceInformation](https://docs.xbox.com/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md)
- [XSpeechSynthesizer (API contents)](https://docs.xbox.com/reference/system/xspeechsynthesizer/xspeechsynthesizer_members.md)
- [XSpeechSynthesizerSetDefaultVoice](https://docs.xbox.com/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetdefaultvoice.md)
- [XSpeechSynthesizerSetCustomVoice](https://docs.xbox.com/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetcustomvoice.md)
- [XSpeechSynthesizerInstalledVoicesCallback](https://docs.xbox.com/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerinstalledvoicescallback.md)
