informaweb
DIAdiscord.js - Imagine an app
•Created by informaweb on 7/15/2023 in #djs-voice
audio file that does not play from the beginning, skips and stops after a few seconds.
Hello, I have a problem using discord.js and discordjs/voice
I want to play audio files from my server (locally where the discord bot is)
The bot connects well in voice, the reading of the file is done well too. But playback does not start from the beginning of the audio file.
The music skips and after a few seconds of listening, the music stops.
I can't fix this.
I tested several way of doing like using FFmpeg but it didn't change anything. I tested with discord-player but it didn't change anything.
I am using NestJS to create the discord bot.
I have already been able to get music streaming to work despite small jumps at times.
I can't figure out where the problem is coming from. Even looking at the logs or asking chatGPT to help.
Thank you for your answers.
I am French, I did the translation with google. You can answer me in French or English.
[email protected] /srv/apps/discord_oh_my_geek
├── @discordjs/[email protected]
├─┬ [email protected]
│ ├── @discordjs/[email protected] deduped
│ └── [email protected] deduped
└── [email protected]
9 replies