djs-voice

1170 threads · Page 8 of 24

Relay audio from a channel to another 22 messages
wicked aurora Hi, i'm creating a bot with discord.js v14 that has to relay the voice of an user in a channel to another channel in ano...
trying to install npm install opusscript libsodium-wrappers @discordjs/opus 3 messages
998946512144969748 998946620345434174
Help with discord js voice 3 messages
formal jackal ```js arsb!ceval let mod = require("@discordjs/voice") let player = mod.createAudioPlayer(); console.log(player) mod.joi...
how to fix error "Cannot performIP discovery socket closed" 9 messages
stoic drum Hello, I am getting the error below when connecting to a voice channel for a while. I don't know if there is any way to...
Player Auto-Pause 12 messages
rigid hearth I have this music bot and I want it to pause the playback if it's alone in the voice channel. I've succeeded in doing th...
TTS 2 messages
ivory ocean i want to create a simple discord bot, that will read user messages in specific channel and bot will use TTS in voice ch...
Automatically join voice channel 16 messages
gusty tartan when user click the text(see the attached image), should automatically join the voice channel Thank a lot
@discordjs/opus is not installing 3 messages
dire dew I tried sudo, reinstalling node and readding discord.js to my package.json, nothing works, I am using the latest node js...
Help with audio stream. 33 messages
kind temple Im trying to make a bot which would capture the incoming audio from a voice channel and play it back in realtime, how ca...
doubt about voice status 4 messages
kind temple whenever i create a connection with `joinVoiceChannel` why is the stauts sometimes "signalling" and sometimes "disconnec...
doubts about joinVoiceChannel 3 messages
kind temple hey so i have a server which hosts multiple bots at the same time and if i want to specifically use `joinVoiceChannel` f...
i can't install @discordjs/opus 8 messages
heavy merlin I try to install @discordjs/opus but i have this error Nodejs version : / 20.8.0 Windows 64 Bit Python 3.12 Discord.js v...
ffmpeg EAGAIN 22 messages
silver pasture ``` 23-10-2023 22:35:54 A: Error: spawn /home/container/node_modules/ffmpeg-static/ffmpeg EAGAIN at ChildProcess._ha...
How loop music queue? 1 messages
coarse summit ```js var channel = message.member?.voice?.channel; const connection = await joinVoiceChannel({ channelI...
998946512144969748
[commonjs] Unexpected token 4 messages
obtuse quiver Hi 🙂 I'm working on a Discord integration for Foundry VTT, and I'm having an issue with getting discord.js to play nice...
FAQ: Voice connection disconnects after a short time 0 messages
digital chasm ## Make sure you are using version [`0.18.0`](https://discord.com/developers/docs/change-log#voice-gateway-version-8-and...
After 40/50 seconds it automatically disconnects 6 messages
hearty path There is no errors in it, I'm using ` "discord.js": "^14.11.0",` & `"@discordjs/voice": "^0.16.0",` Node version: `v18....
Bot suddenly stops playing music 29 messages
glacial stone when playing bigger songs, bot suddenly aborts ```Error: aborted at connResetException (node:internal/errors:717:14)...
Trying to convert audio to different format 4 messages
inland python Hello, I'm facing with an issue. I'm trying to convert the `Opus` audioformat to `MuLaw`, but idk how to do this. Any i...
Recover audio and mute user 26 messages
golden pine Hello I would like to be able to record audio in a voice room (and if possible only record what a user defined by id say...
Is it possible to have 2 bots in voice channels in discord js? 11 messages
dreamy minnow I registered two clients. I attempt to connect each to a voice channel, and after the first bot connects, the second wil...
Get existing connection with endpoint, token and session 9 messages
hollow walrus Hello! I am currently working on a music bot which will have voice recognition capability i've gotten the music part to ...
The bot is stuck at the "connecting" state and not going to the "ready" state 4 messages
naive siren I am really sorry for reopening. I tried adding the debug console but wasn't able to identify the error, I was convinced...
The bot is stuck at the "connecting" state and not going to the "ready" state 5 messages
naive siren Hello, I am not really sure why the bot is staying in the connecting state and not moving to the "ready state" How do I...
Issues with getting an guild ID 6 messages
restive heart Hello! I'm trying to receive an guild ID using the @discordjs/voice package, but everytime I try to request it it return...
Get if audio is played in connection in other file. 2 messages
sharp garnet Hello, i have music bot with commands in separate files i want to see if audio from mp3 is played in other commands is t...
Local Audio Streams 9 messages
round falcon I've been trying for the last 4 hours to try and get local audio files or audio streams to work with djs and im still qu...
Question regarding djs/voice 6 messages
slow flax My Boss asked me if its possible to set User Agents in djs/voice but im not sure it this is a thing.
Error: Cannot find module 'C:\Users\rocko\Desktop\.ospreyMusic\node_modules\@discordjs\voice\dist\in 3 messages
unborn phoenix I have installed it but idk why its doing this with just const `{ joinVoiceChannel } = require('@discordjs/voice');`
Controlling volume 20 messages
unreal oriole suppose this is my code: ```js const resource = createAudioResource('songs/skibidi.mp3'); ``` how do i make this ...
Issue w/ Opus -> Ogg recording voice with prism-media@v2.0.0-alpha.0 - ERR_REQUIRE_ESM 9 messages
dreamy minnow I was trying to follow this example recording voice demo (https://github.com/discordjs/voice-examples/blob/main/recorder...
Bot don't play audiostream (shoutcast) 3 messages
rain hollow Hi, I'm trying to play an audio stream from a shoutcast server in my bot but Idk how to do it, this is the code Node V: ...
Bot joining but not playing 5 messages
muted osprey ```js const Discord = require('discord.js'); const { joinVoiceChannel, createAudioPlayer, createAudioResource } = requir...
bot not joining 9 messages
unreal oriole djs v14, voice 0.16 & node v18.12.1 i did try to console.log - here's my code: ```js if (message.content.startsWith('.vs...
Find music but don't play 3 messages
royal veldt ```js import { EmbedBuilder } from 'discord.js'; import { joinVoiceChannel } from '@discordjs/voice'; import { Default }...
Yet another "no voice" thread 32 messages
vale gate Hi, I'm trying to write my first Discord bot. I'm struggling with playing a sound in voice channel. I've read many posts...
998946512144969748
Audio not playing 5 messages
nimble needle The bot joins the vc correctly, but the audio is not playing. What am I missing? node v: v18.16.1 ; discordjs: 14.13.0
Fetch palyer from voiceConnection 4 messages
raven lynx Is there any way to get or fetch the player which a voiceConnection has subscribed?
Having an issue during installation 3 messages
fleet ridge https://hastebin.com/share/vivaluruqo.ruby Tried to look for other people who may have asked the same question and trie...
998946512144969748
Bot Joins Voice Channel but Doesn't Play Audio File (ogg) 18 messages
rich mountain I managed to get the bot to join the vc but it just sits there. Here's the code: ``` const resource = createAudioResourc...
Create a "radio" 2 messages
hearty marsh I'm trying to create a radio, or soundboard of sorts. A place where I can select the songs or sounds I want, and have it...
Trying to play a local wav file in a vc but it doesn't play more than a min. 10 messages
empty shuttle Trying to play a local wav audio file in a vc but it doesn't play for more than a min even though the actual file is of...
998946512144969748 998946620345434174
Script plays local files well but can't play url streams, why? 8 messages
steel wolf ```js const Discord = require('discord.js'); const { Client, GatewayIntentBits } = require('discord.js'); const client =...
Error [ERR_STREAM_WRITE_AFTER_END]: write after end 8 messages
unreal cedar write after end Error [ERR_STREAM_WRITE_AFTER_END]: write after end at new NodeError (node:internal/errors:372:5) ...
998946512144969748 998946620345434174
15 second pause when initializing Decoder 3 messages
covert fiber i am trying to use `@discordjs/voice`'s `prism-media` package to convert the data into pcm and i noticed that the first ...
The system does not work when the bot is on have voice channel and when someone enters the sound 59 messages
cunning quail When i put the bot in the voice channel with the command, the command does not work when someone comes or when someone e...
My bot doesn't play any sound, he has permission to speak and the intents 11 messages
burnt bronze My bot doesn't play any sound, he has permission to speak and the intents ```const { joinVoiceChannel, createAudioResou...
The guide also shows it this way but it doesn't open the mp3 96 messages
How can I use opus to make my bot playing a specific mp3. in a voice channel with the command /play 6 messages
digital arrow I want to make a bot playing specific .mp3 in a voice channel, like that : /play {name of the mp3} and he play it
998946512144969748
How to get the audioResource 31 messages
quiet warren I want to get the audioReasource to delete it, and i'm doing like this when it finish ```js const resource = createAudio...