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

# ChatState

> Unity PlayFab Party SDK 中 ChatState 枚举的参考,描述玩家语音状态,例如正在讲话、沉默、静音或无音频输入。

# ChatMessageState

用于在游戏 UI 中呈现玩家的可视状态。

## 语法

```csharp theme={null}
public enum ChatState
{
    NoAudioInput,
    Muted,
    MutedByPlatform,
    Silent,
    Talking
}
```

## 常量

| **常量**              | **说明**                                    |
| ------------------- | ----------------------------------------- |
| **NoAudioInput**    | 玩家没有音频输入。这可能是因为他们没有插入音频设备,或者音频出现错误。       |
| **Muted**           | 玩家已被静音。                                   |
| **MutedByPlatform** | 由于平台策略,玩家被静音。例如,玩家可能设置了隐私选项,不允许与其他玩家进行通信。 |
| **Silent**          | 玩家没有在讲话。                                  |
| **Talking**         | 玩家正在讲话。                                   |


## Related topics

- [PlayFabPlayer.ChatState](/zh-CN/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabplayer/properties/playfabunitychatstate.md)
- [PlayFab Party Unity SDK](/zh-CN/services/playfab/multiplayer/networking/unity-party-api-reference/index.md)
- [PlayFabPlayer 类](/zh-CN/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabplayer/index.md)
- [game_chat_state_change](/zh-CN/reference/chat/gamechat2/structs/game_chat_state_change.md)
- [game_chat_text_chat_received_state_change](/zh-CN/reference/chat/gamechat2/structs/game_chat_text_chat_received_state_change.md)
