diff --git a/breadbot.js b/breadbot.js index add8fa0..2565d2a 100644 --- a/breadbot.js +++ b/breadbot.js @@ -134,16 +134,10 @@ client.on(Events.VoiceStateUpdate, async (oldState, newState) => { }), pageSizeControl: { maxPackets: 10 - }, - crc: false + }/*, + crc: false*/ })) - .pipe(new prism.opus.OggDemuxer()) - .pipe(new prism.opus.Decoder({ - channels: 2, - rate: 4800, - frameSize: 960 - })) - .pipe(fs.createWriteStream("." + path.sep + "media" + path.sep + "voice_audio" + path.sep + newCallID + path.sep + `${Date.now()}-${user_id}.pcm`)) + .pipe(fs.createWriteStream("." + path.sep + "media" + path.sep + "voice_audio" + path.sep + newCallID + path.sep + `${Date.now()}-${user_id}.ogg`)) }) } catch (error) {