adrenak / univoice

Voice chat/VoIP solution for unity.
http://www.vatsalambastha.com/univoice
MIT License
363 stars 36 forks source link

How to implement an audio codec like libopus in order to save bandwidth #38

Open ludzeller opened 1 month ago

ludzeller commented 1 month ago

Is there any guidance, hook, or template for how to implement an audio codec like libopus in order to save bandwidth? I am using univoice in combination with Unity Relay and the voice transmission quickly creates hundreds of MB per hour per session.

https://github.com/xiph/opus

Implementing libopus as external native library for Unity should be straightforward, but I am specifically asking where in the univoice system one would add the compression and decompression. Any thoughts on that?