SociallyIneptWeeb / LanguageLeapAI

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

Can I switch from "ENG to JP" to "THAI to JP" in voice_translator ? #82

Open tamto6666 opened 1 year ago

tamto6666 commented 1 year ago

Can I switch from "ENG to JP" to "THAI to JP" in voice_translator ?

Thanks in advance.

SociallyIneptWeeb commented 1 year ago

You can, but you have to change some of the code in src/voice_translator.py. At Line 64, replace eng_speech = transcribe(MIC_AUDIO_PATH) with eng_speech = translate(MIC_AUDIO_PATH, 'th')