Closed GuillaumeNachury closed 5 years ago
I just made a change to Discord.js very recently, can you try reinstalling all your modules - especially prism-media
- and tell me if this fixes your issue?
I just did a rm -Rf node_modules
and gave yarn
a run.
I still got the error, should a I use a specific branch ?
Could you try providing an absolute path to the audio file and see if that works?
Yes I already tried that using hardcoded value or via path.join(process.cwd(),"aaaa.mp3");
That's strange, maybe it's because your FFmpeg is pretty out of date? Could you try uninstalling ffmpeg-binaries, see if that fixes the problem. If it doesn't, try updating FFmpeg on your VPS. Tell me if that still doesn't work and I'll do some more investigation tomorrow.
Closing due to inactivity
i have the same problem opusscript crashes and it doesn't detect @discordjs/opus or node-opus
I'm trying to get my bot working on linux (
Linux vpsxxxx.ovh.net 3.16.0-7-amd64 #1 SMP Debian 3.16.59-1 (2018-10-03) x86_64 GNU/Linux
) but it seems that I can't play any sound file on this OS. It is working perfectly on my windows machine, so I guess the problem is not into my code.I'm using this dependencies :
Every time I try to play a file
voiceConnection.play('./aaa.mp3');
I get this errorI don't understand what this 'Please install node-opus or opusscript.' msg means since I do have node-opus as a dep.
Notice : I tried opusscript, but I got another error :
ffmpeg is installed on my vps :