feat(auto-caption): 发布 v0.7.0 版本

This commit is contained in:
himeditator
2025-08-20 00:53:06 +08:00
parent 771f7ad002
commit 34362fea3d
24 changed files with 164 additions and 70 deletions

View File

@@ -4,6 +4,6 @@ from .audioprcs import (
resample_chunk_mono_np,
resample_mono_chunk
)
from .sysout import stdout, stdout_cmd, stdout_obj, stderr
from .sysout import stdout, stdout_err, stdout_cmd, stdout_obj, stderr
from .thdata import thread_data
from .server import start_server

View File

@@ -4,6 +4,9 @@ import json
def stdout(text: str):
stdout_cmd("print", text)
def stdout_err(text: str):
stdout_cmd("error", text)
def stdout_cmd(command: str, content = ""):
msg = { "command": command, "content": content }
sys.stdout.write(json.dumps(msg) + "\n")