Trying to write just straight ogg rather than convert to PCM, which seems to be the issue
This commit is contained in:
parent
0f68356254
commit
ab3ef81df9
@ -127,13 +127,13 @@ client.on(Events.VoiceStateUpdate, async (oldState, newState) => {
|
|||||||
duration: 1000
|
duration: 1000
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.pipe(new prism.opus.OggDemuxer())
|
/*.pipe(new prism.opus.OggDemuxer())
|
||||||
.pipe(new prism.opus.Decoder({
|
.pipe(new prism.opus.Decoder({
|
||||||
rate: 48000,
|
rate: 48000,
|
||||||
channels: 2,
|
channels: 2,
|
||||||
frameSize: 960
|
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) {
|
} catch (error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user