fix: 完善

This commit is contained in:
2025-12-10 13:13:37 +08:00
parent e9582e1dc0
commit a8ae1bacf3
12 changed files with 62 additions and 40 deletions

View File

@@ -0,0 +1,11 @@
""" 通用音频适配器
基于 playsound 库的音频播放器, 在绝大多数 python 环境上提供音频服务
注意: 在未配置 pulseaudio 的 termux 不可用
"""
import os
import pathlib
import playsound
def play_by_path(path: pathlib.Path):
playsound.playsound(str(path))