Player State = idle
Why does the track ends automatically after some time of starting. It's a live stream url.
It plays fine for few secs/mins then track ends usually like idle....
No audio on Windows 11 when playing mp3 file
(following the official guide in https://discordjs.guide/voice/audio-resources.html)
I was setting a simple command for playing an .mp3 file (readed that FFmpeg can handle it), but no sound is heard in the voice channel. The bot can join the channel without any errors and load the file, but it 'pauses' the music the instant it joins. I also tried with other file types like Ogg or the recommended Opus versions. Nothing worked. I made all the code in the command file (i thought it was okay and didnt require to made changes to the main.js file).
The bot has admin permissions just in case....
RangeError: offset is out of bounds [@discordjs/opus]
Gathering a RangeError when attempting to play a shoutcast live stream [AUDIO ONLY], the bot has been playing stations like a charm for the past 7 months with no issue and recently arised, not sure what happened and even checked via ffmpeg stats and attempted to see the connection but it looks the same, 48000hz. Looks like its for buffering although not sure what the functionality behind it does at all in order to attempt to manually fix it.
```js
[ UNCAUGHT EXCEPTION ] → RangeError: offset is out of bounds
at Uint16Array.set (<anonymous>)...
Inline Volume not working after starting to play the resource
Hey, I have a problem.
The inline volume seems to not work after playing the resource. It was working before but now it doesn't work anymore.
Here's the code : ...
Am I missing something completely?
Bot will join voice channel but wont play music.
```js
const {
SlashCommandBuilder,...
No audio on Ubuntu 24.04
Hey everyone. I Have installed the newest versions avaliable basically and ubuntu does not like npm install @discordjs/opus no idea what i missing.
No music playback on arch linux.
Hey I'm on a arch linux pc, and when I try to do playback of an url the bot just joins the voice channel, goes into Playing Status, and after like 100ms it goes back to idle. The thing is the exact same code works perfectly fine on my debian server.
I tried searching in the web and also asked GPT, but after 3 hours of no result I'm asking here....
Trying to make my bot play .mp3 for directory
Hi ! My bot is successfuly doing everything exept playing any sound :
If anyone have an idea .. 🙂...
Error with createAudioResource()
hey, i would like some help for my discord bot, i have been trying to code music command to play music in voice channels, but i am encountering an issue, and its been 11 hours since i have been trying to fix it
Query
How to update volume of a running audio track also to seek it?
I checked out the docs, didn't help me....
Audio Issues
```js
if(!args.join(' '))
return message.reply("Please type song name.");
let api = require(process.cwd()+'/structures/api')...
let api = require(process.cwd()+'/structures/api')...
Audio not playing despite properly retrieving URL to audio. No errors.
I'm trying to play a song through a URL (not YouTube) and despite the URL ending with
.ogg
(i even tried with .mp3
), audio isn't emitted. There is no errors or anything alike, it just doesn't play. What do I do please? I have installed FFmpeg
, @discordjs/voice
and @discordjs/opus
.
(Code will be in the comments because it's too long)...Not emitting audio received from websocket (webm opus)
I'm trying to make a voice bot PoC that takes browser audio stream (webm opus) and sends it over websocket to be spoken into a channel via the bot. I have the stream working with the website and the server, but the bot is not emitting the audio in the channel. I see the following state transition logs
```
read 16384
[08:43:02.268] DEBUG (17160): got interaction: join-voice-channel
[08:43:02.269] DEBUG (17160): got join-voice-channel for channel: 1323318616145264651...
Add FFmpeg Args when creating an audio resource
Hey,
I would like to know if it's possible to parse ffmpeg args to the ffmpeg conversion when creating an audio resource.
Like : -af aresample=48000,asetrate=48000*1.25...
My bot doesn't play music sound
I tried several ways and still my bot is not playing the music sound on discord, I will send how my pathetic code is:
```ts
export async function playYoutube(message: DiscordMessage) {
if (message.author.bot) return;...
IP discovery - socket closed
Yo guys i have this error on my cmd without this my bots work but sometime when i try to play a music the bot leave the channel then reconnect without this bots works perfectly
```
[Error_Handling] :: Unhandled Rejection...
IP discovery - socket closed
```
[Error_Handling] :: Unhandled Rejection
Error: Cannot perform IP discovery - socket closed
at Socket.<anonymous> (C:\Users\Administrator\Desktop\Jaz-ceo-Music\Desktop-edit\Jaz Music\node_modules@discordjs\voice\dist\index.js:373:46)...
Commands fail to load / refresh if I require client
I'm messing around with discord.js and trying to build a music bot that plays songs off deezer. Though, I've run into an issue while trying to implement a queue system in my eplay function.
If I leave the line:
const client = require('../../src/index.js');...