改进
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user