AceCentre / AACSpeakHelper

Copies the pasteboard. Translates to defined lang, Reads aloud and replaces pasteboard with translated text
https://docs.acecentre.org.uk/products/v/aac-speak-helper-tool/
MIT License
0 stars 1 forks source link

Support NLLB translation #41

Open willwade opened 1 week ago

willwade commented 1 week ago

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

acerjay commented 1 week ago

how many minute it will take to load? we could load this in background using threading if possible.

willwade commented 1 week ago

a good 10-15 seconds - maybe longer on a poor CPU device (which is likely)

acerjay commented 1 week ago

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.