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

La función de devolución de llamada implementada por el cliente que recibe información sobre una voz cuando se llama a [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/es/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md).

## Sintaxis

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

### Parámetros

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

Un puntero a una estructura [XSpeechSynthesizerVoiceInformation](https://docs.xbox.com/es/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md) que contiene los detalles de la voz que se está enumerando actualmente.

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

El puntero de contexto que se proporcionó en la llamada inicial a [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/es/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md).

### Valor devuelto

Tipo: bool

Devuelve **true** si [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/es/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md) debe continuar la enumeración, y **false** si [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/es/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md) debe detener la enumeración.

## Comentarios

* Mientras la función **XSpeechSynthesizerInstalledVoicesCallback** devuelva **true**, [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/es/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md) llama a la función de devolución de llamada **XSpeechSynthesizerInstalledVoicesCallback** una vez por cada motor de síntesis de voz instalado, o *voz*. Si la función **XSpeechSynthesizerInstalledVoicesCallback** devuelve **false**, **XSpeechSynthesizerEnumerateInstalledVoices** deja de enumerar las voces instaladas restantes.

* Para identificar y mostrar información sobre cada voz instalada en el dispositivo actual, use los datos proporcionados por la estructura [XSpeechSynthesizerVoiceInformation](https://docs.xbox.com/es/reference/system/xspeechsynthesizer/structs/xspeechsynthesizervoiceinformation.md) en *information*.

* Para ver un ejemplo que muestra cómo usar la función de devolución de llamada **XSpeechSynthesizerInstalledVoicesCallback**, consulte [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/es/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md).

## Requisitos

**Encabezado:** XSpeechSynthesizer.h

**Biblioteca:** xgameruntime.lib

**Plataformas compatibles:** Windows, consolas de la familia XBOX One y consolas XBOX Series

## Consulte también

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


## Related topics

- [XSpeechSynthesizerEnumerateInstalledVoices](https://docs.xbox.com/es/reference/system/xspeechsynthesizer/functions/xspeechsynthesizerenumerateinstalledvoices.md)
- [XSpeechSynthesizerVoiceGender](https://docs.xbox.com/es/reference/system/xspeechsynthesizer/enums/xspeechsynthesizervoicegender.md)
- [XSpeechSynthesizerSetCustomVoice](https://docs.xbox.com/es/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetcustomvoice.md)
- [XSpeechSynthesizerSetDefaultVoice](https://docs.xbox.com/es/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetdefaultvoice.md)
- [XSpeechSynthesizer (contenido de la API)](https://docs.xbox.com/es/reference/system/xspeechsynthesizer/xspeechsynthesizer_members.md)
