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

# PartyChatPermissionOptions

> Options for defining the communication relationship between two chat controls.

Options for defining the communication relationship between two chat controls.

## Syntax

```cpp theme={null}
enum class PartyChatPermissionOptions    
{  
    None = 0x0,  
    SendMicrophoneAudio = 0x1,  
    SendTextToSpeechAudio = 0x2,  
    SendAudio = SendMicrophoneAudio | SendTextToSpeechAudio,  
    ReceiveMicrophoneAudio = 0x4,  
    ReceiveTextToSpeechAudio = 0x8,  
    ReceiveAudio = ReceiveMicrophoneAudio | ReceiveTextToSpeechAudio,  
    ReceiveText = 0x10,  
}  
```

## Constants

| Constant                 | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |                                 |
| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- |
| None                     | No chat communication between the local chat control and the target chat control is allowed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |                                 |
| SendMicrophoneAudio      | Microphone audio communication from the local chat control to the target chat control is allowed.<br /><br /> For most game scenarios, either all or no audio communication should be sent and `SendAudio` should be used instead. This flag can be used for game scenarios where microphone audio should be sent to the target chat control, but other types of audio should not. <br /><br /> Audio optionally submitted to a capture sink via [PartyAudioManipulationSinkStream::SubmitBuffer()](/services/playfab/multiplayer/networking/reference/classes/PartyAudioManipulationSinkStream/methods/partyaudiomanipulationsinkstream_submitbuffer) is treated as microphone audio when applying chat permissions and determining which chat controls should receive the audio.              |                                 |
| SendTextToSpeechAudio    | Text-to-speech audio communication from the local chat control to the target chat control is allowed.<br /><br /> For most game scenarios, either all or no audio communication should be sent and `SendAudio` should be used instead. This flag can be used for game scenarios where text-to-speech audio should be sent to the target chat control, but other types of audio should not.                                                                                                                                                                                                                                                                                                                                                                                                      |                                 |
| SendAudio                | All audio communication from the local chat control to the target chat control is allowed.<br /><br /> This flag is equivalent to \`\`\`SendMicrophoneAudio                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | SendTextToSpeechAudio\`\`\`.    |
| ReceiveMicrophoneAudio   | Microphone audio communication from the target chat control to the local chat control is allowed.<br /><br /> For most game scenarios, either all or no audio communication should be received and `ReceiveAudio` should be used instead. This flag can be used for game scenarios where microphone audio should be received from the target chat control, but other types of audio should not. <br /><br /> Audio optionally submitted to a capture sink via [PartyAudioManipulationSinkStream::SubmitBuffer()](/services/playfab/multiplayer/networking/reference/classes/PartyAudioManipulationSinkStream/methods/partyaudiomanipulationsinkstream_submitbuffer) is treated as microphone audio when applying chat permissions and determining which chat controls should receive the audio. |                                 |
| ReceiveTextToSpeechAudio | Text-to-speech audio communication from the target chat control to the local chat control is allowed.<br /><br /> For most game scenarios, either all or no audio communication should be received and `ReceiveAudio` should be used instead. This flag can be used for game scenarios where text-to-speech audio should be received from the target chat control, but other types of audio should not.                                                                                                                                                                                                                                                                                                                                                                                         |                                 |
| ReceiveAudio             | Audio communication from the target chat control to the local chat control is allowed.<br /><br /> This flag is equivalent to \`\`\`ReceiveMicrophoneAudio                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | ReceiveTextToSpeechAudio\`\`\`. |
| ReceiveText              | Text communication from the target chat control to the local chat control is allowed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |                                 |

## Requirements

**Header:** Party.h

## See also

[Party members](/services/playfab/multiplayer/networking/reference/party_members)


## Related topics

- [PartyLocalChatControl::SetPermissions](/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_setpermissions.md)
- [PartyLocalChatControl::GetPermissions](/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_getpermissions.md)
- [PartyXblChatPermissionInfo](/services/playfab/multiplayer/networking/xblreference/structs/partyxblchatpermissioninfo.md)
- [XBOX Live helper library for PlayFab Party](/services/playfab/multiplayer/networking/party-xbox-live-guide.md)
- [Troubleshooting Voice Chat](/services/playfab/community/voice-communications/concepts-audio-troubleshooting.md)
