call translation
I am creating a bot that is capable of:
1) Recognize what the user says
2) Translate what the user said into a certain language
3) Clone the user's voice
4) Repeat what he had said in the translated
In order to be able to communicate with my friends who speak other languages more easily without having to learn the lenguajes.
In this case, my question is, is there any way for the bot to collect audio from a specific user? Example, if there are 5 users talking, the bot will only recognize the audio from 1 user, Or from 2 users individually, so you can translate and identify who each phrase belongs to.Since I have not seen any way to filter the user's call Individual.
On the other hand, knowing what a specific user says will also allow the bot to monitor that they do not have discussions or say bad words in the absence of moderators, And thus be able to punish people as they deserve respectively.
The project is a bit small, but I hope you can answer my question, thank you very much in advance
3 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!
- ✅
Marked as resolved by OP1. make it opt in, recording user voice can get you in tos and legal trouble
2. listen to speaking event on an audioplayer and subscribe to the user id
3. transcribe it with whisper rtt (might need to recode the audio) [or something similar]
4. translate
5. play a recording of this transcribed translated speaking and figure out the logistics of cloning the voice later
Thank you so much :4Stars: