discordjs / voice

Implementation of the Discord Voice API for discord.js and other JS/TS libraries
Apache License 2.0
328 stars 112 forks source link

Allow the option to record raw PCM data #242

Open nicnacnic opened 2 years ago

nicnacnic commented 2 years ago

Feature

In Discord.JS v12 and below, we had the option to record audio directly to PCM, which was quite useful for the many packages that used PCM streams, like audio-mixer. That functionality is currently missing, making it harder to record more than one person at a time. Bring back that functionality in this library.

Ideal solution or implementation

Make an option available to record audio directly to PCM so it doesn't need to be decoded, resulting in less complex code and less performance hit.

Alternative solutions or implementations

No response

Other context

No response