SociallyIneptWeeb / LanguageLeapAI

Your Personal Multilingual AI Translator
MIT License
843 stars 171 forks source link

Is there any way to translate from JP to ES? #92

Open SsLeaf opened 1 year ago

SsLeaf commented 1 year ago

I know this was made for JP to EN, but i want to know if is there any way to translate between other languages, I know it can translate from any language to english changing the TARGET_LANGUAGE_CODE on .env, but what about translating any language to another one that isn't english? Let´s say for example, english to spanish, or japanese to french.

I would like to use this only with the subtitler

totoluto commented 1 year ago

It could be possible if you would make some changes to the code. The subtitler.py is currently using the Whisper and it's function to translate every from language to english. If you want to change the language it translates to then we need to change the part where Whisper translates it and make it transcribe. After that we need to get the trasnlation from either Deepl or Google.

So to answer your question. No, it's not implemented yet.