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

# chat_manager::set_audio_encoding_bitrate

> chat_manager::set_audio_encoding_bitrate

# chat\_manager::set\_audio\_encoding\_bitrate

Sets the audio encoding bit rate for the chat instance.

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
void set_audio_encoding_bitrate(  
    game_chat_audio_encoding_bitrate audioEncodingBitrate  
)  
```

<a id="parametersSection" />

### Parameters

*audioEncodingBitrate*   \_In\_\
Type: [game\_chat\_audio\_encoding\_bitrate](/reference/chat/gamechat2/enums/game_chat_audio_encoding_bitrate)

The audio encoding bit rate currently used by the chat instance.

<a id="retvalSection" />

### Return value

Type: void

<a id="remarksSection" />

## Remarks

This method specifies the current audio encoding bit rate used by the chat instance. If this method is not called, the audio encoding bit rate is set to `game_chat_audio_encoding_bitrate::kilobits_per_second_24`. You can change the audio encoding bit rate as needed to respond to network usage. Lower bit rates result in less data transmission but lower audio quality. Higher bit rates result in better audio quality but more data transmission. For more information about audio encoding, see [Using the Game Chat 2 C++ API](/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2).

<a id="requirementsSection" />

## Requirements

**Header:** GameChat2.h

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

<a id="seealsoSection" />

## See also

[Intro to Game Chat 2](/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro)\
[chat\_manager::audio\_encoding\_bitrate](/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_audio_encoding_bitrate)\
[chat\_manager](/reference/chat/gamechat2/classes/chat_manager/chat_manager)


## Related topics

- [game_chat_audio_encoding_bitrate](/reference/chat/gamechat2/enums/game_chat_audio_encoding_bitrate.md)
- [chat_user_local::speech_to_text_conversion_preference_enabled](/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_speech_to_text_conversion_preference_enabled.md)
- [Using the Game Chat 2 C++ API](/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2.md)
- [chat_manager::audio_encoding_bitrate](/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_audio_encoding_bitrate.md)
- [GameChat2 members](/reference/chat/gamechat2/gamechat2_members.md)
