<!--
{
  "availability" : [
    "iOS: 3.0.0 - 7.0.0",
    "iPadOS: 3.0.0 - 7.0.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 3.0.0 - 3.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKVoiceChatClient/voiceChatService(_:didStopWithParticipantID:error:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(pl)GKVoiceChatClient(im)voiceChatService:didStopWithParticipantID:error:"
  },
  "title" : "voiceChatService(_:didStopWithParticipantID:error:)"
}
-->

# voiceChatService(_:didStopWithParticipantID:error:)

Received by the client when a previously established voice chat has ended.

```
optional func voiceChatService(_ voiceChatService: GKVoiceChatService, didStopWithParticipantID participantID: String, error: (any Error)?)
```

## Parameters

`voiceChatService`

The voice chat that maintained the connection.

`participantID`

A string that uniquely identifies the user who disconnected.

`error`

The error that caused the chat to end.

## Discussion

Your application can implement this method to notify the user that an established voice connection has ended. This may occur when another participant ends the chat or if the network connection was lost.

---

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)