feat: 升级到 playsound3 以替代问题频出的 playsound

This commit is contained in:
2026-05-04 14:22:45 +08:00
parent 190699b447
commit 629dcec03a
6 changed files with 13 additions and 19 deletions

View File

@@ -156,11 +156,11 @@ class MemScreen(Screen):
path = Path(config_var.get()["global"]["paths"]["data"]) / "cache" / "voice"
path = path / f"{get_md5(self.atom.registry['nucleon']["tts_text"])}.wav"
logger.debug(str(path))
if path.exists():
play_by_path(path)
else:
from heurams.services.tts_service import convertor
convertor(self.atom.registry["nucleon"]["tts_text"], path)
play_by_path(path)