music: fix encoder args

This commit is contained in:
Cynthia Foxwell 2022-08-02 22:04:25 -06:00
parent d1c7903541
commit ffceb06259

View file

@ -329,7 +329,9 @@ async function enqueue({
await connection.play(media, { await connection.play(media, {
inlineVolume: true, inlineVolume: true,
voiceDataTimeout: -1, voiceDataTimeout: -1,
encoderArgs: speex ? ["-acodec speex", "-b:a 8000", "-ar 8000"] : null, encoderArgs: speex
? ["-acodec", "speex", "-b:a", "8000", "-ar", "8000"]
: null,
}); });
textChannel.createMessage({ textChannel.createMessage({