Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.
TypeScript agent-skillscodex-clideskop-appdubbingimage-generationlocalizationskillsttsvideo-editingvideo-generationvideo-transcriptionvideo-translation
feat: add short_subtitle_max_chars config for vertical video subtitles
wulienb5534824dcd7
diff --git a/config/config-example.toml b/config/config-example.tomlindex 115190d2..46d6a57c 100644--- a/config/config-example.toml+++ b/config/config-example.toml@@ -8,6 +8,7 @@enable_block_vtt_batch = false # 是否启用块级VTT批量翻译,建议值:false(默认关闭)vtt_batch_size = 10 # VTT批量翻译的批次大小,建议值:10target_language_first = true # 双语字幕中目标语言是否在上方,建议值:true(目标语言在上)+ short_subtitle_max_chars = 20 # 短字幕英文每行最大字符数,建议值:15-25proxy = "" # 网络代理地址,格式如http://127.0.0.1:7890,可不填[server]diff --git a/config/config.go b/config/config.goindex d284a55c..2b75bd41 100644--- a/config/config.go+++ b/config/config.go@@ -25,6 +25,7 @@ type App struct {EnableBlockVttBatch bool `toml:"enable_block_vtt_batch"`VttBatchSize int `toml:"vtt_batch_size"`TargetLanguageFirst bool `toml:"target_language_first"` // 双语字幕中目标语言是否在上+ ShortSubtitleMaxChars int `toml:"short_subtitle_max_chars"` // 短字幕英文每行最大字符数Proxy string `toml:"proxy"`ParsedProxy *url.URL `toml:"-"`}