增加软件管理实用程序与音频缓存机制修复

This commit is contained in:
2025-09-10 23:27:02 +08:00
parent 6293b69ef0
commit bb99b0a0b7
8 changed files with 277 additions and 15 deletions

View File

@@ -4,6 +4,7 @@ import toml
import typing
from playsound import playsound
import threading
import hashlib
import edge_tts as tts
class ConfigFile:
@@ -60,4 +61,7 @@ def get_daystamp() -> int:
if time_override != -1:
return int(time_override)
return int(time.time() // (24 * 3600))
return int(time.time() // (24 * 3600))
def get_md5(text):
return hashlib.md5(text.encode('utf-8')).hexdigest()