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

# XSpeechSynthesizer

> XSpeechSynthesizer

# XSpeechSynthesizer

Fournit la prise en charge de l'initialisation et de la configuration d'un moteur de synthèse vocale, ou *voix*, pour convertir une chaîne de texte en flux audio. Cette fonctionnalité est également appelée synthèse vocale (TTS, text-to-speech).

## Fonctions

| Fonction | Description |
| - | - |
| [XSpeechSynthesizerCloseHandle](/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerclosehandle) | Ferme le synthétiseur vocal et libère les ressources système allouées. |
| [XSpeechSynthesizerCloseStreamHandle](/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerclosestreamhandle) | Ferme le flux du synthétiseur vocal et libère les ressources système allouées. |
| [XSpeechSynthesizerCreate](/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizercreate) | Crée un synthétiseur vocal. |
| [XSpeechSynthesizerCreateStreamFromSsml](/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizercreatestreamfromssml) | Crée un flux de synthèse vocale à partir du SSML spécifié. |
| [XSpeechSynthesizerCreateStreamFromText](/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizercreatestreamfromtext) | Crée un flux de synthèse vocale à partir du texte brut spécifié. |
| [XSpeechSynthesizerEnumerateInstalledVoices](/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices) | Énumère les voix installées et appelle la méthode désignée par *callback* pour chaque voix. |
| [XSpeechSynthesizerGetStreamData](/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizergetstreamdata) | Récupère les données d'un flux de synthèse vocale. |
| [XSpeechSynthesizerGetStreamDataSize](/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizergetstreamdatasize) | Obtient la taille de la mémoire tampon de données d'un flux de synthèse vocale. |
| [XSpeechSynthesizerInstalledVoicesCallback](/fr/reference/system/xspeechsynthesizer/functions/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. |
| [XSpeechSynthesizerSetCustomVoice](/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetcustomvoice) | Indique que le synthétiseur vocal doit utiliser la voix personnalisée spécifiée. |
| [XSpeechSynthesizerSetDefaultVoice](/fr/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetdefaultvoice) | Indique que le synthétiseur vocal doit utiliser la voix par défaut du système. |

## Structures

| Structure | Description |
| - | - |
| [XSpeechSynthesizerVoiceInformation](/fr/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation) | Fournit des informations sur une voix. |

## Énumérations

| Énumération | Description |
| - | - |
| [XSpeechSynthesizerVoiceGender](/fr/reference/system/xspeechsynthesizer/enums/xspeechsynthesizervoicegender) | Indique le genre d'une voix. |

## Documentation conceptuelle

* [Synthèse vocale](/fr/build/console-features/text-to-speech/text-to-speech)
* [Threads à durée critique](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)
* [Utilisation des wrappers C# pour les API GDK dans votre projet Unity](/fr/build/gdk-and-engines/unity/unity-api-wrappers)

## Voir aussi

[Référence des API système](/fr/reference/system/gc-reference-system-toc)


## Related topics

- [XSpeechSynthesizer](/reference/system/xspeechsynthesizer/xspeechsynthesizer_members.md)
- [XSpeechSynthesizerCreate](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizercreate.md)
- [XSpeechSynthesizerVoiceGender](/reference/system/xspeechsynthesizer/enums/xspeechsynthesizervoicegender.md)
- [XSpeechSynthesizerCloseHandle](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerclosehandle.md)
