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

# 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()](/fr/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_settexttospeechprofile) 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](/fr/services/playfab/multiplayer/networking/reference/enums/partysynthesizetexttospeechtype)

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

**`profile`**   [PartyTextToSpeechProfile\*\*](/fr/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/partytexttospeechprofile)\
*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()](/fr/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_startprocessingstatechanges).

### Valeur renvoyée

PartyError

`c_partyErrorSuccess` si l'appel a réussi ; sinon, un code d'erreur. La forme lisible du code d'erreur peut être obtenue via [PartyManager::GetErrorMessage()](/fr/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage).

## 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. <br /><br /> Le profil récupéré est mis à jour lorsqu'un [PartySetTextToSpeechProfileCompletedStateChange](/fr/services/playfab/multiplayer/networking/reference/structs/partysettexttospeechprofilecompletedstatechange) associé à un appel à SetTextToSpeechProfile() ayant spécifié la même valeur pour `type` est fourni via [PartyManager::StartProcessingStateChanges()](/fr/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_startprocessingstatechanges).

## Configuration requise

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

## Voir aussi

[PartyLocalChatControl](/fr/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/partylocalchatcontrol)\
[PartyLocalChatControl::SetTextToSpeechProfile](/fr/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_settexttospeechprofile)


## Related topics

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