<!--
{
  "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(_:send:toParticipantID:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(pl)GKVoiceChatClient(im)voiceChatService:sendData:toParticipantID:"
  },
  "title" : "voiceChatService(_:send:toParticipantID:)"
}
-->

# voiceChatService(_:send:toParticipantID:)

A request for the client to send data to a participant.

```
func voiceChatService(_ voiceChatService: GKVoiceChatService, send data: Data, toParticipantID participantID: String)
```

## Parameters

`voiceChatService`

The service that requested the transmission.

`data`

The data to send.

`participantID`

A string that uniquely identifies the participant to send the data to.

## Discussion

An implementation of this method must reliably transmit the data to the participant identified by `participantID`. When the client on the other end receives the data, it should forward it to the voice chat service by calling the service’s [`receivedData(_:fromParticipantID:)`](/documentation/GameKit/GKVoiceChatService/receivedData(_:fromParticipantID:)) method.

---

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)