Android Termux playsound 库兼容方案
This commit is contained in:
5
playsound_android.py
Normal file
5
playsound_android.py
Normal file
@@ -0,0 +1,5 @@
|
||||
"""Android Termux 无法编译 playsound 库的替代方案,
|
||||
需要安装 playaudio, 并重命名此文件至 playsound.py"""
|
||||
import os
|
||||
def playsound(path):
|
||||
os.system(f"play-audio '{path}'")
|
Reference in New Issue
Block a user