NicMan
NicMan
DIAdiscord.js - Imagine an app
Created by NicMan on 5/23/2024 in #djs-voice
Not playing audio on linux machine
Hi i've a streange behavior in my script, on windows machine and on docker in the windows machine the audio is playied fine. When i try the same code in a linux machine it doesn't work, neither on docker in linux
7 replies
DIAdiscord.js - Imagine an app
Created by NicMan on 8/7/2023 in #djs-voice
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 discord.js@14.12.1 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
2 replies