This commit is contained in:
2025-09-08 13:59:09 +08:00
parent afb7252f71
commit 6293b69ef0
14 changed files with 10 additions and 12 deletions

View File

@@ -11,7 +11,7 @@ def precache(text: str):
cache_dir.mkdir(parents=True, exist_ok=True)
cache = cache_dir / f"{text}.wav"
if not cache.exists():
communicate = tts.Communicate(text, "zh-CN-YunjianNeural")
communicate = tts.Communicate(text, "zh-CN-XiaoxiaoNeural")
communicate.save_sync(f"./cache/voice/{text}.wav")