diff --git a/lib/Voice/AudioEncoder.js b/lib/Voice/AudioEncoder.js index 76f90caa7..517a7cf68 100644 --- a/lib/Voice/AudioEncoder.js +++ b/lib/Voice/AudioEncoder.js @@ -97,7 +97,7 @@ var AudioEncoder = (function () { var self = this; return new Promise(function (resolve, reject) { - var enc = cpoc.spawn(self.getChoice(), ["-f", "s16le", "-ar", "48000", "-ac", "1", // this can be 2 but there's no point, discord makes it mono on playback, wasted bandwidth. + var enc = cpoc.spawn(self.getCommand(), ["-f", "s16le", "-ar", "48000", "-ac", "1", // this can be 2 but there's no point, discord makes it mono on playback, wasted bandwidth. "-af", "volume=1", "pipe:1", "-i", file]); enc.stdout.once("readable", function () { diff --git a/src/Voice/AudioEncoder.js b/src/Voice/AudioEncoder.js index 543008345..b03726cf7 100644 --- a/src/Voice/AudioEncoder.js +++ b/src/Voice/AudioEncoder.js @@ -84,7 +84,7 @@ class AudioEncoder{ encodeFile(file, callback=function(err, buffer){}){ var self = this; return new Promise((resolve, reject) => { - var enc = cpoc.spawn(self.getChoice() , [ + var enc = cpoc.spawn(self.getCommand() , [ "-f", "s16le", "-ar", "48000", "-ac", "1", // this can be 2 but there's no point, discord makes it mono on playback, wasted bandwidth.