feat: support subtitle chunks for AI

This commit is contained in:
Gabe
2025-10-11 21:06:38 +08:00
parent d9b4399c57
commit 1afe976777
6 changed files with 304 additions and 84 deletions

View File

@@ -1554,9 +1554,9 @@ export const I18N = {
zh_TW: `啟用字幕翻譯`,
},
is_bilingual_view: {
zh: `启用双语显示`,
en: `DEnable bilingual display`,
zh_TW: `啟用雙語顯示`,
zh: `双语显示`,
en: `Enable bilingual display`,
zh_TW: `雙語顯示`,
},
background_styles: {
zh: `背景样式`,
@@ -1578,6 +1578,11 @@ export const I18N = {
en: `AI intelligent punctuation`,
zh_TW: `AI智慧斷句`,
},
ai_chunk_length: {
zh: `AI处理切割长度`,
en: `AI processing chunk length`,
zh_TW: `AI处理切割长度`,
},
subtitle_helper_1: {
zh: `1、目前仅支持Youtube且仅支持浏览器扩展。`,
en: `1. Currently only supports Youtube and browser extensions.`,

View File

@@ -112,6 +112,7 @@ export const DEFAULT_SUBTITLE_SETTING = {
enabled: true, // 是否开启
apiSlug: OPT_TRANS_MICROSOFT,
segSlug: "-", // AI智能断句
chunkLength: 1000, // AI处理切割长度
// fromLang: "en",
toLang: "zh-CN",
isBilingual: true, // 是否双语显示