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

# PartyLocalChatControl::GetTextToSpeechProfile

> Obtient le profil configuré en dernier par une opération terminée avec succès.

Obtient le profil configuré en dernier par une opération [SetTextToSpeechProfile()](https://docs.xbox.com/fr-CA/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_settexttospeechprofile.md) terminée avec succès pour un type d'opération de synthèse vocale spécifié.

## Syntaxe

```cpp theme={null}
PartyError GetTextToSpeechProfile(  
    PartySynthesizeTextToSpeechType type,  
    PartyTextToSpeechProfile** profile  
)  
```

### Paramètres

**`type`**   [PartySynthesizeTextToSpeechType](https://docs.xbox.com/fr-CA/services/playfab/multiplayer/networking/reference/enums/partysynthesizetexttospeechtype.md)

Le type d'opérations de synthèse vocale pour lequel le profil doit être récupéré.

**`profile`**   [PartyTextToSpeechProfile\*\*](https://docs.xbox.com/fr-CA/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/partytexttospeechprofile.md)\
*library-allocated output, may return nullptr*

Le profil de sortie. Le profil peut être nullptr si aucun n'a été défini pour le type spécifié. Le pointeur n'est valide que jusqu'au prochain appel à [PartyManager::StartProcessingStateChanges()](https://docs.xbox.com/fr-CA/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_startprocessingstatechanges.md).

### Valeur de retour

PartyError

`c_partyErrorSuccess` si l'appel a réussi; sinon, un code d'erreur. La forme lisible du code d'erreur peut être obtenue au moyen de [PartyManager::GetErrorMessage()](https://docs.xbox.com/fr-CA/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage.md).

## Remarques

Si aucun profil n'a été configuré avec succès pour le type d'opération de synthèse vocale spécifié, le profil récupéré est null. \
\
&#x20;Le profil récupéré est mis à jour lorsqu'un [PartySetTextToSpeechProfileCompletedStateChange](https://docs.xbox.com/fr-CA/services/playfab/multiplayer/networking/reference/structs/partysettexttospeechprofilecompletedstatechange.md) associé à un appel à SetTextToSpeechProfile() ayant spécifié la même valeur pour `type` est fourni au moyen de [PartyManager::StartProcessingStateChanges()](https://docs.xbox.com/fr-CA/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_startprocessingstatechanges.md).

## Configuration requise

**En-tête :** Party.h

## Voir aussi

[PartyLocalChatControl](https://docs.xbox.com/fr-CA/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/partylocalchatcontrol.md)\
[PartyLocalChatControl::SetTextToSpeechProfile](https://docs.xbox.com/fr-CA/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_settexttospeechprofile.md)


## Related topics

- [PartyLocalChatControl::PopulateAvailableTextToSpeechProfiles](https://docs.xbox.com/fr-CA/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_populateavailabletexttospeechprofiles.md)
- [PartyTextToSpeechProfile](https://docs.xbox.com/fr-CA/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/partytexttospeechprofile.md)
- [PartyLocalChatControl::SetTextToSpeechProfile](https://docs.xbox.com/fr-CA/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_settexttospeechprofile.md)
- [PartySynthesizeTextToSpeechType](https://docs.xbox.com/fr-CA/services/playfab/multiplayer/networking/reference/enums/partysynthesizetexttospeechtype.md)
- [PartySetTextToSpeechProfileCompletedStateChange](https://docs.xbox.com/fr-CA/services/playfab/multiplayer/networking/reference/structs/partysettexttospeechprofilecompletedstatechange.md)
