11 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!yes
Hi, and actually I have a solution for this. Could you wait a little bit?
Sure
voiceConnection can be replaced with d.js voiceConnection class
and you must join the channel while not deafend
bot*
and you have to download vosk model and put it in /vosk-model
and creating rec folder is also needed
If you not want to use vosk, you can use Google STT instead
Cant i exchange a buffer directly with out having to save ?
yeah of course u can
and the above code is not needed
cuz in the code we do not write any to disk
mainly, it receives PCM audio, and passes it to prism media's encoder to convert it to wav stream and passes it to vosk (voice recognizer) and receive the final result
Avoid relying on IO as much as possible, as it's slower than most other operations
To read the file later it will end up creating a stream, a buffer
Alright I will try when I will be free