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

# XSpeechSynthesizerInstalledVoicesCallback

> XSpeechSynthesizerInstalledVoicesCallback

# XSpeechSynthesizerInstalledVoicesCallback

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

## Syntaxe

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

### Paramètres

*information*   \_In\_\
Type : [XSpeechSynthesizerVoiceInformation\*](/fr/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation)

Pointeur vers une structure [XSpeechSynthesizerVoiceInformation](/fr/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation) 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](/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices).

### Valeur de retour

Type : bool

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

## Remarques

* Tant que la fonction **XSpeechSynthesizerInstalledVoicesCallback** retourne **true**, la fonction de rappel **XSpeechSynthesizerInstalledVoicesCallback** est appelée par [XSpeechSynthesizerEnumerateInstalledVoices](/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices) 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](/fr/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation) dans *information*.

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

## 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](/fr/reference/system/xaccessibility/xaccessibility_members)\
[XSpeechSynthesizerSetCustomVoice](/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetcustomvoice)\
[XSpeechSynthesizer](/fr/reference/system/xspeechsynthesizer/xspeechsynthesizer_members)


## Related topics

- [XSpeechSynthesizerInstalledVoicesCallback](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerinstalledvoicescallback.md)
- [XSpeechSynthesizerEnumerateInstalledVoices](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md)
- [XSpeechSynthesizerVoiceGender](/reference/system/xspeechsynthesizer/enums/xspeechsynthesizervoicegender.md)
