No Audio Is Played
Hello! I'm new to using
@discordjs/voice
so I'm hoping I'm just missing something simple.
I'm trying to get my bot to play a local audio file within voice. The bot joins the channel, but doesn't make a noise.
This is the relevant code:
I was wondering if anyone could point me in the direction of the cause? The bot is auto-pausing so I believe it is do with the resource. Thank you!
discord.js@14.7.1
@discordjs/voice@0.14.0
node v18.13.030 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Maybe you don't have to unpause the player
because you have already set up required code block of u auto-paused player
Sorry I'm not quite sure I follow what you mean?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I meant you don't have to write player.unpause()
and if you want to do that, you have to listen event that PlayerStatus.AutoPaused event
and
this solve problem that recently changed
so you don't have to unpause the player
right I see, let me have a try
maybe this wont't work
please check the audio path is correctly
Yeah the audio path I've checked, I also tried it with a URL to an mp3 file on the web
Ahh I see
Could you disable debug mode of the player?
Disable, sure.
I just tried removing the
unpause()
but no luckI think so
So try again with
debug
turned off and no unpause()
yeah
No difference unfortunately....
Did you install dependencys?
Such as disrdjs/voice or opusscript or sodium or tweetnacl etc