A VoIP implementation for Unity based on the Mirror HLAPI Project
Caution: I implemented this years ago. I don't know if any of this still works. Use at your own risk.
This is a very basic implementation of a VoIP service using vis2k's Mirror project. At the moment this is as "barebones" as it gets but I could not find another (up to date) implementation of this. So I thought I might as well upload it. This whole thing was done in ~ 1h (including research) and is VERY basic, so don't expect too much.
- Install Mirror either via the Asset Store or from the GitHub page.
- Pull/download this repo and copy the
Heliograph/
folder with all its contents to yourAssets/
folder. - Add one
HelioRecorder
and oneHelioPlayer
component to each of your player prefabs (must be on the same object for now). - Add one
AudioSource
somewhere and reference it inHelioPlayer
. - Customize your mic frequency in
Heliograph/Settings/MicrophoneSettings.cs
if you want to. - Start your game and connect some clients!
- Some form of en/decoding
- Push to talk
- De-tangle the code and make it event-driven
- (UnityPackage?)
Contributions are very welcome! Just start a PR.