> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.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](/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation) 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](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices) junto con la función de devolución de llamada [XSpeechSynthesizerInstalledVoicesCallback](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerinstalledvoicescallback). 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](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices).

## Requisitos

**Encabezado:** XSpeechSynthesizer.h

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

## Consulte también

[XAccessibility](/reference/system/xaccessibility/xaccessibility_members)\
[XSpeechSynthesizerInstalledVoicesCallback](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerinstalledvoicescallback)\
[XSpeechSynthesizerVoiceInformation](/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation)\
[XSpeechSynthesizer](/reference/system/xspeechsynthesizer/xspeechsynthesizer_members)


## Related topics

- [XSpeechSynthesizer](/es/reference/system/xspeechsynthesizer/xspeechsynthesizer_members.md)
- [XSpeechSynthesizerVoiceInformation](/es/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md)
- [XSpeechSynthesizerInstalledVoicesCallback](/es/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerinstalledvoicescallback.md)
- [XSpeechSynthesizerSetCustomVoice](/es/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetcustomvoice.md)
- [XSpeechSynthesizerEnumerateInstalledVoices](/es/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md)
