niedev / RTranslator

Open source real-time translation app for Android that runs locally
Apache License 2.0
6.66k stars 499 forks source link

Custom models #80

Open NDSTHEBEST opened 1 week ago

NDSTHEBEST commented 1 week ago

Hi, your app is verrrrrry good. Unfortunately, one feature is missing: custom models.

It would be amazing if the user would be able to import his own custom models (whisper and others). Maybe even set specific ones for specific languages.

Also, when I install the app on my family phones, it is far down in performance compare to mine. Maybe custom models would solve that. Buy honestly I feel like the app needs to have a bunch of performance mods, with custom models.

This comes from a tech guy, not a dev, so I would to hear what do you think.

niedev commented 1 week ago

Hi, thank you!

I have not implemented the possibility to use custom models because the inference of different models happens in different ways, many things are standardized but not all, for example:

I could have the user specify some of this information in the settings, but they are hard to find (I often had to read source code to find them), also it would be quite complex to implement, and it would not solve the Walkie Talkie mode issue.

The last reason is that I optimized the models themselves by separating some parts and eliminating others, and these optimizations would not be possible for custom models.

However, in the future, I will definitely implement the option to choose other models optimized by me (but not custom ones).

NDSTHEBEST commented 1 week ago

I now tried it again on my family member phone, just now with version 2.0.0. While last time on 2.1.1, it was super slow and did not work. Now it's working on that version with just a little hiccup. Weird

niedev commented 1 week ago

Yeah, the 2 versions use the same models. It's probably because the old GUI is a little lighter, and since that phone CPU is at the limit due to running the models, even that slight change makes a lot of difference. What is the phone model?