Adding Voice Communication

Voice communication is useful in situations where players are unable to hear each other due to distance, music or other circumstances.

To add voice communication to your project, simply drag the VoiceCommunication prefab from Assets > VRee Platform > Prefabs into the scene. Make sure the Player object has an Audio Source and the VoiceCommPlayer script attached.

Finally, we can open the voice communication channel between two players by sending the SetCommPacket to all players. In the example seen below, a voice communication channel is opened between players with ID 1 and 2.