<!--
{
  "availability" : [
    "iOS: 5.0.0 - 8.0.0",
    "iPadOS: 5.0.0 - 8.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.8.0 - 10.10.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKVoiceChat/setMute(_:forPlayer:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKVoiceChat(im)setMute:forPlayer:"
  },
  "title" : "setMute(_:forPlayer:)"
}
-->

# setMute(_:forPlayer:)

Mutes a player in a voice chat.

```
func setMute(_ isMuted: Bool, forPlayer playerID: String)
```

## Parameters

`isMuted`

Determines whether to mute or unmute the player.

`playerID`

The player identifier string for a player in the match.

## Discussion

If you mute a player, the local player doesn’t hear voice data transmitted by that player.

---

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)