Is it possible to create a bot that translates a person's speech in a voice channel into another lan

Hi everyone! Can you tell me if it is possible to make a Discord-bot that would record a person's words in a voice channel, translate them into another language and play back the translation? I can also provide my idea how such a bot would work. Thanks!
5 Replies
d.js toolkit
d.js toolkit11mo ago
- 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!
ThePedroo
ThePedroo11mo ago
Totally, you'll need the systems below: - Speech to text - Translator - Text to speech Or simply some system that translate the speech itself
Chipchilinka228-
Chipchilinka228-OP11mo ago
Yes, that's what I thought: one bot translates one way, and the other bot translates the other way. But how the bot will record a person's speech, I don't know yet. Is there any handy functionality for such a task? For translating voice to text, and then translating and converting it to voice and playing it back, I'm thinking of using ElevenLabs neural network or something else. If you know something that can help me with this, it would be appreciated!
ThePedroo
ThePedroo11mo ago
Djs/voice doesn't provide any tool that can be with traslating itself, however, you can listen to VC, and receive its opus voice data
ThePedroo
ThePedroo11mo ago
voice | VoiceReceiver
Attaches to a VoiceConnection, allowing you to receive audio packets from other users that are speaking.
Want results from more Discord servers?
Add your server