-
Notifications
You must be signed in to change notification settings - Fork 98
Installing libopus
Discord uses the Opus codec for compressing audio data, so if your voice bot plays files that need to be transcoded (i. e. any file format that's not DCA), you'll need to install libopus to do that transcoding. Opus is made available under a 3-clause BSD license, available here.
You should be able to simply use the libopus binaries provided by your distro's package manager. On Debian-based systems the package should be libopus0
, on Arch opus
/lib32-opus
, and so on.
Download the prebuilt binaries hosted here by Emzi0767.
In the downloaded zip file you should find a file called libopus.dll
. Copy that to any folder within the Ruby $LOAD_PATH
or C:\Windows\System32
and rename it to opus.dll
. If the download link does not work, the binaries can also be found here.
You can add a folder to your $LOAD_PATH
either at runtime or via the -I
command line flag (ruby -I ./my_dlls bot.rb
).
brew install opus