---
title: "receivedRealTime(_:fromParticipantID:)"
framework: gamekit
role: symbol
role_heading: Instance Method
path: "gamekit/gkvoicechatservice/receivedrealtime(_:fromparticipantid:)"
---

# receivedRealTime(_:fromParticipantID:)

Called by the client to deliver voice data received from a remote participant..

## Declaration

```swift
func receivedRealTime(_ audio: Data!, fromParticipantID participantID: String!)
```

## Parameters

- `audio`: The audio data that was received from the other participant.
- `participantID`: A string that uniquely identifies the speaking participant.

## Discussion

Discussion The voice chat service uses a network connection provided by the client to exchange information between the participants. When the client receives information intended for the voice chat service, it should call this method to transfer it.

## See Also

### Related Documentation

- [voiceChatService(_:sendRealTime:toParticipantID:)](gamekit/gkvoicechatclient/voicechatservice(_:sendrealtime:toparticipantid:).md)

### Methods Called by the Client

- [acceptCallID(_:)](gamekit/gkvoicechatservice/acceptcallid(_:).md)
- [denyCallID(_:)](gamekit/gkvoicechatservice/denycallid(_:).md)
- [receivedData(_:fromParticipantID:)](gamekit/gkvoicechatservice/receiveddata(_:fromparticipantid:).md)
