Files
HeurAMS/playsound_android.py

5 lines
194 B
Python

"""Android Termux 无法编译 playsound 库的替代方案,
需要安装 playaudio, 并重命名此文件至 playsound.py"""
import os
def playsound(path):
os.system(f"play-audio '{path}'")