Voice not playing
I've created this code and i'm sure the audioStream is correct but it's still not playing audio's
Discord bot wont play audio file(no green circle)
[email protected]
node v18.18.1
Im super new to discord js (started yesterday) , or even programming. Ik streaming from yt is not allowed and im want to play from local files that i have in my folder
...
Troubleshooting tips for AudioPlayer stuck buffering
Latest packages of everything, going through the cycle of
-> join VC and get a VoiceConnection object
-> create an AudioPlayer and do a VoiceConnection.subscribe() to the player
-> create a valid AudioResource with stream type "opus"
-> AudioPlayer.play(AudioResource)...
Set the custom activity of a bot in VC
With Discord adding custom activity statuses for people in VC, is there a way to do this for bots also?
Cannot find module @discordjs
Hey !
I want to play around with the voice library but I have this error
``` node:internal/modules/cjs/loader:599 throw e;...
``` node:internal/modules/cjs/loader:599 throw e;...
Full voice logging
Anyone knows how to make a full voice logging system that logs when an administrator disconnect a user and when a user disconnect by himself. By using audit logs, there is no difference between disconnecting yourself and being disconnected by an admin because only when an admin does it a log is created
User Flow Diagram for Music Bot AudioPlayer Behavior
Has anybody made or seen a flow diagram for music logic? I'm looking for something that totally documents the procedure beginning at the initial play call to building the AudioResource, handling of skips, pause, resume, reconnection/error handling (disconnecting bot, moving bot to different channel, connection loss, etc.), and a graceful exit.
YES, I have read the docs, but it'd be helpful to have something to reference so that I don't miss any important steps that are hard to debug. If nobody has a solution, I'll take one for the team and share my diagrams once I've built/tested my solution.
If this post is in the wrong category or has already been answered (I couldn't find a similar post), please kindly refer me to where I should go π...
Recording a user
Has anyone made something similar to a Discord bot that you can talk to in VC?
1. You say a message
2. The bot converts to text
3. Bot sends to API (e.g. GPT)...
Bot is silent in voice
The bot has worked in voice for the last few years, had to restart tonight because of different reasons and suddenly, the bot connects and really believes it's playing in voice, but is completely silent.
Bot Doesn't Start Playing (Green Circle)
Hey, Bot is joining to channel and bot has admin permissions but no sound
```js
const connection = await joinVoiceChannel({
channelId: "1249051760610246846",
guildId: "869927911526903828",...
Probleme Player
hello i have probleme my discord bot is good in local fille but in my vps he doesn't work
you know why ?
```
Error: Status code: 410...
The operation was aborted
My bot successfully connects to channels, then tries to await entersState(connection, VoiceConnectionStatus.Ready, 15e3); but for some channels it enters to the Ready state successfully while for others the following error is got:
AbortError: The operation was aborted
at EventTarget.abortListener (node:events:993:14)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:741:20)...
Possible to modify buffer as it is streaming?
I'm creating a bot to play a preset library of sound effects. Currently only 1 sound effect can be played at a time. My desired behavior is to:
- Combine the buffers of two sound effects so that they overlap, with the 2nd sound effect being overlaid at the current playhead position of the first
- Begin playing this new buffer instead of the old one, without stopping playback
Is this possible? Is there a way to handle each chunk of the stream manually?...
Voice Question
how do i play youtube using @discord.js/voice or whatever it is called. most of my code doesnt work. im using vsc ( visual studio code)
Playing sounds from blob or URL
I'm trying to integrate my bot with SupaBase. I tried using passing to
createAudioResource
either URL to to that resource or passing blob but it's not working.Discord Speech to Text Bot
https://gist.github.com/tyliec/ddcb3dd66328f8aa8e7384e0789ea01e
https://github.com/AlchemiistCreative/discord-stt-example
https://github.com/vadimkantorov/discordspeechtotext
Every single one of these is outdated af
Please does someone have a non outdated one and for some reason when I try to use Opus it causes npm related issues. ...