How te get buffer from opusStream

Hey guys. I was able to create an opus stream from voice
connection.receiver.speaking.on('start', userId => {
if (!connection.receiver.subscriptions.has(userId))
{
const opusStream = connection.receiver.subscribe(userId, {
end: {
behavior: EndBehaviorType.Manual,
},
});
connection.receiver.speaking.on('start', userId => {
if (!connection.receiver.subscriptions.has(userId))
{
const opusStream = connection.receiver.subscribe(userId, {
end: {
behavior: EndBehaviorType.Manual,
},
});
I want to decode this using opusEndocder.decode but the input needs to be buffer
1 Reply
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server