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

Indique le genre d'une voix.

## Syntaxe

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

## Constantes

| Constante | Description |
| - | - |
| Female | La voix est de genre féminin. |
| Male | La voix est de genre masculin. |

## Remarques

Le genre d'un moteur de synthèse vocale installé, ou *voix*, est indiqué dans la structure [XSpeechSynthesizerVoiceInformation](/fr/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation) par une constante de cette énumération. Pour énumérer les voix installées sur l'appareil actuel et récupérer des informations à leur sujet, appelez la fonction [XSpeechSynthesizerEnumerateInstalledVoices](/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices) avec la fonction de rappel [XSpeechSynthesizerInstalledVoicesCallback](/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerinstalledvoicescallback). Cette dernière reçoit une structure **XSpeechSynthesizerVoiceInformation** pour une voix installée et est appelée une fois pour chaque voix installée sur l'appareil actuel.

Pour obtenir un exemple illustrant l'utilisation de l'énumération **XSpeechSynthesizerVoiceGender**, consultez [XSpeechSynthesizerEnumerateInstalledVoices](/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices).

## Configuration requise

**En-tête :** XSpeechSynthesizer.h

**Plateformes prises en charge :** Windows, consoles de la famille XBOX One et consoles XBOX Series

## Voir aussi

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


## Related topics

- [XSpeechSynthesizerVoiceGender](/reference/system/xspeechsynthesizer/enums/xspeechsynthesizervoicegender.md)
- [XSpeechSynthesizer](/reference/system/xspeechsynthesizer/xspeechsynthesizer_members.md)
- [XSpeechSynthesizerVoiceInformation](/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md)
- [XSpeechSynthesizerSetDefaultVoice](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetdefaultvoice.md)
- [XSpeechSynthesizerSetCustomVoice](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetcustomvoice.md)
