---
title: "voiceChatService(_:didNotStartWithParticipantID:error:)"
framework: gamekit
role: symbol
role_heading: Instance Method
path: "gamekit/gkvoicechatclient/voicechatservice(_:didnotstartwithparticipantid:error:)"
---

# voiceChatService(_:didNotStartWithParticipantID:error:)

Received by the client when an attempt to establish a voice chat with another participant failed.

## Declaration

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

## Parameters

- `voiceChatService`: The voice chat service that was establishing the connection.
- `participantID`: A string that uniquely identifies the other user.
- `error`: The error that prevented the voice chat from being established.

## Discussion

Discussion Your application can implement this method to notify the user that an error occurred when establishing a connection.

## See Also

### Responding to Changes in Other Participants

- [voiceChatService(_:didStartWithParticipantID:)](gamekit/gkvoicechatclient/voicechatservice(_:didstartwithparticipantid:).md)
- [voiceChatService(_:didStopWithParticipantID:error:)](gamekit/gkvoicechatclient/voicechatservice(_:didstopwithparticipantid:error:).md)
