Sam
Sam
DIAdiscord.js - Imagine an app
Created by Sam on 2/24/2025 in #djs-voice
Discord voice doesn't play remote audio on linux
It did not fix the issue. Here's the new report with the updated version:
--------------------------------------------------
Core Dependencies
- @discordjs/voice: 0.18.0
- prism-media: 1.3.5

Opus Libraries
- @discordjs/opus: 0.9.0
- opusscript: not found

Encryption Libraries
- sodium-native: not found
- sodium: not found
- libsodium-wrappers: 0.7.15
- @stablelib/xchacha20poly1305: not found
- @noble/ciphers: not found

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

Opus Libraries
- @discordjs/opus: 0.9.0
- opusscript: not found

Encryption Libraries
- sodium-native: not found
- sodium: not found
- libsodium-wrappers: 0.7.15
- @stablelib/xchacha20poly1305: not found
- @noble/ciphers: not found

FFmpeg
- version: 6.0-static https://johnvansickle.com/ffmpeg/
- libopus: yes
--------------------------------------------------
9 replies
DIAdiscord.js - Imagine an app
Created by Sam on 2/24/2025 in #djs-voice
Discord voice doesn't play remote audio on linux
I will check if this fixes the issue
9 replies
DIAdiscord.js - Imagine an app
Created by Sam on 2/24/2025 in #djs-voice
Discord voice doesn't play remote audio on linux
Here's the report:
--------------------------------------------------
Core Dependencies
- @discordjs/voice: 0.17.0
- prism-media: 1.3.5

Opus Libraries
- @discordjs/opus: 0.9.0
- opusscript: not found

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

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

Opus Libraries
- @discordjs/opus: 0.9.0
- opusscript: not found

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

FFmpeg
- version: 6.0-static https://johnvansickle.com/ffmpeg/
- libopus: yes
--------------------------------------------------
9 replies
DIAdiscord.js - Imagine an app
Created by Sam on 2/24/2025 in #djs-voice
Discord voice doesn't play remote audio on linux
I tried that and it didn't fix the issue
const resource = createAudioResource('https://cdn.communitydragon.org/15.4.1/champion/gnar/champ-select/sounds/choose',{
inputType: StreamType.Arbitrary
});
const resource = createAudioResource('https://cdn.communitydragon.org/15.4.1/champion/gnar/champ-select/sounds/choose',{
inputType: StreamType.Arbitrary
});
9 replies
DIAdiscord.js - Imagine an app
Created by Sam on 2/24/2025 in #djs-voice
Discord voice doesn't play remote audio on linux
I've created a test command here:
const resource = createAudioResource('https://cdn.communitydragon.org/15.4.1/champion/gnar/champ-select/sounds/choose');

const connection = joinVoiceChannel({
channelId: interaction.member.voice.channel.id,
guildId: interaction.member.voice.channel.guild.id,
adapterCreator: interaction.member.voice.channel.guild.voiceAdapterCreator,
});

const player = createAudioPlayer();
connection.subscribe(player);

connection.on('stateChange', (oldState, newState) => {
console.log('Voice connection state changed from', oldState.status, 'to', newState.status);

if (oldState.status === VoiceConnectionStatus.Ready && newState.status === VoiceConnectionStatus.Connecting) {
connection.configureNetworking();
}
});

player.on('error', (error) => {
console.error('Audio player error:', error);
});

player.on('stateChange', (oldState, newState) => {
if (oldState.status !== newState.status) {
console.log(`Player state changed from ${oldState.status} to ${newState.status}`);
}

if (newState.status === AudioPlayerStatus.Idle) {
console.log('Audio finished playing!');
player.stop();
connection.destroy();
}
});

if (resource) {
player.play(resource);
console.log('Playing audio...');
interaction.reply({ content: 'Playing audio', ephemeral: true });
} else {
console.error('Failed to create audio resource.');
interaction.reply({ content: 'Failed to create audio resource', ephemeral: true });
}
const resource = createAudioResource('https://cdn.communitydragon.org/15.4.1/champion/gnar/champ-select/sounds/choose');

const connection = joinVoiceChannel({
channelId: interaction.member.voice.channel.id,
guildId: interaction.member.voice.channel.guild.id,
adapterCreator: interaction.member.voice.channel.guild.voiceAdapterCreator,
});

const player = createAudioPlayer();
connection.subscribe(player);

connection.on('stateChange', (oldState, newState) => {
console.log('Voice connection state changed from', oldState.status, 'to', newState.status);

if (oldState.status === VoiceConnectionStatus.Ready && newState.status === VoiceConnectionStatus.Connecting) {
connection.configureNetworking();
}
});

player.on('error', (error) => {
console.error('Audio player error:', error);
});

player.on('stateChange', (oldState, newState) => {
if (oldState.status !== newState.status) {
console.log(`Player state changed from ${oldState.status} to ${newState.status}`);
}

if (newState.status === AudioPlayerStatus.Idle) {
console.log('Audio finished playing!');
player.stop();
connection.destroy();
}
});

if (resource) {
player.play(resource);
console.log('Playing audio...');
interaction.reply({ content: 'Playing audio', ephemeral: true });
} else {
console.error('Failed to create audio resource.');
interaction.reply({ content: 'Failed to create audio resource', ephemeral: true });
}
9 replies
DIAdiscord.js - Imagine an app
Created by Sam on 2/24/2025 in #djs-voice
Discord voice doesn't play remote audio on linux
I'm using discord.js v14.16.1 with discord.js/voice v0.17.0 and discord.js/opus v0.9.0
9 replies