<!--
{
  "availability" : [
    "iOS: 3.0.0 - 7.0.0",
    "iPadOS: 3.0.0 - 7.0.0",
    "tvOS: 9.0.0 - 18.4.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 3.0.0 - 3.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKVoiceChatServiceError-swift.struct/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:@E@GKVoiceChatServiceError"
  },
  "title" : "GKVoiceChatServiceError.Code"
}
-->

# GKVoiceChatServiceError.Code

Error codes for the voice chat service error domain.

```
enum Code
```

## Topics

### Constants

[`case internalError`](/documentation/GameKit/GKVoiceChatServiceError-swift.struct/Code/internalError)

A serious error occurred inside the voice chat service.

[`case noRemotePacketsError`](/documentation/GameKit/GKVoiceChatServiceError-swift.struct/Code/noRemotePacketsError)

The voice chat service stopped receiving packets from the remote participant.

[`case unableToConnectError`](/documentation/GameKit/GKVoiceChatServiceError-swift.struct/Code/unableToConnectError)

The voice chat service was unable to establish a connection with another user.

[`case remoteParticipantHangupError`](/documentation/GameKit/GKVoiceChatServiceError-swift.struct/Code/remoteParticipantHangupError)

The remote participant in a voice chat stopped the chat.

[`case invalidCallIDError`](/documentation/GameKit/GKVoiceChatServiceError-swift.struct/Code/invalidCallIDError)

The voice chat service didn’t recognize the call identifier.

[`case audioUnavailableError`](/documentation/GameKit/GKVoiceChatServiceError-swift.struct/Code/audioUnavailableError)

The audio hardware is unavailable to the voice chat service.

[`case uninitializedClientError`](/documentation/GameKit/GKVoiceChatServiceError-swift.struct/Code/uninitializedClientError)

The application did not set a client before calling voice chat service methods.

[`case clientMissingRequiredMethodsError`](/documentation/GameKit/GKVoiceChatServiceError-swift.struct/Code/clientMissingRequiredMethodsError)

The voice chat service did not find an expected method defined by the client.

[`case remoteParticipantBusyError`](/documentation/GameKit/GKVoiceChatServiceError-swift.struct/Code/remoteParticipantBusyError)

The remote participant is already connected to a voice chat.

[`case remoteParticipantCancelledError`](/documentation/GameKit/GKVoiceChatServiceError-swift.struct/Code/remoteParticipantCancelledError)

A remote participant attempted to start a voice chat, then canceled.

[`case remoteParticipantResponseInvalidError`](/documentation/GameKit/GKVoiceChatServiceError-swift.struct/Code/remoteParticipantResponseInvalidError)

Invalid data was received from a remote participant.

[`case remoteParticipantDeclinedInviteError`](/documentation/GameKit/GKVoiceChatServiceError-swift.struct/Code/remoteParticipantDeclinedInviteError)

A remote participant declined an invitation.

[`case methodCurrentlyInvalidError`](/documentation/GameKit/GKVoiceChatServiceError-swift.struct/Code/methodCurrentlyInvalidError)

A method on the voice chat service was called when it was not allowed to be called (for example, attempting to connect when the voice chat service was already connected).

[`case networkConfigurationError`](/documentation/GameKit/GKVoiceChatServiceError-swift.struct/Code/networkConfigurationError)

The voice chat service had problems accessing the network.

[`case unsupportedRemoteVersionError`](/documentation/GameKit/GKVoiceChatServiceError-swift.struct/Code/unsupportedRemoteVersionError)

The other participant is running a different version of the voice chat service.

[`case outOfMemoryError`](/documentation/GameKit/GKVoiceChatServiceError-swift.struct/Code/outOfMemoryError)

The voice chat service was unable to allocate memory required to operate.

[`case invalidParameterError`](/documentation/GameKit/GKVoiceChatServiceError-swift.struct/Code/invalidParameterError)

A parameter had an unrecognized value.

### Initializers

[`init?(rawValue: Int32)`](/documentation/GameKit/GKVoiceChatServiceError-swift.struct/Code/init(rawValue:))

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)