Skip to content

Discord does not support receiving audio #2929

@iDerp

Description

@iDerp

Please describe the problem you are having in as much detail as possible:
When creating a readable stream for audio, no audio is received from the on data event. This used to work a month or so ago, but no longer works. No data is passed, the on end event is never passed.

Include a reproducible code sample here, if possible:

const audioStream = voiceReceiver.createStream(member, { end: 'manual', mode: 'pcm' });
               audioStream.on('data', (chunk) => {
                console.log(`Received ${chunk.length} bytes of data.`);
              });

Further details:

  • discord.js version: 12.0.0-dev (master)
  • Node.js version: v8.11.4
  • Operating system: Windows 10 (also tested on Ubuntu 16.04 with node v11.0.0)
  • Priority this issue should have – please be realistic and elaborate if possible:
    High priority for bots needing audio receiving
  • I found this issue while running code on a user account
  • I have also tested the issue on latest master, commit hash: f3cad81

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions