music: fix sample rate
This commit is contained in:
parent
ffceb06259
commit
55b5eb66a7
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue