music: fix sample rate

This commit is contained in:
Cynthia Foxwell 2022-08-02 22:07:58 -06:00
parent ffceb06259
commit 55b5eb66a7

View file

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