-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot record users in VC when they are using Discord in their browser. #5640
Comments
Can you reproduce this using the master branch of the library? A fix for receiving audio from browser clients was merged a few weeks ago |
To install the master branch, you can change your package.json version to: "discord.js": "discordjs/discord.js" |
Nope, it's not working. Same error. I'm using the Stable 85039 (a2070b8) version of Discord both on desktop and browser. |
Hi there, We're working on a new implementation of Discord's Voice API that has better playback quality and is more reliable than what we currently support in Discord.js v12 - check it out at https://github.com/discordjs/voice! The new library solves many of the issues that users are facing, and as part of this, we're dropping built-in support for voice in our next major release. We have a PR (#5402) that adds native support for our new voice library - once this PR is merged, this issue will be closed. You can still use our new voice library before that PR lands - just take a look at our music bot example to see how to get started upgrading your voice code. By using the boilerplate music player in the example, you can make it even easier to upgrade your code. Note that the PR above only reduces some of the boilerplate code you'd otherwise have to write - you do not have to wait for the PR to be merged to start using the new voice library. If you have any questions about this, feel free to:
Specific to this issue: This event relies on the voice receive feature, which is undocumented by Discord and prone to breaking quite a lot. As it's an undocumented feature, we cannot guarantee support for it. The new voice library will still have support for voice receive, but even then it will not be a stable feature. |
Please describe the problem you are having in as much detail as possible:
I'm using Discord.JS to capture audio from a voice channel. While it works quite well on desktop/mobile, it crashes when using Discord from a browser. I'm using opusscript as my Opus library, but the same thing should happen if using @discord.js/opus (untested). My guess is that Discord encodes audio differently when using a browser.
Error:
Include a reproducible code sample here, if possible:
This sample uses node-speaker to play the output. This issue can also be tested with the full bot, DACBot.
Further details:
Relevant client options:
The text was updated successfully, but these errors were encountered: