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

# XSpeechSynthesizerVoiceGender

Indica o gênero de uma voz.

## Sintaxe

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

## Constantes

| Constante | Descrição |
| - | - |
| Female | O gênero da voz é feminino. |
| Male | O gênero da voz é masculino. |

## Comentários

O gênero de um mecanismo de síntese de fala instalado, ou *voz*, é indicado na estrutura [XSpeechSynthesizerVoiceInformation](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md) por uma constante desta enumeração. Para enumerar e recuperar informações sobre as vozes instaladas no dispositivo atual, chame a função [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md) junto com a função de retorno de chamada [XSpeechSynthesizerInstalledVoicesCallback](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerinstalledvoicescallback.md). Esta última recebe uma estrutura **XSpeechSynthesizerVoiceInformation** para uma voz instalada e é chamada uma vez para cada voz instalada no dispositivo atual.

Para obter um exemplo que demonstra como usar a enumeração **XSpeechSynthesizerVoiceGender**, consulte [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md).

## Requisitos

**Cabeçalho:** XSpeechSynthesizer.h

**Plataformas com suporte:** Windows, consoles da família XBOX One e consoles XBOX Series

## Confira também

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


## Related topics

- [XSpeechSynthesizerVoiceInformation](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md)
- [XSpeechSynthesizer (conteúdo da API)](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/xspeechsynthesizer_members.md)
- [XSpeechSynthesizerInstalledVoicesCallback](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerinstalledvoicescallback.md)
- [XSpeechSynthesizerSetCustomVoice](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetcustomvoice.md)
- [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md)
