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

> 指定された種類のテキスト読み上げ操作について、正常に完了した操作から最後に構成されたプロファイルを取得します。

指定された種類のテキスト読み上げ操作について、正常に完了した [SetTextToSpeechProfile()](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_settexttospeechprofile.md) 操作から最後に構成されたプロファイルを取得します。

## 構文

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

### パラメーター

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

プロファイルを取得するテキスト読み上げ操作の種類。

**`profile`**   [PartyTextToSpeechProfile\*\*](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/partytexttospeechprofile.md)\
*ライブラリ割り当ての出力、nullptr を返す可能性あり*

出力プロファイル。指定された種類にプロファイルが設定されていない場合、プロファイルは nullptr になる可能性があります。ポインターは、次回 [PartyManager::StartProcessingStateChanges()](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_startprocessingstatechanges.md) が呼び出されるまでのみ有効です。

### 戻り値

PartyError

呼び出しが成功した場合は `c_partyErrorSuccess`、それ以外の場合はエラー コード。エラー コードの人間が読める形式は、[PartyManager::GetErrorMessage()](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage.md) で取得できます。

## 解説

指定された種類のテキスト読み上げ操作に対してプロファイルが正常に構成されていない場合、取得されるプロファイルは null になります。\
\
&#x20;取得されたプロファイルは、`type` に対して同じ値を指定した SetTextToSpeechProfile() の呼び出しに関連付けられた [PartySetTextToSpeechProfileCompletedStateChange](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/structs/partysettexttospeechprofilecompletedstatechange.md) が [PartyManager::StartProcessingStateChanges()](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_startprocessingstatechanges.md) を介して提供された時点で更新されます。

## 要件

**ヘッダー:** Party.h

## 関連項目

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


## Related topics

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