From a0a0a2e66d061c9d991ea97fa3b070da5ebbf89a Mon Sep 17 00:00:00 2001 From: himeditator Date: Mon, 14 Jul 2025 20:07:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(caption):=20=E8=B0=83=E6=95=B4=E5=AD=97?= =?UTF-8?q?=E5=B9=95=E7=AA=97=E5=8F=A3=E3=80=81=E6=B7=BB=E5=8A=A0=E5=AD=97?= =?UTF-8?q?=E5=B9=95=E6=97=B6=E9=97=B4=E8=BD=B4=E4=BF=AE=E6=94=B9=20(#8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增修改字幕时间功能 - 添加导出字幕记录类型,支持 srt 和 json 格式 - 调整字幕窗口右上角图标为竖向排布 --- docs/TODO.md | 11 +- src/renderer/src/components/CaptionLog.vue | 185 +++++++++++++++---- src/renderer/src/components/CaptionStyle.vue | 7 +- src/renderer/src/components/EngineStatus.vue | 1 - src/renderer/src/i18n/lang/en.ts | 10 +- src/renderer/src/i18n/lang/ja.ts | 10 +- src/renderer/src/i18n/lang/zh.ts | 8 + src/renderer/src/utils/timeCalc.ts | 42 +++++ src/renderer/src/views/CaptionPage.vue | 90 +++++---- 9 files changed, 282 insertions(+), 82 deletions(-) create mode 100644 src/renderer/src/utils/timeCalc.ts diff --git a/docs/TODO.md b/docs/TODO.md index 971a642..9fcc06a 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -10,12 +10,19 @@ - [x] 适配 macOS 平台 *2025/07/08* - [x] 添加字幕文字描边 *2025/07/09* - [x] 添加基于 Vosk 的字幕引擎 *2025/07/09* +- [x] 适配 Linux 平台 *2025/07/13* +- [x] 字幕窗口右上角图标改为竖向排布 *2025/07/14* +- [x] 可以调整字幕时间轴 *2025/07/14* +- [x] 可以导出 srt 格式的字幕记录 *2025/07/14* ## 待完成 +- [ ] 可以获取字幕引擎的系统资源消耗情况 + +## 后续计划 + - [ ] 添加 Ollama 模型用于本地字幕引擎的翻译 -- [ ] 添加本地字幕引擎 - - [ ] 验证 / 添加基于 FunASR 的字幕引擎 +- [ ] 验证 / 添加基于 FunASR 的字幕引擎 - [ ] 减小软件不必要的体积 ## 遥远的未来 diff --git a/src/renderer/src/components/CaptionLog.vue b/src/renderer/src/components/CaptionLog.vue index 4f549d4..c435fd7 100644 --- a/src/renderer/src/components/CaptionLog.vue +++ b/src/renderer/src/components/CaptionLog.vue @@ -4,46 +4,102 @@ {{ $t('log.title') }} - {{ $t('log.export') }} - - - - {{ $t('log.copy') }} + + + {{ $t('log.changeTime') }} + + + + {{ $t('log.export') }} + + + + {{ $t('log.copy') }} - {{ $t('log.clear') }} +