brad95411
DIAdiscord.js - Imagine an app
•Created by brad95411 on 1/6/2024 in #djs-voice
Audio duplication issue
Interesting, either way, at least the problem is gone. Thanks again!
8 replies
DIAdiscord.js - Imagine an app
•Created by brad95411 on 1/6/2024 in #djs-voice
Audio duplication issue
Qjuh, I think I've fixed it but I'm confused as to why it's fixed...
The first attempted fix, at line 138 (https://github.com/brad95411/breadbot-public/blob/develop_channel_sight/breadbot.js#L138) is to prevent another "start" listener from being added, this reported nothing in the log (either on the console or in the DB, winston is set up to go to both right now).
The second attempted fix, and the one that worked, at line 140 (https://github.com/brad95411/breadbot-public/blob/develop_channel_sight/breadbot.js#L140) is to prevent another AudioReceiveStream from being created when the user ID already exists in the subscriptions map. This did ultimately log when it was trying to double (or even triple or quadruple) up on the subscriptions, and the audio once coalesced into one single mp3 using my breadmixer Python script didn't have the echo effect like it's had before.
What I don't understand here is why would a map (specifically the subscriptions map in VoiceReceiver) allow more than one of the same key (the user ID) at all, or why the "start" event is being triggered in such close proximity that the old AudioReceiveStream isn't closing before the new one is starting.
Even if you don't have any ideas, I appreciate the help! I'll mark as resolved regardless in a day or two after of done more than one 5 minutes call to make sure everything is ok.
8 replies
DIAdiscord.js - Imagine an app
•Created by brad95411 on 1/6/2024 in #djs-voice
Audio duplication issue
I like suggestion 1 because it may actually be the issue, I've checked my log table and I'm having some weird issues with checking for an existing call ID in the DB it seems. In the midst of a C++ project at the moment, I'll switch over in a little bit and see if I can sort that issue and see if it fixes the problem. Thanks!
8 replies
DIAdiscord.js - Imagine an app
•Created by brad95411 on 1/6/2024 in #djs-voice
Audio duplication issue
In one guild yes, in the other no. The bot currently lives in a guild I have for testing (which has one Voice Channel), and my fiance's guild (which has several) ,because her guild has much more activity then mine. The bot exhibits the same behavior in both guilds.
Note that at no time during testing has the bot been in a guild that has multiple VC calls going at the same time (because obviously the bot couldn't join more than one VC at a time).
8 replies
DIAdiscord.js - Imagine an app
•Created by brad95411 on 1/6/2024 in #djs-voice
Audio duplication issue
8 replies
DIAdiscord.js - Imagine an app
•Created by brad95411 on 1/6/2024 in #djs-voice
Audio duplication issue
package.json has all dependency versions
https://github.com/brad95411/breadbot-public/blob/934fa4d37f62af83ee6e988c05156e8fdb7350b3/package.json
Node version: 16.18.1
8 replies