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

Fornece suporte para inicializar e configurar um mecanismo de síntese de fala, ou *voz*, para converter uma cadeia de caracteres de texto em um fluxo de áudio. Essa funcionalidade também é conhecida como conversão de texto em fala (TTS).

## Funções

| Função | Descrição |
| - | - |
| [XSpeechSynthesizerCloseHandle](/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerclosehandle) | Fecha o sintetizador de fala e libera os recursos do sistema alocados. |
| [XSpeechSynthesizerCloseStreamHandle](/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerclosestreamhandle) | Fecha o fluxo do sintetizador de fala e libera os recursos do sistema alocados. |
| [XSpeechSynthesizerCreate](/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizercreate) | Cria um sintetizador de fala. |
| [XSpeechSynthesizerCreateStreamFromSsml](/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizercreatestreamfromssml) | Cria um fluxo de síntese de fala com base no SSML especificado. |
| [XSpeechSynthesizerCreateStreamFromText](/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizercreatestreamfromtext) | Cria um fluxo de síntese de fala com base no texto sem formatação especificado. |
| [XSpeechSynthesizerEnumerateInstalledVoices](/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices) | Enumera as vozes instaladas e chama o método apontado por *callback* para cada voz. |
| [XSpeechSynthesizerGetStreamData](/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizergetstreamdata) | Recupera os dados de um fluxo de síntese de fala. |
| [XSpeechSynthesizerGetStreamDataSize](/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizergetstreamdatasize) | Obtém o tamanho do buffer de dados de um fluxo de síntese de fala. |
| [XSpeechSynthesizerInstalledVoicesCallback](/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerinstalledvoicescallback) | A função de retorno de chamada implementada pelo cliente que recebe informações sobre uma voz quando [XSpeechSynthesizerEnumerateInstalledVoices](/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices) é chamada. |
| [XSpeechSynthesizerSetCustomVoice](/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetcustomvoice) | Especifica que o sintetizador de fala deve usar a voz personalizada especificada. |
| [XSpeechSynthesizerSetDefaultVoice](/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetdefaultvoice) | Especifica que o sintetizador de fala deve usar a voz padrão do sistema. |

## Estruturas

| Estrutura | Descrição |
| - | - |
| [XSpeechSynthesizerVoiceInformation](/pt-BR/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation) | Fornece informações sobre uma voz. |

## Enumerações

| Enumeração | Descrição |
| - | - |
| [XSpeechSynthesizerVoiceGender](/pt-BR/reference/system/xspeechsynthesizer/enums/xspeechsynthesizervoicegender) | Indica o gênero de uma voz. |

## Documentação conceitual

* [Conversão de texto em fala](/pt-BR/build/console-features/text-to-speech/text-to-speech)
* [Threads sensíveis ao tempo](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)
* [Usando wrappers de C# para APIs do GDK em seu projeto do Unity](/pt-BR/build/gdk-and-engines/unity/unity-api-wrappers)

## Confira também

[Referência da API do sistema](/pt-BR/reference/system/gc-reference-system-toc)


## Related topics

- [XSpeechSynthesizer](/reference/system/xspeechsynthesizer/xspeechsynthesizer_members.md)
- [XSpeechSynthesizerCreate](/reference/system/xspeechsynthesizer/functions/xspeechsynthesizercreate.md)
