How do I even begin to do this
I want to do this but it's all to hard to understand I don't really want to use ffmpeg if anyone wants to give me a more simple tutorial please do
Say smthing in vocal to text.
Hi
I want to keep the text that i said in vocale with this code : ```js
joinVoiceChannel({
channelId: message.member.voice.channel.id,...
I have a question. Why doesn't my bot turn on music if there are no errors and it is connected?
```js
const player = createAudioPlayer();
const resource = createAudioResource('/root/Alesha_test/src/music/Розовый фламинго.mp3', { inlineVolume: true });
resource.volume.setVolume(0.5);
player.play(resource);...
Voice memory leaks
so i am trying to find an optimized way to handle multiple users speaking, since constanty using .subscribe on speaking.on("start") kinda causes memory leaks, my idea is to just once initialize .subscribe and constantly listen to a user (saves to array of buffers) (with their permission ofc, have command for that), and to then use speaking.on("start") and speaking.on("stop") to cut recording in exact piece (start - clear array, stop - turn into mp3, clear array)
Rate Limit
i have a website making requests to the /api/users/@me/guilds/{guild.id}/member url and i keep getting rate limited. no way im making 10k requests. Any idea why??
Problem with reconnecting to voice channel and resuming of audio.
My internet connection is not stable and when lag spike is appear, i catch the disconnect from Websocket (i listen ShardDisconnect, ShardResume events). So i want to make "reconnect" when ShardResume is triggered.
This code i use when iterate through all existing players.
But i am stucking in signalling state and i dont know why...
Error & Not able to seek
I got a problem, I've been trying to search how I can seek an audio on discordjs/voice, found that it was with ffmpeg, okay, but I tried everything and it always stops after trying to seek.
```txt
And also, I got an error from discordjs/voice
file:///.../node_modules/@discordjs/voice/dist/index.mjs:1246...
Check whether resource is valid
Is there a way to check whether a resource is a valid audio resource?
"Could not extract stream for this track" Err
Yesterday I tested some things from my bot, and today it just isn't working anymore the music part of it. Today I tried to go back to his version, and nothing works or stops giving the error.
Code:
` results.playlist
? queue.addTrack(results.tracks)...
Fetch URL from audio resource
Is there a way to fetch the URL from an audio resource? I'm playing a radio station with my bot.
When the bot play AudioResource as first time, it will finish immediately
Just same thing. What's going on?
"Cannot perform IP discovery - socket closed"
getting this error after leaving the bot on for some time
```
file:///D:/musicbot/node_modules/@discordjs/voice/dist/index.mjs:286
this.socket.once("close", () => reject(new Error("Cannot perform IP discovery - socket closed")));
^...
Connecting a specific client to a voice channel
Hello, I'm trying to make a distributed music bot service for a single guild. Long story (https://stackoverflow.com/questions/75860115/is-there-a-way-to-connect-a-specific-discord-js-client-to-a-voice-channel) short, I've logged in several other clients I'd like to have connect to a voice channel when a user uses /play. The main bot that receives the command runs
```js
const channel = interaction.member.voice.channel;
const { joinVoiceChannel } = require('@discordjs/voice');
const connection = joinVoiceChannel({...
Core Dependency showing different than a version number
Hi,
Trying to port my bot over to Ubuntu, it works with zero issue on Windows 11, it doesn't seem to want to get the radio station anymore on Ubuntu for whatever reason, but again works fine on Windows, I did a fresh npm install, there is nothing that should be causing issues on Ubuntu, nothing fails during npm install... The only thing I can see is my @discordjs/voice version is not showing a version number, just [VI]{{inject}[/VI] I don't know if this is normal?
Any suggestions?...
Question about connection.on
When a voice connection is destroyed, does the connection.on method get destroyed as well? Because I don't want to overload the bot, and I want to create a new connection.on method when creating a new connection.
Play command
I was making a play command
``` await interaction.deferReply();
const search = await ytse(given_song);...
Cannot join voice channel
I am rewritting my bot from DJS v12 to v14. I started by writing a simple music bot that would play a youtube link using ytdl-core. But when it tries to join a voice channel it just doesn't and then it is unable to subscribe.
I believe it may have something to do with the voice adapter but I am not sure how that works.
Gateway intents are enabled, and I did manage to make it join using the discord-player package but that package is way beyond my understanding....