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

> 获取此聊天控件的文本转语音配置文件。

获取此聊天控件的文本转语音配置文件。

## Syntax

```cpp theme={null}
PartyError GetAvailableTextToSpeechProfiles(  
    uint32_t* profileCount,  
    PartyTextToSpeechProfileArray* profiles  
)  
```

### Parameters

**`profileCount`**   uint32\_t\*\
*output*

输出的可用配置文件数量。

**`profiles`**   [PartyTextToSpeechProfileArray\*](/services/playfab/multiplayer/networking/reference/typedefs)\
*library-allocated output array of size `*profileCount`*

一个库分配的输出数组，包含可用的配置文件。

### Return value

PartyError

如果调用成功，则返回 `c_partyErrorSuccess`；否则返回错误代码。可通过 [PartyManager::GetErrorMessage()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage) 检索错误代码的可读形式。

## Remarks

此方法同步返回上次成功的 [PopulateAvailableTextToSpeechProfiles()](/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_populateavailabletexttospeechprofiles) 操作缓存的结果。<br /><br /> 返回的数组仅在下次调用 [PartyManager::StartProcessingStateChanges()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_startprocessingstatechanges) 之前有效。

## Requirements

**Header:** Party.h

## See also

[PartyLocalChatControl](/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/partylocalchatcontrol)\
[PartyLocalChatControl::PopulateAvailableTextToSpeechProfiles](/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_populateavailabletexttospeechprofiles)


## Related topics

- [PartyLocalChatControl::PopulateAvailableTextToSpeechProfiles](/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_populateavailabletexttospeechprofiles.md)
- [PartyTextToSpeechProfile](/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/partytexttospeechprofile.md)
- [PartyPopulateAvailableTextToSpeechProfilesCompletedStateChange](/zh-CN/services/playfab/multiplayer/networking/reference/structs/partypopulateavailabletexttospeechprofilescompletedstatechange.md)
- [PlayFab Party 文本转语音和文本输入 UX 指南](/zh-CN/services/playfab/community/voice-communications/party-text-to-speech-ux-guidelines.md)
- [PartyLocalChatControl::GetTextToSpeechProfile](/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_gettexttospeechprofile.md)
