We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I was trying to use prism-media to be able to record the discord.js call using discord.js and when I use prism.opus.OggLogicalBitstream I get an error
My code:
const opusStream = connection.receiver.subscribe(userReciver, { end: { behavior: EndBehaviorType.Manual }, }); const oggWriter = new prism.opus.OggLogicalBitstream({ opusHead: new prism.opus.OpusHead({ channelCount: 2, sampleRate: 48000, }), pageSizeControl: { maxPackets: Number(10), } }); pipeline(oggWriter, opusStream, createWriteStream(`./records/${message.guild.id}/record.ogg`), (err) => { if (err) { console.warn(`❌ Error recording file record.ogg - ${err.message}`); } else { console.log(`✅ Recorded record.ogg`); } });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issue:
I was trying to use prism-media to be able to record the discord.js call using discord.js and when I use prism.opus.OggLogicalBitstream I get an error
Steps to reproduce:
My code:
Further details:
The text was updated successfully, but these errors were encountered: