#Multiplayer voice chat using Mirror
9 messages · Page 1 of 1 (latest)
https://assetstore.unity.com/packages/tools/audio/dissonance-voice-chat-70078
This support mirror
It is not free :/
And no one said it was free
Do you want it for free? You can create a voice chat yourself by transferring bytes over the network with the Microphone class
Have you already done it or do you have any idea how to do it this way?
no
That thing I recently decided to implement in my game.
What you should do:
- Use Microphone class to capture audio data.
- Use an encoding/decoding library to compress your audio data (I'm personally using Opus).
- Record, encode and send the encoded data over network with NetworkMesage's.
- Receive the encoded data, decode it back to PCM format and feed it to AudioSource.
What I also would do is to create a voice "room" (or "channel" or "group") system.
With it I can create a master group for all players or several groups for different teams (so a team can only hear voices of its teammates).