> ## 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 el género de una voz.

## Sintaxis

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

## Constantes

| Constante | Descripción |
| - | - |
| Female | El género de la voz es femenino. |
| Male | El género de la voz es masculino. |

## Comentarios

El género de un motor de síntesis de voz instalado, o *voz*, se indica en la estructura [XSpeechSynthesizerVoiceInformation](https://docs.xbox.com/es/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md) mediante una constante de esta enumeración. Para enumerar y recuperar información sobre las voces instaladas en el dispositivo actual, llame a la función [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/es/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md) junto con la función de devolución de llamada [XSpeechSynthesizerInstalledVoicesCallback](https://docs.xbox.com/es/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerinstalledvoicescallback.md). Esta última recibe una estructura **XSpeechSynthesizerVoiceInformation** para una voz instalada y se llama una vez por cada voz instalada en el dispositivo actual.

Para ver un ejemplo que muestra cómo usar la enumeración **XSpeechSynthesizerVoiceGender**, consulte [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/es/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md).

## Requisitos

**Encabezado:** XSpeechSynthesizer.h

**Plataformas compatibles:** Windows, consolas de la familia XBOX One y consolas XBOX Series

## Consulte también

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


## Related topics

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