Rei-x / discord-speech-recognition

Speech to text extension for discord.js
https://npmjs.com/package/discord-speech-recognition
MIT License
56 stars 22 forks source link

Recognition stops after a while #49

Closed KamilDrozd1136 closed 1 year ago

KamilDrozd1136 commented 1 year ago

Hi, I used the code some time ago and everything worked fine, now the speech recognition works as if for a while after the bot joins the voice channel, after that it stops sending responses. After I disconnect the bot from the channel and rejoin it again it works again for a while

Rei-x commented 1 year ago

how long does it take before the speech recognition stops working?

KamilDrozd1136 commented 1 year ago

I think an equal one minute

Naozumi520 commented 1 year ago

Yes, I got this issue also

Update: It's more like it will be cut off. If you're playing audio in the speech event, you will notice the audio playback stop immediately, after that it's not responding anymore.

Rei-x commented 1 year ago

okay, this is an issue with @discordjs/voice package, you can read more here https://github.com/discordjs/discord.js/issues/9185

i will add a temporary workaround for this

Rei-x commented 1 year ago

should be fixed now in 3.3.1, check if it works for you

Naozumi520 commented 1 year ago

Yes, it works! Thank you. 😊