Android Termux playsound 库兼容方案

This commit is contained in:
2025-07-25 22:33:36 +08:00
parent ffb5f99539
commit b6f19a16ed

5
playsound_android.py Normal file
View File

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