<!--
{
  "availability" : [
    "iOS: 4.1.0 - 18.0.0",
    "iPadOS: 4.1.0 - 18.0.0",
    "macCatalyst: 13.1.0 - 18.0.0",
    "macOS: 10.8.0 - 15.0.0",
    "tvOS: 9.0.0 - 18.0.0",
    "visionOS: 1.0.0 - 2.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKVoiceChat",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKVoiceChat"
  },
  "title" : "GKVoiceChat"
}
-->

# GKVoiceChat

A voice channel that allows players to speak with each other in a multiplayer game.

```
class GKVoiceChat
```

## Overview

GameKit provides the underlying mechanism to implement voice chat between players in a multiplayer game. It’s your responsibility to provide player controls and display feedback during the chat.

First, configure voice chat by adding the <doc://com.apple.documentation/documentation/BundleResources/Information-Property-List/NSMicrophoneUsageDescription> key to the Information Property List and creating an audio session. Then, create a `GKVoiceChat` object using the `GKMatch` [`voiceChat(withName:)`](/documentation/GameKit/GKMatch/voiceChat(withName:)) method passing a string that identifies the voice channel. Use the [`start()`](/documentation/GameKit/GKVoiceChat/start()) method to connect players to the channel. Use the [`isActive`](/documentation/GameKit/GKVoiceChat/isActive) property to activate the microphone or switch the microphone between channels.

Provide a handler using the [`playerVoiceChatStateDidChangeHandler`](/documentation/GameKit/GKVoiceChat/playerVoiceChatStateDidChangeHandler) property to update the interface when a player connects, speaks, or disconnects from a chat. You can also add controls that mute and set the volume using the [`setPlayer(_:muted:)`](/documentation/GameKit/GKVoiceChat/setPlayer(_:muted:)) method and [`volume`](/documentation/GameKit/GKVoiceChat/volume) property.

Note that if there’s insufficient bandwidth over Wi-Fi to maintain a voice chat, GameKit may disconnect players from the channel or disband a channel.

## Topics

### Determining Whether Voice Chat Is Available

[`+  isVoIPAllowed`](/documentation/GameKit/GKVoiceChat/isVoIPAllowed())

Returns whether voice chat is available on the device.

### Starting and Stopping Voice Chat

[`-  start`](/documentation/GameKit/GKVoiceChat/start())

Starts communication with other players in a channel.

[`-  stop`](/documentation/GameKit/GKVoiceChat/stop())

Ends communication with other players in a channel.

[`active`](/documentation/GameKit/GKVoiceChat/isActive)

A Boolean value that indicates whether the channel is sampling the microphone.

### Receiving Updates About Other Participants

[`playerVoiceChatStateDidChangeHandler`](/documentation/GameKit/GKVoiceChat/playerVoiceChatStateDidChangeHandler)

A method that handles when a player’s voice chat changes state.

[`PlayerState`](/documentation/GameKit/GKVoiceChat/PlayerState)

The state of a player in a voice chat.

### Controlling Chat Volume

[`-  setPlayer:muted:`](/documentation/GameKit/GKVoiceChat/setPlayer(_:muted:))

Mutes a player in the chat, including the local player.

[`volume`](/documentation/GameKit/GKVoiceChat/volume)

The volume level for the channel.

### Accessing Properties

[`name`](/documentation/GameKit/GKVoiceChat/name)

The name of the voice chat channel.

[`players`](/documentation/GameKit/GKVoiceChat/players)

The players connected to the channel.

### Deprecated Methods and Properties

[`playerIDs`](/documentation/GameKit/GKVoiceChat/playerIDs)

An array of strings containing the player identifiers for the players connected to the channel.

[`playerStateUpdateHandler`](/documentation/GameKit/GKVoiceChat/playerStateUpdateHandler)

Handles when a player in the chat changes state.

[`-  setMute:forPlayer:`](/documentation/GameKit/GKVoiceChat/setMute(_:forPlayer:))

Mutes a player in a voice chat.

## Relationships

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Conforms To

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

---

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)