Live playback of audio coming from discord causes crackling issue
I want to play incoming discord audio directly in the speakers.
Here is my code so far:
```js
const connection = joinVoiceChannel({...
Playing a single audio
How can I write a code for the bot to join a vc and play just one mp3 and then leave? How can I do that?
I can't get the audio to start
I have the bot that connects to the voice channel but does not start the audio, I leave the complete code and some logs that the bot gives me.
After disconnecting once, audio starts audibly buffering
Here is part of my
/play
command:
```ts
const connection = joinVoiceChannel({
channelId: interaction.member.voice.channelId,...member.voice.channelId undefined on client ready.
hola senores, any reason why my bot can't "see" a member's voice channel data when it turns on? for example, the channel id is undefined until said user leaves and rejoins the channel. is this a caching issue? and if so, how can I update the cache immediately after turning the bot on? thanks in advance!
RTC region Null
https://cdn.uira.xyz/acoustic/uEPKgU.png
only happens when u select a automatic region aslong as u assign a region it doesnt show null any fixes?...
Type 'InternalDiscordGatewayAdapterCreator' is not assignable to type 'DiscordGatewayAdapterCreator'
```json
// package.json
"dependencies": {
"@discordjs/voice": "^0.17.0",
"@prisma/client": "^5.20.0",...
Trying to play a clicking sound effect in a voice channel, however I get this instead.
Hi,
My @discordjs/voice version is 0.7.5 and I'm having a slight issue with playing it.
I've tried to install ffmpeg by using
sudo apt install ffmpeg
, however, no luck.
Here's my playClickSound
function:...
how to set voice channel status?
i looked through the documentation and cant find a way to set voice channel status unless i missed seeing it
is there any way i can do this?...
need help with this code
Hey, I’m tryna make a bot that checks for a specific keyword within someone’s custom status and if they have the keyword, it gives them a role, and if they don’t, it removes the role. The code is semi working, it’s logging in the console every time someone changes there status but isn’t logging when it is the correct status. and removes the role even if it’s the wrong or right status.
AbortError: the operation was aborted
I've been getting this error for a while now (I'm on the latest DJS version 0.17.0 atm but I believe this has been occurring well before that). It appears to be occuring randomly, and I've only recently started potentially correlating it to a full bot crash for me. Any help is greatly appreciated.

what does this error mean?
```
C:\Users\SETUP GAME\Documents\project v6\VR community\node_modules@discordjs\voice\dist\index.js:362
this.socket.once("close", () => reject(new Error("Cannot perform IP discovery - socket closed")));
^
...
voice is playing on local but not on server
Hi Ive got a problem with this code:
```js
if(interaction.commandName === 'musicradio') {
const { createAudioPlayer, createAudioResource, joinVoiceChannel } = require('@discordjs/voice');...
YTDL AudioPlayer.play gives error
Hello! Trying to replicate a pseudo music bot from links with YTDL
The bot enters in channel, but then returns the error: Error: Cannot play a resource that has already ended.
Code:
```
var connection = voice.joinVoiceChannel({...
Bot plays audio sped up
```ts
const player = createAudioPlayer();
const connection = joinVoiceChannel({
channelId: channel!.id,
guildId: guild.id,...
Bot disconnects after rejoining.
I'm changing vc of my bot but it immediately disconnects after rejoining... how should i fix it ? I have enabled
GatewayIntentBits.GuildVoiceStates
Already
Random latency spikes?
Is something not optimized in my code? I'm trying to allow two server vcs to connect (by transferring the audio of one to the other) but sometimes it stops working for about 10 seconds then starts up again.
player not work
```js
try {
const VoiceConnection = joinVoiceChannel({
channelId: newState.channelId,
guildId: newState.guild.id, ...