0

I wrote a program on PyCharm (it’s not an app). This program takes user input from a mic and prints it out in a nice format.

Is there any way I can run these files on an android phone? Can an app (programmed in a different language) run my Python files and be able to use my output or will I have to store it on the cloud or something? How should I attempt to solve this issue?

Dilraj
  • 17
  • 5
  • 1
    yes, if You manage to get the python interpreter on Your android (basically You can't), then sure, it should run, otherwise I can only think of [`Kivy`](https://kivy.org/#home) which allows to make cross-platform applications (including Android), actually since You gave the idea about the cloud: it is possible to make a web application using python (and html, css, javascript too (of which realistically only html is needed (the other are for looks and advanced ineractiveness))) then host it somewhere and You could open it using say chrome – Matiiss Jul 13 '21 at 18:38
  • Thank you, I will look into both PY4A and Kivy – Dilraj Jul 13 '21 at 18:42
  • for that web app the backend could be in python (as mentioned) meaning audio processing could be handled from there (tho I think to get audio input from phone (chrome) javascript may be needed unless You are fine with recording audio, then uploading it, then receiving output), but also talking about Kivy, You could create an app with it and use sockets to form sort of a backend to handle kivy input (but easier probably to code it all into the kivy app itself) – Matiiss Jul 13 '21 at 18:44
  • and about the app that can run Your python, well I don't know any except for SoloLearn but that probably won't be the one You are looking for since it only provides very simple python features (I don't think it even has any libraries) but You could create Your own app at which point just make that app do what YOu want with python, or create an environment and You can potentially sell it (still libraries will be semi-usable since no library really is programmed for androids or apple OS or whatever) – Matiiss Jul 13 '21 at 18:47

0 Answers0