<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioSession/Mode-swift.struct/gameChat",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:@AVAudioSessionModeGameChat"
  },
  "title" : "gameChat"
}
-->

# gameChat

A mode that the GameKit framework sets on behalf of an application that uses GameKit’s voice chat service.

```
static let gameChat: AVAudioSession.Mode
```

## Discussion

This mode is valid only with the [`playAndRecord`](/documentation/AVFAudio/AVAudioSession/Category-swift.struct/playAndRecord) audio session category.

Don’t set this mode directly. If you need similar behavior and aren’t using a <doc://com.apple.documentation/documentation/GameKit/GKVoiceChat> object, use [`voiceChat`](/documentation/AVFAudio/AVAudioSession/Mode-swift.struct/voiceChat) or [`videoChat`](/documentation/AVFAudio/AVAudioSession/Mode-swift.struct/videoChat) instead.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)