> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XSpeechSynthesizer (conteúdo da API)

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

## Estruturas

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

## Enumerações

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

## Documentação conceitual

* [Conversão de texto em fala](https://docs.xbox.com/pt-BR/build/console-features/text-to-speech/text-to-speech.md)
* [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](https://docs.xbox.com/pt-BR/build/gdk-and-engines/unity/unity-api-wrappers.md)

## Confira também

[Referência da API do sistema](https://docs.xbox.com/pt-BR/reference/system/gc-reference-system-toc.md)


## Related topics

- [XSpeechSynthesizerCreate](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizercreate.md)
- [Conversão de texto em fala](https://docs.xbox.com/pt-BR/build/console-features/text-to-speech/text-to-speech.md)
- [XSpeechSynthesizerVoiceInformation](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md)
- [XSpeechSynthesizerVoiceGender](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/enums/xspeechsynthesizervoicegender.md)
- [XSpeechSynthesizerCloseHandle](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerclosehandle.md)
