How can I have a "real time conversation" as a bot?

Hi, I'm trying to pretty much have a real-time conversation with a bot (powered by AI), and I'm trying to figure out how I can really do this. Maybe I can do it by voice activity (like the green bar) or by sensitivity? Please let me know for ideas! Would be amazing.
7 Replies
d.js toolkit
d.js toolkitā€¢2mo ago
- What are your intents? GuildVoiceStates is required to receive voice data! - Show what dependencies you are using -- generateDependencyReport() is exported from @discordjs/voice. - Try looking at common examples: https://github.com/discordjs/voice-examples. - 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! - āœ… Marked as resolved by OP
acatto
acattoā€¢2mo ago
like how I can listen to the user, it's basically having a conversation in vc like any other person would, but instead of it being a person, it's just an ai i'm trying to get data to feed it to speech to text so that i can actually generate things the part i need help with, idk if i should measure it with any api related things or just having to tell by the voice sensitivity because i don't really know every single spec of the discord docs, so i can't really tell... i got everything else covered just that i don't know how to get data to feed the speech (in real time, then at the end of what they said to actually feed it to the model) i wasn't being clear enough I want to recognize when the user starts speaking, stops speaking and then save it to a file wait you literally oh does this literally do what i said oh my apolocheese i'll try it out also is there a .js example bc i haven't migrated to ts yet :kek: šŸ”„ thanks
acatto
acattoā€¢2mo ago
also uhhh
No description
acatto
acattoā€¢2mo ago
do i not need to do npm i @discordjs/voice n that's pretty much it
acatto
acattoā€¢2mo ago
why is it non-existent
No description
acatto
acattoā€¢2mo ago
oh nvm i found it again my friend deleted parts of voice idk why wait no what im tweaking i may be silly but it's not there?
acatto
acattoā€¢2mo ago
i manually put it in there
No description
Want results from more Discord servers?
Add your server