linuxscout / mishkal

Mishkal is an arabic text vocalization software

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import Mishkal to Android

linuxscout opened this issue · comments

We need to run Mishkal under Android, in order to use it to diacritize text before convert it to speech.
Mishkal is a pure python program,
How to run it under Android?

why not to use the web service instead?

We have already the web service. but we have not an android app.

When I read this "issue", my first intuition was: Eh, since a Web API already exists, why not just make calls to it? Something this:

  • Start a local web server(1) on the Android device (if you want it to work offline).
  • Create an Android app(2) that makes HTTP requests to the locally running web server to vocalize text.
  • It's probably not the best way to "port" the project to mobile but it should work.

NOTES

  • (1) Using QPython should do it.

  • (2) Write a native app in Java? Or just turn/port the Web interface into a native app using something like React Native or maybe Weex (VueJS's counterpart).

  • I know your GUI is built on PyQt and maybe this suggestion is not what you're looking for, but BeeWare (or maybe another framework) sounds promising and would allow for a simple yet powerful way to support multiple platforms.

Disclaimer: I have not programmed in Python before.

Great suggestion,
I will try to work on, especially BeeWare

Chaquopy is a Python SDK for Android
it provides a Simple APIs for calling Python code from Java/Kotlin, and vice versa.
it may be a good option.

Disclaimer: I didn't use it before

I created this example repo where I used chaquopy for running mishkal in a native android app.
Note: chaquopy is a commercial product but it can be used without a license (limited) or with a free license (for open source project - read more here)

screenshot

Thank you Mehdi, it's a great contribution.