UniVoice is a voice chat/VoIP solution for Unity.
Some features of UniVoice:
-
👥 Group voice chat. Multiple peers can join a chatroom and exchange audio.
-
⚙ Peer specific settings. Don't want to listen to a peer? Mute them. Don't want someone listening to you? Mute yourself against them.
-
🎨 Customize your audio input, output and networking layer.
-
🎤 Configurable Audio Input: UniVoice is audio input agnostic. It supports mic audio input out of the box and you can change the source of outgoing audio by implementing the
IAudioInput
interrace. -
🔊 Configurable Audio Output: UniVoice is audio output agnostic. Out of the box is supports playing peer audio using Unity AudioSource. You can divert incoming audio to anywhere you want by implementing the
IAudioOutput
interface. -
🌐 Configurable Network: UniVoice is network agnostic and supports Mirror out of the box. You can implement the
IAudioClient
andIAudioServer
interfaces using the networking plugin of your choice to make it compatible with it.
-
Ensure you have the NPM registry in the packages.json
file of your Unity project with the following scopes:
"scopedRegistries": [
{
"name": "npmjs",
"url": "https://registry.npmjs.org",
"scopes": [
"com.npmjs",
"com.adrenak.univoice",
"com.adrenak.brw",
"com.adrenak.unimic",
"com.adrenak.unityopus"
]
}
}
Am API reference is available: http://www.vatsalambastha.com/univoice
This repository contains a sample scene for the Mirror network, which is the best place to see how UniVoice can be integrated into your project.
To try the sample, import Mirror and add the UNIVOICE_MIRROR_NETWORK
compilation symbol to your project.
com.adrenak.brw@1.0.1
for reading and writing messages for communication. See MirrorServer.cs
and MirrorClient.cs
where they're used.
com.adrenak.unimic@3.2.1
for easily capturing audio from any connected mic devices. See UniMicInput.cs
for usage.
com.adrenak.unityopus@1.0.0
for Opus encoding and decoding. See OpusFilter.cs
for usage
This project is under the MIT license.
Community contributions are welcome.
The developer can be reached at the following links: