Search code examples
pythondiscord

How can I install opus for Windows?


Discord.py uses opus, but I didn't find how to install it.How can I do it? This method doesn't work https://github.com/discordrb/discordrb/wiki/Installing-libopus (or I am stupid)


Solution

  • Opus should be installed but not been loaded. For this just put in your script:

    if not discord.opus.is_loaded():
        discord.opus.load_opus(opuspath)
    

    discord.opus.is_loaded() now should return True