Switched back to the old version and turning CRC back on

This commit is contained in:
Bradley Bickford 2023-11-22 21:57:26 -05:00
parent 9a5942facc
commit 00de13acd2

View File

@ -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) {