Wednesday, 23 August 2023

Microphone Permission of Flask app in python-for-android and buildozer

I'm converting a flaskapp combined with SpeechRecognition Javascript into an apk (I get the html here) . And i tried to add the Microphone permission by adding:

Python:

from android.permissions import Permission, request_permissions 
request_permissions([Permission.INTERNET,Permission.MODIFY_AUDIO_SETTINGS,Permission.RECORD_AUDIO])

Buildozer.spec

android.permissions = INTERNET,RECORD_AUDIO,MODIFY_AUDIO_SETTINGS
android.api = 30

But when i run apk, i still got not-allowed error in javascript.

Thanks For Any Helps!



from Microphone Permission of Flask app in python-for-android and buildozer

No comments:

Post a Comment