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

> chat_manager::singleton_instance

# chat\_manager::singleton\_instance

Retrieves a reference to the Game Chat 2 singleton instance.

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
chat_manager& singleton_instance(  
)  
```

<a id="parametersSection" />

### Parameters

None.

<a id="retvalSection" />

### Return value

Type: [chat\_manager](/reference/chat/gamechat2/classes/chat_manager/chat_manager)&

A reference to the Game Chat 2 singleton instance.

<a id="remarksSection" />

## Remarks

This method returns a reference to the Game Chat 2 singleton instance, with which you can include Game Chat 2 functionality in your game. The [chat\_manager](/reference/chat/gamechat2/classes/chat_manager/chat_manager) instance can be used to add voice and text communications to your app, allowing your app to manage local and remote game users, process data from both local and remote Game Chat 2 instances, and process state changes such as text message receipts and chat transcriptions. For more information about using the Game Chat 2 singleton instance, 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](/reference/chat/gamechat2/classes/chat_manager/chat_manager)


## Related topics

- [chat_manager::initialize](/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_initialize.md)
- [Using the Game Chat 2 C++ API](/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2.md)
- [chat_manager::cleanup](/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_cleanup.md)
- [chat_manager::get_chat_users](/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_get_chat_users.md)
- [chat_manager::audio_manipulation_mode](/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_audio_manipulation_mode.md)
