LoginSignup
1
0

More than 3 years have passed since last update.

discordrbで音声が使用できない場合の対処

Posted at

環境

  • OS: Windows10(64bit)
  • Ruby: ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [i386-mingw32]

起動時にこんなエラーが出る!

libsodium not available! You can continue to use discordrb as normal but voice support won't work.
Read https://github.com/shardlab/discordrb/wiki/Installing-libsodium for more details.

対処

URLに記載の方法だと、何度やっても解消しない(おそらくx64-mingw32版Ruby用の説明のため)。
C:\Windows\System32ではなく、C:\Windows\SysWOW6432bit用libsodium.dllsodium.dllにリネームして入れてやる。

libopusも入っていなければついでにlibopus.dllopus.dllにリネームして入れると良いと思います。

あとがき

こんな情報、私の検索能力ではどう調べても出てこなくて数日悩んで試行錯誤の上やっと気づきました(笑)
つよつよ開発者の方々はこんなこと当たり前に分かるのかなぁ、ともっと精進しなければと思わされました..

参考URL

libsodium: https://download.libsodium.org/libsodium/releases/
libopus: https://dsharpplus.github.io/natives/index.html

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0