简体   繁体   中英

How to play audio on pydroid3?

I want to be able to play a simple mp3 file in pydroid3. I've installed the playsound library but it just prints out a bunch of mumbo jumbo things like "CalledProcessError" and "Returned non zero exit status 1". Here's my code: from playsound import playsound import os print(os.path.abspath("qqq.mp3")) playsound("/storage/emulated/0/Android/data/ru.iiec.pydroid3/files/qqq.mp3")

install kivy and try this:

from android import activity
from kivy.core.audio import SoundLoader
sound = SoundLoader.load("beep-08b.wav")
sound.play()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM