Possible to modify buffer as it is streaming?
I'm creating a bot to play a preset library of sound effects. Currently only 1 sound effect can be played at a time. My desired behavior is to:
- Combine the buffers of two sound effects so that they overlap, with the 2nd sound effect being overlaid at the current playhead position of the first
- Begin playing this new buffer instead of the old one, without stopping playback
Is this possible? Is there a way to handle each chunk of the stream manually?...
Voice Question
how do i play youtube using @discord.js/voice or whatever it is called. most of my code doesnt work. im using vsc ( visual studio code)
Playing sounds from blob or URL
I'm trying to integrate my bot with SupaBase. I tried using passing to
createAudioResource
either URL to to that resource or passing blob but it's not working.Discord Speech to Text Bot
https://gist.github.com/tyliec/ddcb3dd66328f8aa8e7384e0789ea01e
https://github.com/AlchemiistCreative/discord-stt-example
https://github.com/vadimkantorov/discordspeechtotext
Every single one of these is outdated af
Please does someone have a non outdated one and for some reason when I try to use Opus it causes npm related issues. ...
bot stuck in signalling state
trying to set up a music bot - cant get it to join my VC
djs 14.15.2
/voice 0.17.0
Intents seem correct:...
Reduce playing audio latency
Hi, I'm currently trying to convert an incoming audio stream (mulaw) to raw opus bitstream. Using ffmpeg and inputType as raw, I'm able to achieve it, but that introduces 3s of latency. Unfortunately, the incoming stream is real-time data, so this latency has to be reduced.
I did manipulate around with ffmpeg, and got it to play a quiet popping noise under 1s (ofc that only happens when the stream audio is very loud).
Here's my current ffmpeg setup (which doesn't work). Is there anything else I need to transform in stream for it to work?
```ts...
Not playing audio on linux machine
Hi i've a streange behavior in my script, on windows machine and on docker in the windows machine the audio is playied fine. When i try the same code in a linux machine it doesn't work, neither on docker in linux
Error installing @discordjs/opus
I've been trying to install @discordjs/opus with Bun 1.1.8 and also Node 20.1.3, but it always throws me the following error.
I notice that the command is trying to fetch a prebuilt binary that doesn't exist...
AudioPlayerStatus Stuck in Buffering State
Making another post in djs-voice after being directed here by another member
I have a bot that can play Audio and has successfully done so for the last while. I have two instances with their own Apps, a test bot and one run on a cloud server.
Both are running the following discord dependencies:...
Bot is not joining voice channel after executing function in voiceStateUpdate event
After I made a function that is responsible for automatically playing the radio when a user joins the channel, the bot does not join the channel at all despite the variables being correctly defined. Debugging showed nothing (I tried logging
connection, player, stream, resource
sequentially), however everything seems to be used correctly.
I am using almost the same code in the radio.ts
command which is responsible for starting the radio manually, where everything works correctly. The only thing that changes is adapterCreator
which I currently think is the problem in my function....joinVoiceChannel is not a function. But its in dependencies
This is there error I get
```
awash@awash-hp:~/Documents/code/JS/musicBot$ bun run index.js
Ready! Logged in as Player#9475...
Trying to play an audio file
Hello, I started a few days ago with discordjs, I have now tried to play an audio that I have locally, a lot of information is from discord 12 or 13 and in 14 I can't find much help, I don't know why the bot joins To the voice channel, the playing audio log pops up but it doesn't play any audio, I gave it all the permissions I would swear to the voice and when I put logs to catch errors I don't get that it is going at all wrong in reading
This is my replit repo
https://replit.com/@FranyxD/Zetydiscordbot?s=app...
Unable to play from external URLs on linux based systems
The bot cannot play from external URLs on linux based systems such as a vps like before but works perfectly on windows. The error was fixed by the developer of DisTube through a custom ffmpeg handler and he suggested to replace prism-media.
Audio Player and Voice Connection
Hello, Does the
player.stop()
removes and deletes the created audio player and it's resource
And i wanna know does the connection.destory()
removes the created audio player and it's resource as well?...Help
I'm very new to Discord.js, can someone teach me? I'm coming from Aoi.js and now I want to switch to discord.js.
Stop playing audio without voiceStatesUpdate event
Hello Is there have any way to stop playing the audio without
voiceStatesUpdate
event when the member left the voice ?On start playing audio event
Hello here is my code:
```js
const connection = joinVoiceChannel({
channelId: voiceChannel.id,
guildId: voiceChannel.guild.id,...