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

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](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md) 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](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md) avec la fonction de rappel [XSpeechSynthesizerInstalledVoicesCallback](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerinstalledvoicescallback.md). 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](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md).

## 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](https://docs.xbox.com/fr/reference/system/xaccessibility/xaccessibility_members.md)\
[XSpeechSynthesizerInstalledVoicesCallback](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerinstalledvoicescallback.md)\
[XSpeechSynthesizerVoiceInformation](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md)\
[XSpeechSynthesizer](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/xspeechsynthesizer_members.md)


## Related topics

- [XSpeechSynthesizerVoiceInformation](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md)
- [XSpeechSynthesizer (contenu de l'API)](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/xspeechsynthesizer_members.md)
- [XSpeechSynthesizerInstalledVoicesCallback](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerinstalledvoicescallback.md)
- [XSpeechSynthesizerSetCustomVoice](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetcustomvoice.md)
- [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md)
