MadeBomb
DIdiscord.js - Imagine ❄
•Created by MadeBomb on 1/19/2025 in #djs-voice
No audio on Windows 11 when playing mp3 file
(following the official guide in https://discordjs.guide/voice/audio-resources.html)
I was setting a simple command for playing an .mp3 file (readed that FFmpeg can handle it), but no sound is heard in the voice channel. The bot can join the channel without any errors and load the file, but it 'pauses' the music the instant it joins. I also tried with other file types like Ogg or the recommended Opus versions. Nothing worked. I made all the code in the command file (i thought it was okay and didnt require to made changes to the main.js file).
The bot has admin permissions just in case.
Here is debug texts of the 'execution' function of the command:
And here is the recommended debug text:
Any experience with what could be happening?
https://gist.github.com/madebomb25/73d7308fa0ae3f48fd420f3b1d098210
21 replies