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

# XSpeechSynthesizerInstalledVoicesCallback

> XSpeechSynthesizerInstalledVoicesCallback

# XSpeechSynthesizerInstalledVoicesCallback

Fonction de rappel implémentée par le client qui reçoit des informations sur une voix lorsque [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md) est appelée.

## Syntaxe

```cpp theme={null}
bool XSpeechSynthesizerInstalledVoicesCallback(  
         const XSpeechSynthesizerVoiceInformation* information,  
         void* context  
)  
```

### Paramètres

*information*   \_In\_\
Type : [XSpeechSynthesizerVoiceInformation\*](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md)

Pointeur vers une structure [XSpeechSynthesizerVoiceInformation](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md) qui contient les détails de la voix en cours d'énumération.

*context*   \_In\_\
Type : void\*

Pointeur de contexte fourni lors de l'appel initial à [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md).

### Valeur de retour

Type : bool

Retourne **true** si [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md) doit poursuivre l'énumération, et **false** si [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md) doit arrêter l'énumération.

## Remarques

* Tant que la fonction **XSpeechSynthesizerInstalledVoicesCallback** retourne **true**, la fonction de rappel **XSpeechSynthesizerInstalledVoicesCallback** est appelée par [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md) une fois pour chaque moteur de synthèse vocale installé, ou *voix*. Si la fonction **XSpeechSynthesizerInstalledVoicesCallback** retourne **false**, **XSpeechSynthesizerEnumerateInstalledVoices** arrête l'énumération des voix installées restantes.

* Pour identifier et afficher des informations sur chaque voix installée sur l'appareil actuel, utilisez les données fournies par la structure [XSpeechSynthesizerVoiceInformation](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md) dans *information*.

* Pour obtenir un exemple illustrant l'utilisation de la fonction de rappel **XSpeechSynthesizerInstalledVoicesCallback**, consultez [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md).

## Configuration requise

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

**Bibliothèque :** xgameruntime.lib

**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)\
[XSpeechSynthesizerSetCustomVoice](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetcustomvoice.md)\
[XSpeechSynthesizer](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/xspeechsynthesizer_members.md)


## Related topics

- [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md)
- [XSpeechSynthesizerVoiceGender](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/enums/xspeechsynthesizervoicegender.md)
- [XSpeechSynthesizerSetCustomVoice](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetcustomvoice.md)
- [XSpeechSynthesizerSetDefaultVoice](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetdefaultvoice.md)
- [XSpeechSynthesizer (contenu de l'API)](https://docs.xbox.com/fr/reference/system/xspeechsynthesizer/xspeechsynthesizer_members.md)
