vilassn / whisper_android

Offline Speech Recognition with OpenAI Whisper and TensorFlow Lite for Android
MIT License
245 stars 39 forks source link

How can I not automatically translat #18

Open zhaoliwen opened 2 days ago

zhaoliwen commented 2 days ago

My voice input in Japanese is always automatically translated into English. How can I not automatically translate?

vilassn commented 2 days ago

Multilingual model support transcription and translation. For Transcription, it supports Any -> Any For Translation, it supports Any -> English

I see your requirement is transcription. But, the generated multilingual model in this git repo is for translation. For Transcription, you need to generate model.

You can find google colab notebook to generate model in one of the comment on this repo.

zhaoliwen commented 1 day ago

I use below webside generate whisper-base.tflite , but alway translatin to English. Is there any parameter that needs to be adjusted? https://colab.research.google.com/github/usefulsensors/openai-whisper/blob/main/notebooks/generate_tflite_from_whisper.ipynb#scrollTo=05QUPteUnXPL