<!--
{
  "availability" : [
    "iOS: 8.0.0 - 18.0.0",
    "iPadOS: 8.0.0 - 18.0.0",
    "macCatalyst: 13.1.0 - 18.0.0",
    "macOS: 10.10.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/setPlayer(_:muted:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKVoiceChat(im)setPlayer:muted:"
  },
  "title" : "setPlayer(_:muted:)"
}
-->

# setPlayer(_:muted:)

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

```
func setPlayer(_ player: GKPlayer, muted isMuted: Bool)
```

## Parameters

`player`

The player that GameKit mutes or unmutes.

`isMuted`

Determines whether to mute or unmute the player.

## Discussion

If you mute another player, the local player doesn’t hear voice data from 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)