Audio recording stream
Hiya, I was wondering on how you now create audio streams? I only know is as
connection.receiver.createStream(message.member, { mode: 'pcm', end: 'silence' });
I want to use it so I can record the voice chat.
Thanks!...Bot dont Play audio
Hello my bot dont play but i dont know why
```
const voiceChannel = interaction.member.voice.channel;
const connection = joinVoiceChannel({
channelId: voiceChannel.id,...
Voice Connection Issue
So, the bot joins the discord voice channel, then displays this after 15 seconds and then doesn't do anything.
Node Version: V10.24.0
DiscordJS Version: 12.5.3
I can post the index.js in here if needed...
wait for bot to play audio
First time working with it,
I have a cron job running eery 5 minutes. In the callback, the bot fetches an array and loops over it. Each array has a mp3 and a channel id. Now i want to run each mp3 in its own channel.
Scenario:Bot runs the join function, a connection is created. It then listens to ready event and create a player to run audio on the connection.
...
How do i close a receiver subscription (opus stream)
setTimeout(() => this.connection.destroy(), after);
this.emit('stop-listining-stream');
console.log(this.opusStream);
return this;
...
the receiver subscription (opus stream) haves the end method = 0
createListeningStream(usersIds, writeStream) {
const receiver = this.connection.receiver;
this.opusStream = [];
// console.log(usersIds);...
Bot stops playing when rejoining another channel
My bot plays in channel1. He uses
connection.disconnect()
to leave a voice channel, but the connection still exists. After using connection.rejoin({ channelId: channel2.id })
in order to join another voice channel, the bot doesn't play the sound of its subscribed player anymore. But the player is playing the music. What's the solution?Voice receiver doesn't pick up soundboard sounds
I have a pretty fancy discord bot that uses a voice receiver to pick up audio from users.
const audioStream = getVoiceConnection(guildId).receiver.subscribe(userId, { end: { behavior: EndBehaviorType.AfterInactivity, duration: 100 } });
Is the very very very simplified version of it I suppose....addition
part of index.js
```client.on('interactionCreate', (interaction) => {
if (interaction.commandName === 'add') {
const num1 = interaction.options.get('first-number').value;...
Retrieve voice channel reference from voice connection
I'm trying to deal with the client being dragged to a different channel.
I'm using code very similar to the example in the docs with dealing with re-joins and that works, but I also store a reference to the original voice channel.
I would like to update that reference, but I'm not sure how to retrieve it. I only have the voice connection state and voice connection itself...
Audio Resources immediately goes from "playing" to "idle" despite having NoSubscriberBehavior.Play
```Core Dependencies
- @discordjs/voice: [VI]{{inject}}[/VI]
- prism-media: 1.3.5
Opus Libraries...
Check if user is banned
I've checked online etc but can't find it
I'm trying to make an unban command but when the user isn't banned and it's ran, it crashes the bot, so I'm trying to make it so it checks if the user is banned, however, I can't find out where to do that.
i tried this:...
Cannot perform IP discovery
Is there a way to solve this issue without changing firewall of something?
Error: Cannot perform IP discovery - socket closed
By the way: for some reason, after a few trials the bot just starts....cannot seem to download @discord.js/opus
Node v12+, Python 3+, and Microsoft Build Tools 2017+ i have already installed it. err https://sourceb.in/l5S3aPNIEn
Problem saving audioBuffer to file - whisper api
Hi,
how can i convert the audioBuffer into a e.g. wav file?
I want to use whisper for spech regognition....
Bot joining voice channel but not playing audio
Hi everyone. I am making a soundboard and while the bot is successfully joining the voice channel the audio file is not playing. Here are my versions
+-- @discordjs/[email protected]
+-- @discordjs/[email protected]
+-- @discordjs/[email protected]...