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

Proporciona compatibilidad para inicializar y configurar un motor de síntesis de voz, o *voz*, para convertir una cadena de texto en una secuencia de audio. Esta funcionalidad también se conoce como texto a voz (TTS).

## Funciones

| Función                                                                                                                                 | Descripción                                                                                                                                                                                                                                                     |
| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [XSpeechSynthesizerCloseHandle](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerclosehandle)                           | Cierra el sintetizador de voz y libera los recursos del sistema asignados.                                                                                                                                                                                      |
| [XSpeechSynthesizerCloseStreamHandle](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerclosestreamhandle)               | Cierra la secuencia del sintetizador de voz y libera los recursos del sistema asignados.                                                                                                                                                                        |
| [XSpeechSynthesizerCreate](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizercreate)                                     | Crea un sintetizador de voz.                                                                                                                                                                                                                                    |
| [XSpeechSynthesizerCreateStreamFromSsml](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizercreatestreamfromssml)         | Crea una secuencia de síntesis de voz a partir del SSML especificado.                                                                                                                                                                                           |
| [XSpeechSynthesizerCreateStreamFromText](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizercreatestreamfromtext)         | Crea una secuencia de síntesis de voz a partir del texto sin formato especificado.                                                                                                                                                                              |
| [XSpeechSynthesizerEnumerateInstalledVoices](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices) | Enumera las voces instaladas y llama al método al que apunta *callback* para cada voz.                                                                                                                                                                          |
| [XSpeechSynthesizerGetStreamData](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizergetstreamdata)                       | Recupera los datos de una secuencia de síntesis de voz.                                                                                                                                                                                                         |
| [XSpeechSynthesizerGetStreamDataSize](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizergetstreamdatasize)               | Obtiene el tamaño del búfer de datos de una secuencia de síntesis de voz.                                                                                                                                                                                       |
| [XSpeechSynthesizerInstalledVoicesCallback](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerinstalledvoicescallback)   | La función de devolución de llamada implementada por el cliente que recibe información sobre una voz cuando se llama a [XSpeechSynthesizerEnumerateInstalledVoices](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices). |
| [XSpeechSynthesizerSetCustomVoice](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetcustomvoice)                     | Especifica que el sintetizador de voz debe usar la voz personalizada especificada.                                                                                                                                                                              |
| [XSpeechSynthesizerSetDefaultVoice](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetdefaultvoice)                   | Especifica que el sintetizador de voz debe usar la voz predeterminada del sistema.                                                                                                                                                                              |

## Estructuras

| Estructura                                                                                                            | Descripción                            |
| --------------------------------------------------------------------------------------------------------------------- | -------------------------------------- |
| [XSpeechSynthesizerVoiceInformation](/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation) | Proporciona información sobre una voz. |

## Enumeraciones

| Enumeración                                                                                               | Descripción                  |
| --------------------------------------------------------------------------------------------------------- | ---------------------------- |
| [XSpeechSynthesizerVoiceGender](/reference/system/xspeechsynthesizer/enums/xspeechsynthesizervoicegender) | Indica el género de una voz. |

## Documentación conceptual

* [Texto a voz](/build/console-features/text-to-speech/text-to-speech)
* [Subprocesos sensibles al tiempo](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)
* [Uso de contenedores de C# para las API de GDK en el proyecto de Unity](/build/gdk-and-engines/unity/unity-api-wrappers)

## Consulte también

[Referencia de API del sistema](/reference/system/gc-reference-system-toc)


## Related topics

- [XSpeechSynthesizerCreate](/es/reference/system/xspeechsynthesizer/functions/xspeechsynthesizercreate.md)
- [XSpeechSynthesizerVoiceGender](/es/reference/system/xspeechsynthesizer/enums/xspeechsynthesizervoicegender.md)
- [XSpeechSynthesizerCloseHandle](/es/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerclosehandle.md)
- [XSpeechSynthesizerVoiceInformation](/es/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md)
- [XSpeechSynthesizerCloseStreamHandle](/es/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerclosestreamhandle.md)
