Audio non playing on Linux

i've an issue deploying a bot on a linux machine. i've tried with docker and without but same problem on my windows machine. where i've develped the bot, the audio plays fine Discord.js version [email protected] Node Version v20.5.0
const channel = interaction.client.channels.cache.get(channelId);
connection = joinVoiceChannel({
channelId: channelId,
guildId: guildId,
adapterCreator: channel.guild.voiceAdapterCreator,
});

const player = createAudioPlayer();

const subscription = connection.subscribe(player);
let resource = createAudioResource("@../../assets/toctoc.mp3");
player.play(resource);
const channel = interaction.client.channels.cache.get(channelId);
connection = joinVoiceChannel({
channelId: channelId,
guildId: guildId,
adapterCreator: channel.guild.voiceAdapterCreator,
});

const player = createAudioPlayer();

const subscription = connection.subscribe(player);
let resource = createAudioResource("@../../assets/toctoc.mp3");
player.play(resource);
voice deps
--------------------------------------------------
Core Dependencies
- @discordjs/voice: 0.16.0
- prism-media: 1.3.5

Opus Libraries
- @discordjs/opus: 0.9.0
- opusscript: 0.0.8

Encryption Libraries
- sodium-native: not found
- sodium: 3.0.2
- libsodium-wrappers: not found
- tweetnacl: not found

FFmpeg
- version: 5.0.1-static https://johnvansickle.com/ffmpeg/
- libopus: yes
--------------------------------------------------
--------------------------------------------------
Core Dependencies
- @discordjs/voice: 0.16.0
- prism-media: 1.3.5

Opus Libraries
- @discordjs/opus: 0.9.0
- opusscript: 0.0.8

Encryption Libraries
- sodium-native: not found
- sodium: 3.0.2
- libsodium-wrappers: not found
- tweetnacl: not found

FFmpeg
- version: 5.0.1-static https://johnvansickle.com/ffmpeg/
- libopus: yes
--------------------------------------------------
No error on console
1 Reply
d.js toolkit
d.js toolkit2y ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!

Did you find this page helpful?