Trying something because the files I'm getting are playable, but only under specify conditions and not with FFMEG
This commit is contained in:
parent
bdc0ed0fad
commit
9a5942facc
@ -137,7 +137,13 @@ client.on(Events.VoiceStateUpdate, async (oldState, newState) => {
|
||||
},
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user