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

@@ -2,7 +2,7 @@ import time
import pathlib
import toml
import typing
import playsound
from playsound import playsound
import threading
import edge_tts as tts
@@ -47,9 +47,9 @@ def action_play_voice(content):
"zh-CN-YunjianNeural",
)
communicate.save_sync(
f"./cache/voice/{content}"
f"./cache/voice/{content}.wav"
)
playsound()
playsound(f"./cache/voice/{content}.wav")
threading.Thread(target=play).start()
def get_daystamp() -> int: