Discord voice doesn't play remote audio on linux
I have a weird behavior where playing audio from an URL works on my windows PC, but doesn't on my linux server.
Basically I'm trying to play audio from this url:
https://cdn.communitydragon.org/15.4.1/champion/gnar/champ-select/sounds/choose
After adding logs I realized that the audio player's state was changing from autopaused
to playing
and then from playing
to idle
almost instantly
I tried downloading the audio file locally and them playing it and it works fine.
I'm using Amazon Linux on my EC2 instance.4 Replies
- What are your intents?
GuildVoiceStates
is required to receive voice data!
- Show what dependencies you are using -- generateDependencyReport()
is exported from @discordjs/voice
.
- Try looking at common examples: https://github.com/discordjs/voice-examples.
- 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!I'm using discord.js v14.16.1 with discord.js/voice v0.17.0 and discord.js/opus v0.9.0
I've created a test command here:
can you try using StreamType.Arbitrary
I tried that and it didn't fix the issue
Here's the report:
I will check if this fixes the issue
It did not fix the issue. Here's the new report with the updated version: