VoiceNext Prerequisites
Note
We highly suggest using the DisCatSharp.Lavalink package for audio playback. It is much easier to use and has a lot of features that VoiceNext does not have.
Required Libraries
VoiceNext depends on the libsodium and Opus libraries to decrypt and process audio packets.
Both must be available on your development and host machines otherwise VoiceNext will not work.
Windows
When installing VoiceNext though NuGet, an additional package containing the native Windows binaries will automatically be included with no additional steps required.
However, if you are using DisCatSharp from source or without a NuGet package manager, you must manually download the binaries and place them at the root of your working directory where your application is located.
If the package doesn't work, you might have to instruct msbuild to include it:
<PackageReference Include="DisCatSharp.VoiceNext.Natives" Version="10.6.0-nightly-001">
<IncludeAssets>runtime; native; contentfiles</IncludeAssets>
</PackageReference>
MacOS
Native libraries for Apple's macOS can be installed using the Homebrew package manager:
$ brew install opus libsodium
Linux
Debian and Derivatives
Opus package naming is consistent across Debian, Ubuntu, and Linux Mint.
sudo apt-get install libopus0 libopus-dev
Package naming for libsodium will vary depending on your distro and version:
Distributions | Terminal Command |
---|---|
Ubuntu 18.04+, Debian 10+ | sudo apt-get install libsodium23 libsodium-dev |
Linux Mint, Ubuntu 16.04, Debian 9 | sudo apt-get install libsodium18 libsodium-dev |
Debian 8 | sudo apt-get install libsodium13 libsodium-dev |