pycord icon indicating copy to clipboard operation
pycord copied to clipboard

discord.opus.load_opus()

Open RedVersaMC opened this issue 3 years ago • 3 comments

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

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

Additional Context

No response

RedVersaMC avatar Oct 10 '22 01:10 RedVersaMC

see the docs

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.

seanroades avatar Sep 29 '23 19:09 seanroades