Skip to content

discord.opus.load_opus() #1691

Open

Description

@RedVersaMC

Summary

Opus library is not loading.

Reproduction Steps

Copying the exact lines listed in this example, and replacing what is necessary to be applied to the regular bot, and error shows:
OpusNotLoaded
Looking for solutions online, it seems like I would need to add the line discord.opus.load_opus() to make it work, with no argument needed.
But when I ran the code, the function needed an argument "name". No article provided a solution on how to get around this. Some suggested downloading a library, but that didn't work.

I opened up this issue on the Pycord Discord Server, but a helper suggested I open the issue on GitHub.

Minimal Reproducible Code

No response

Expected Results

Can take voice data and record it into a file.

Actual Results

Name is a required argument. Opus library isn't loaded. A traceback error of OpusNotLoaded appeared when I spoke in VC, running the /start command.

Intents

discord.Intents.all()

System Information

v2.2

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my token from display, if visible.

Additional Context

No response

Activity

  1. noneofyourbusiness1415252 commented on Nov 13, 2022

    @noneofyourbusiness1415252

    see the docs

  2. added this to the v2.5 milestone on Feb 10, 2023
  3. seanroades commented on Sep 29, 2023

    @seanroades

    Getting this same error despite having installed opus via homebrew. I'm on an m1 mac. I also tried putting a specific path to my opus installation but got other errors.

  4. modified the milestones: v2.5, v2.6 on Feb 29, 2024
  5. modified the milestones: v2.6, v2.7 on Jul 9, 2024
  6. added theissue type on Mar 3, 2025
  7. 1 remaining item

  8. modified the milestones: v2.7, v2.8 on Dec 24, 2025
  9. removed this from the v2.8rc.1 milestone on Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

on holdunconfirmed bugA bug report that needs triagingvoiceRelated to the voice chat feature

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions