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

# XSpeechSynthesizerInstalledVoicesCallback

> XSpeechSynthesizerInstalledVoicesCallback

# XSpeechSynthesizerInstalledVoicesCallback

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.

## Sintaxe

```cpp theme={null}
bool XSpeechSynthesizerInstalledVoicesCallback(  
         const XSpeechSynthesizerVoiceInformation* information,  
         void* context  
)  
```

### Parâmetros

*information*   \_In\_\
Tipo: [XSpeechSynthesizerVoiceInformation\*](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md)

Um ponteiro para uma estrutura [XSpeechSynthesizerVoiceInformation](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md) que contém os detalhes da voz enumerada no momento.

*context*   \_In\_\
Tipo: void\*

O ponteiro de contexto que foi fornecido na chamada inicial para [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md).

### Valor retornado

Tipo: bool

Retorna **true** se [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md) deve continuar enumerando e **false** se [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md) deve parar de enumerar.

## Comentários

* Enquanto a função **XSpeechSynthesizerInstalledVoicesCallback** retornar **true**, a função de retorno de chamada **XSpeechSynthesizerInstalledVoicesCallback** será chamada por [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md) uma vez para cada mecanismo de síntese de fala instalado, ou *voz*. Se a função **XSpeechSynthesizerInstalledVoicesCallback** retornar **false**, **XSpeechSynthesizerEnumerateInstalledVoices** interromperá a enumeração das vozes instaladas restantes.

* Para identificar e exibir informações sobre cada voz instalada no dispositivo atual, use os dados fornecidos pela estrutura [XSpeechSynthesizerVoiceInformation](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md) em *information*.

* Para obter um exemplo que demonstra como usar a função de retorno de chamada **XSpeechSynthesizerInstalledVoicesCallback**, consulte [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md).

## Requisitos

**Cabeçalho:** XSpeechSynthesizer.h

**Biblioteca:** xgameruntime.lib

**Plataformas com suporte:** Windows, consoles da família XBOX One e consoles XBOX Series

## Confira também

[XAccessibility](https://docs.xbox.com/pt-BR/reference/system/xaccessibility/xaccessibility_members.md)\
[XSpeechSynthesizerSetCustomVoice](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetcustomvoice.md)\
[XSpeechSynthesizer](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/xspeechsynthesizer_members.md)


## Related topics

- [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md)
- [XSpeechSynthesizerVoiceGender](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/enums/xspeechsynthesizervoicegender.md)
- [XSpeechSynthesizerSetCustomVoice](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetcustomvoice.md)
- [XSpeechSynthesizerSetDefaultVoice](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetdefaultvoice.md)
- [XSpeechSynthesizer (conteúdo da API)](https://docs.xbox.com/pt-BR/reference/system/xspeechsynthesizer/xspeechsynthesizer_members.md)
