Archived
Android Termux playsound 库兼容方案
This commit is contained in:
1 parent
a7b41b0f4a
commit
4eeaa08e73
1 file changed
+5
@@ -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