Skip to main content

XSpeechSynthesizerInstalledVoicesCallback

Fonction de rappel implémentée par le client qui reçoit des informations sur une voix lorsque XSpeechSynthesizerEnumerateInstalledVoices est appelée.

Syntaxe

Paramètres

information   _In_
Type : XSpeechSynthesizerVoiceInformation*
Pointeur vers une structure 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.

Valeur de retour

Type : bool Retourne true si XSpeechSynthesizerEnumerateInstalledVoices doit poursuivre l’énumération, et false si 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 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 dans information.
  • Pour obtenir un exemple illustrant l’utilisation de la fonction de rappel XSpeechSynthesizerInstalledVoicesCallback, consultez 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
XSpeechSynthesizerSetCustomVoice
XSpeechSynthesizer
Last modified on October 6, 2026