Trying something because the files I'm getting are playable, but only under specify conditions and not with FFMEG

This commit is contained in:
Bradley Bickford 2023-11-22 21:40:34 -05:00
parent bdc0ed0fad
commit 9a5942facc

View File

@ -137,7 +137,13 @@ client.on(Events.VoiceStateUpdate, async (oldState, newState) => {
}, },
crc: false crc: false
})) }))
.pipe(fs.createWriteStream("." + path.sep + "media" + path.sep + "voice_audio" + path.sep + newCallID + path.sep + `${Date.now()}-${user_id}.ogg`)) .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`))
}) })
} catch (error) { } catch (error) {