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