Fiddlekins / podbot

A Discord bot designed to record voice chat audio, aimed at recording a specific podcast
82 stars 16 forks source link

Potential fix for your audio receiving #22

Closed Olical closed 5 years ago

Olical commented 5 years ago

So I wrote a voice activated assistant in Clojure akin to "ok google", I had similar issues where audio wasn't being received in certain regions, I reported it to Discord but they told me they don't help with bots :upside_down_face:

I saw your project recommended in my GitHub discover section and then noticed your note about the same bug as I saw. So I found a workaround and I'm not sure if you're aware of it, I don't think many people are.

https://github.com/Olical/snowball/commit/2df16192172f5b7b645939fe0c1b09a38c442b4b#diff-1ed40cc21c2b1c7f02aa6adaa9e64c02R43

I just send a tiny blip of audio (anything will do) on channel join, this fixed it for me. It now consistently receives audio.

I hope this helps!

Fiddlekins commented 5 years ago

Thanks for the heads up, but I was actually aware of this workaround already. The discord.js framework that this bot is built on has the workaround implemented too, so at this point issues with it not recording properly seem to be caused by something else.

Olical commented 5 years ago

Ah okay! Well best of luck to you then 😅 interesting that the library implemented the hack too.

On Thu, 21 Mar 2019, 18:04 Fiddlekins, notifications@github.com wrote:

Thanks for the heads up, but I was actually aware of this workaround already. The discord.js framework that this bot is built on has the workaround implemented too, so at this point issues with it not recording properly seem to be caused by something else.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Fiddlekins/podbot/issues/22#issuecomment-475341620, or mute the thread https://github.com/notifications/unsubscribe-auth/AATPXacAKOpAOAWq0vU4OwyglbU1H0-gks5vY8m9gaJpZM4cBuoW .

Fiddlekins commented 5 years ago

Yeah, by the time I heard of it they'd already added it.