+ 1

How to play mp3 file on android phone using Python Kivy and buildozer for compile code to apk file?

I am making an android app using Python Kivy module and after that I compile my code to apk file using buildozer (python for android) on Linux Ubuntu system. My app generates mp3 file and I cannot play it inside my app. On Pycharm on PC it can be played using "playsound" module, but on phone it cannot be played. SoundLoader in Kivy cannot play mp3 files. It can play only ogg and wav. How can I play mp3 file on android phone?

16th May 2022, 3:06 PM
Oleksandr Lytvynov
Oleksandr Lytvynov - avatar
1 Odpowiedź
+ 1
Check this question on StackOverflow https://stackoverflow.com/questions/62732454/unable-to-load-mp3-file-using-kivy-on-android According to answer on above question `There's no way to load mp3 files using Kivy on Android. You can convert the mp3 file into an ogg file though` So try to convert the file, check this for "How to?" https://stackoverflow.com/questions/54115528/how-to-convert-mp3-to-ogg-JUMP_LINK__&&__python__&&__JUMP_LINK
29th May 2022, 8:43 AM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar