Open willwade opened 1 week ago
how many minute it will take to load? we could load this in background using threading if possible.
a good 10-15 seconds - maybe longer on a poor CPU device (which is likely)
a good 10-15 seconds - maybe longer on a poor CPU device (which is likely)
Threading might solve this. Let's load this upon start up.
Its offline and good and a really broad range of languages. There are some wrappers to this
And some others. Look at pypi.
Downside though is it takes quite a while to load the model. So.. How will we do this?
We need to investigate whether we create a pipe service to pipe translation or TTS off to - then a calling exe to call the Pipe. Have a look at https://github.com/AceCentre/Correct-A-Sentence/blob/main/desktop/correctsentence.py and https://github.com/AceCentre/Correct-A-Sentence/blob/main/desktop/client.py
For essentials here. We would need to build an installer for this see likewise https://github.com/AceCentre/Correct-A-Sentence/blob/main/desktop/build_executable.ps1