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

> Configures the voice audio options for this chat control.

Configures the voice audio options for this chat control.

## Syntax

```cpp theme={null}
PartyError SetVoiceAudioOptions(  
    PartyVoiceAudioOptions options  
)  
```

### Parameters

**`options`**   [PartyVoiceAudioOptions](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/enums/partyvoiceaudiooptions.md)

The voice audio options.

### Return value

PartyError

`c_partyErrorSuccess` if the call succeeded or an error code otherwise. The human-readable form of the error code can be retrieved via [PartyManager::GetErrorMessage()](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage.md).

## Remarks

This function is only supported on Android and iOS. Calls on other platforms will fail. \
\
&#x20;By default, a chat control is created with [PartyVoiceAudioOptions::None](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/enums/partyvoiceaudiooptions.md) audio options.

## Requirements

**Header:** Party.h

## See also

[PartyLocalChatControl](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/partylocalchatcontrol.md)


## Related topics

- [PartyVoiceAudioOptions](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/enums/partyvoiceaudiooptions.md)
- [PlayFab Party Release Notes](https://docs.xbox.com/services/playfab/multiplayer/networking/release-notes.md)
- [PartyLocalChatControl::SetTranscriptionOptions](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_settranscriptionoptions.md)
- [PartyLocalChatControl::GetVoiceAudioOptions](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_getvoiceaudiooptions.md)
- [PartyLocalChatControl::GetAudioManipulationCaptureStream](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_getaudiomanipulationcapturestream.md)
