Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Mishkal to Android #8

Open
linuxscout opened this issue Nov 8, 2015 · 7 comments
Open

Import Mishkal to Android #8

linuxscout opened this issue Nov 8, 2015 · 7 comments

Comments

@linuxscout
Copy link
Owner

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?

@MagedSaeed
Copy link

why not to use the web service instead?

@linuxscout
Copy link
Owner Author

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

@djalilhebal
Copy link

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.

@linuxscout
Copy link
Owner Author

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

@naskio
Copy link
Contributor

naskio commented Jan 29, 2022

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

@naskio
Copy link
Contributor

naskio commented Jan 31, 2022

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

@linuxscout
Copy link
Owner Author

Thank you Mehdi, it's a great contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants