pat
DIdiscord.js - Imagine ❄
•Created by TheUntitledGoose on 1/14/2025 in #djs-questions
Discord.js voice resampling issues.
Well yeah it was an issue fixed in the older version of the library but not in v2 - probably related to how discord abruptly changed how their voice packets were structured resulting in some unpacked fields being bigger than expected (or atleast thats my guess)
20 replies
DIdiscord.js - Imagine ❄
•Created by TheUntitledGoose on 1/14/2025 in #djs-questions
Discord.js voice resampling issues.
in decoder.js there's two if statements
chunk.compare(OPUS_HEAD)
and chunk.compare(OPUS_TAGS)
, add chunk.length >= 8 && chunk.compare ...
there20 replies
DIdiscord.js - Imagine ❄
•Created by TheUntitledGoose on 1/14/2025 in #djs-questions
Discord.js voice resampling issues.
(cause a certain pr outside of discordjs's repo is 2 years old)
20 replies
DIdiscord.js - Imagine ❄
•Created by TheUntitledGoose on 1/14/2025 in #djs-questions
Discord.js voice resampling issues.
hmm, can you try editing the source then
20 replies
DIdiscord.js - Imagine ❄
•Created by WhiteGarfield on 1/11/2025 in #djs-voice
No audio on Ubuntu 24.04
o wait it looks like it uses the same libopus anyways according to the error stack
31 replies
DIdiscord.js - Imagine ❄
•Created by WhiteGarfield on 1/11/2025 in #djs-voice
No audio on Ubuntu 24.04
could be anything ranging from compiles of libopus on ubuntu24 being incompatible with what we are using to some driver shit i guess
31 replies
DIdiscord.js - Imagine ❄
•Created by WhiteGarfield on 1/11/2025 in #djs-voice
No audio on Ubuntu 24.04
this is probably way more low level than the library so i have no clue
31 replies
DIdiscord.js - Imagine ❄
•Created by WhiteGarfield on 1/11/2025 in #djs-voice
No audio on Ubuntu 24.04
hmm
31 replies
DIdiscord.js - Imagine ❄
•Created by WhiteGarfield on 1/11/2025 in #djs-voice
No audio on Ubuntu 24.04
ah ok so you said it works on 2204
31 replies
DIdiscord.js - Imagine ❄
•Created by TheUntitledGoose on 1/14/2025 in #djs-questions
Discord.js voice resampling issues.
20 replies
DIdiscord.js - Imagine ❄
•Created by TheUntitledGoose on 1/14/2025 in #djs-questions
Discord.js voice resampling issues.
however that is not the issue it appears, it's todo with the decoder
20 replies
DIdiscord.js - Imagine ❄
•Created by TheUntitledGoose on 1/14/2025 in #djs-questions
Discord.js voice resampling issues.
pretty sure it can infer
20 replies
DIdiscord.js - Imagine ❄
•Created by TheUntitledGoose on 1/14/2025 in #djs-questions
Discord.js voice resampling issues.
prob dont need all that extra stuff in the ffmpeg args
20 replies
DIdiscord.js - Imagine ❄
•Created by WhiteGarfield on 1/11/2025 in #djs-voice
No audio on Ubuntu 24.04
voice intent
31 replies
DIdiscord.js - Imagine ❄
•Created by TheUntitledGoose on 1/14/2025 in #djs-questions
Discord.js voice resampling issues.
(idk if theres anything to do this natively so ffmpeg -ar 16000 might be the way to go)
20 replies
DIdiscord.js - Imagine ❄
•Created by TheUntitledGoose on 1/14/2025 in #djs-questions
Discord.js voice resampling issues.
decode to 48khz PCM and then resample it to 16khz if that's truly necessary
20 replies
DIdiscord.js - Imagine ❄
•Created by TheUntitledGoose on 1/14/2025 in #djs-questions
Discord.js voice resampling issues.
you are decoding /from 16khz/ here, not the other way around
20 replies
DIdiscord.js - Imagine ❄
•Created by TheUntitledGoose on 1/14/2025 in #djs-questions
Discord.js voice resampling issues.
well it doesnt make sense to decode something and tell the decoder its 16khz but its actually 48khz
20 replies
DIdiscord.js - Imagine ❄
•Created by 🌑 Spakhugar on 1/5/2025 in #djs-voice
Trying to make my bot play .mp3 for directory
still vague. you have logging in here, does it show anything ??
10 replies
DIdiscord.js - Imagine ❄
•Created by ✨𝓜𝓪𝓲𝓽𝓻𝓮𝓖𝓔𝓔𝓚ツ✨ on 12/28/2024 in #djs-voice
Add FFmpeg Args when creating an audio resource
16 replies