feat(engine): 优化字幕引擎输出格式、准备合并两个字幕引擎

- 重构字幕引擎相关代码
- 准备合并两个字幕引擎
This commit is contained in:
himeditator
2025-07-27 17:15:12 +08:00
parent 3792eb88b6
commit b658ef5440
11 changed files with 205 additions and 45 deletions

View File

@@ -32,7 +32,19 @@ Python 进程标准输出 (`sys.stdout`) 的内容一定为一行一行的字符
}
```
Python 端打印的提示信息。
Python 端打印的提示信息,比起 `print`,该信息更希望 Electron 端的关注
### `usage`
```js
{
command: "usage",
content: string
}
```
Gummy 字幕引擎结束时打印计费消耗信息。
### `caption`
@@ -42,7 +54,6 @@ Python 端打印的提示信息。
index: number,
time_s: string,
time_t: string,
end: boolean,
text: string,
translation: string
}