> ## 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::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](/services/playfab/multiplayer/networking/reference/enums/partyvoiceaudiooptions)

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()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage).

## Remarks

This function is only supported on Android and iOS. Calls on other platforms will fail. <br /><br /> By default, a chat control is created with [PartyVoiceAudioOptions::None](/services/playfab/multiplayer/networking/reference/enums/partyvoiceaudiooptions) audio options.

## Requirements

**Header:** Party.h

## See also

[PartyLocalChatControl](/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/partylocalchatcontrol)


## Related topics

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