The compressed data passed is corrupted

yo why is it saying "The compressed data passed is corrupted"
2 Replies
d.js toolkit
d.js toolkit10mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Chronny
ChronnyOP10mo ago
export function test(opus: Buffer): Readable {
const encoder = new OpusEncoder(48000, 2)

const pcmData = encoder.decode(Buffer.from(opus))
return Readable.from(pcmData)
}
export function test(opus: Buffer): Readable {
const encoder = new OpusEncoder(48000, 2)

const pcmData = encoder.decode(Buffer.from(opus))
return Readable.from(pcmData)
}
basically here's my code just tryna decode opus into pcm using @discordjs/opus idk im just testing if that will work
const pcmData = encoder.decode(opus)
const pcmData = encoder.decode(opus)
but even this itself did not work how would ik that is there a way to check ok acc i just realized it was set to pcm thats why it says that thanks for the help btw
Want results from more Discord servers?
Add your server