not joining voice channel
```js
const { Client, GatewayIntentBits } = require('discord.js');
const { joinVoiceChannel } = require('@discordjs/voice');
const client = new Client({ intents: [...
Getting amplitude value from pcm stream
Hey guys. I am trying to get an amplitude value from my live pcm stream but very stuck. Code below
How te get buffer from opusStream
Hey guys. I was able to create an opus stream from voice
```
connection.receiver.speaking.on('start', userId => {
if (!connection.receiver.subscriptions.has(userId))
{...
How can I change the volume of an Audio Resource playing with discordjsvoice?
How can I change the volume of an Audio Resource playing with discordjs/voice?
Getting amplitude from opusStream
Hey Guys. I am trying to get an amplitude or volume from an opus stream. I would like to figure out if a person is yelling or whispering.
No idea where to start. I tried using OpusEncoder.decode with data from opusStream but i don't get any usable information out of it....
Radio stream don't start with inline volume
When I play a music with a different format than
opus
```js
let resource = createAudioResource(stream.stream, {
inputType: stream.type, // different "opus"...Receiving and playing back voice
Hey Guys currently trying to have my bot join a voicechanne, start receiving audio and then playing that audio back.
I feel like it's not staying subscribed......
After several hours of operation my bot does not want to launch the radio. Do you have a solution?
```js
player.subscribe(serverQueue.connection);
player.play(resource);
...
A function that can show bot ping connection (Voice Channel)
Is there a way to create a bot command that can show us the bot ping connection when the bot is in a voice channel? I don't ask or mention about Websocket or API latency.
member presence is undefined
I am trying to make a discord bot that moves you to a channel based on what game you currently play. The only problem is that the member.presence always returns undefined when the member is playing or when hes not. But i cant figure out how to let it give me a console output with the game the member is playing.
Opus wont install on Termux environment
Basically im trying to make a live transcript bot using VC but I want to use Termux for the host. I just get a whole load of warnings then
Error: \
make` failed with exit code: 2`DJS-voice Required Packages Not Found
I have installed sodium-native using
yarn add sodium-native
and @discordjs/opus via yarn add @discordjs/opus
but despite doing this, for some reason it is still not recognized by @discordjs/voice. What am I doing wrong?Problem with my radio bot
Hello to everyone!
Recently I changed my vps offer for something in the same performance as my old one but for less money, the server is in ubuntu 22.04 like the old one, all is installed the same, same version of npm and nodejs.
When I start my bot, it turns on but if I do the command /radio-other for example and I choose a proposed radio, the bot puts itself well in the voice room but does not play any music, which is annoying, I authorized the range
50000:65535
in udp output on my vps thinking that it could come from there but it does not change anything, I tried to reboot the server or the firewall by testing but it always does the same thing....dynamic volume levelling
i made a bot that plays music in a VC from mp3 files. unfortunately their volumes are all over the place. has anyone made it so their bot adjusts the volume automatically so they're all the same?
voiceState is undefined
```
client.on('voiceStateUpdate', (oldState, newState) => {
voiceClient.startListener(oldState, newState);
console.log(voiceClient.getUserData(client.guilds.cache.get(guildID).members.cache.get(newState.id)))
})...
Good way to get the progress of the current song?
Is there a good way or do I have to keep track of it myself?
not playing audio
```js
const { joinVoiceChannel, createAudioResource, createAudioPlayer } = require("@discordjs/voice");
const connection = joinVoiceChannel({
channelId: state.channel.id,...
My bot take a lot of seconds to start playing the music
HII
```js
const connection = joinVoiceChannel({
channelId: channel.id,...