PurrVoice
dev.purrnet.voice Voice chat for PurrNet.
PurrVoice
Voice chat for PurrNet. Documentation: https://purrnet.gitbook.io/docs/plug-n-play-components/purrvoice-voice-chat
Install
PurrVoice needs PurrNet in the same project. Unity can't install it for you from PurrVoice's package.json
(PurrNet is installed from git), so add it first:
- Package Manager > + > Add package from git URL:
https://github.com/PurrNet/PurrNet.git?path=/Assets/PurrNet(1.23.0-beta.19 or newer is recommended: with older versions, receiver filters can only come from the NetworkManager's own Network Assets, not scene-scoped ones). - Then add PurrVoice:
https://github.com/PurrNet/PurrVoice.git?path=/Assets/PurrVoice
Without PurrNet the PurrVoice scripts don't compile (PurrNet namespace not found).
Supported setup
- Transport: voice goes over PurrNet RPCs. The server checks that only the voice player's owner speaks and limits how much each one can relay.
- Codec: Opus (the default). Without a codec, audio is sent as raw 16-bit samples at up to 16 kHz (microphones above that are resampled down): about 32 KB/s per speaker, against 2-8 KB/s for Opus. Every peer must run a PurrVoice version with the same raw format.
- PurrPipes (optional): when the
dev.purrnet.purrpipespackage is installed and a pipe is assigned, voice goes through the pipe instead. Pipe data never passes the server, so each receiver checks it instead: it ignores audio from anyone but the owner and drops whatever is over the same limit the server uses on the RPC path. - FMOD / Wwise outputs: optional; their assemblies compile only when the FMOD (
com.fmod.unity) or Wwise integration is in the project. - WebGL: supported through the bundled microphone plugin (no Wwise on WebGL).
Known limitations
- Concentus.dll: PurrVoice ships the precompiled
Concentus.dll(managed Opus) under its own name. A project that already has another copy of Concentus (from NuGet or another asset) gets a duplicate-assembly error in Unity. Keep one copy: remove the other one, or PurrVoice'sAssets/PurrVoice/Plugins/Concentusfolder if both are the same version.
Maintainers: before making this repository public
Don't switch this repository to public as it is: its history contains the FMOD and Wwise SDKs, which their licenses don't let us redistribute. See OPEN_SOURCE_RELEASE.md for what is affected and how to publish the source safely.
License
PurrVoice is MIT licensed (see LICENSE). It bundles third-party code under its own licenses, each kept
next to the code: Concentus, Opus, RNNoise, miniaudio (Assets/PurrVoice/Plugins/*) and uLipSync
(Assets/PurrVoice/Externals/uLipSync). FMOD and Wwise are not included: install them yourself under their own
licenses to use the optional integrations.
Log in and subscribe to the House Cat or Royal British plan to access this package.
Log In