Skip to content
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

Capturing Unintelligible Voice Recordings | VoiceConnection.On("speaking"... #3754

Closed
1 task
bodenbao opened this issue Jan 31, 2020 · 1 comment
Closed
1 task

Comments

@bodenbao
Copy link

bodenbao commented Jan 31, 2020

Our discord bot all of the sudden stopped capturing unintelligible voice recordings. This happened a few months ago, but I haven't been able to figure out what the problem is. We haven't made any changes to our code since this started working, which leaves me to believe Discord did something to the audio stream.

I've reach out to Discord but haven't gotten an answer back on this yet. Is anyone else experiencing this problem?

   //Code inside  voiceConnection.on('speaking', (user, speaking)...
    const voiceChannel = voiceConnection.channel;
    const guild = voiceChannel.guild;

    //Write recording to stream...
    const fileStream = new FileWriter(recordPath, {
        sampleRate: 48000,
        channels: 2,
        bitDepth: 48000,
    });

    receiver.createOpusStream(user).pipe(fileStream);

Further details:

  • discord.js version: 11.5.1
  • Node.js version: 10.16.3
  • Operating system: Windows 10, 64bit Enterprise
  • Priority this issue should have – Very High: Collaboration with Discord a many other big companies in the industry.
  • I have also tested the issue on latest master, commit hash:
@monbrey
Copy link
Member

monbrey commented Jan 31, 2020

Is this not just a duplicate of #3524?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants