fix: max_subtitle_words default 5 → 50

All UI layers use 50 (settings, Job, Thread, adapters). The value 5 was
incorrect and only masked by adapter fallbacks.
This commit is contained in:
Artem Akymenko
2026-07-21 14:58:58 +03:00
parent 7f317ca784
commit 1a3741ec50
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ class ConversionRequest:
output_format: str = "wav"
subtitle_mode: str = "Disabled"
subtitle_format: str = "srt"
max_subtitle_words: int = 5
max_subtitle_words: int = 50
# --- Save Options ---
save_mode: str = "save_next_to_input"
+2 -2
View File
@@ -67,7 +67,7 @@ def run_tts_segment_loop(
preview_callback: Optional[Callable[[str], None]] = None,
on_segment: Optional[Callable[[SegmentInfo], None]] = None,
subtitle_mode: str = "Disabled",
max_subtitle_words: int = 5,
max_subtitle_words: int = 50,
lang_code: str = "a",
use_spacy_segmentation: bool = False,
) -> tuple[int, list]:
@@ -206,7 +206,7 @@ def synthesize_text(
preview_callback: Optional[Callable[[str], None]] = None,
on_segment: Optional[Callable[[SegmentInfo], None]] = None,
subtitle_mode: str = "Disabled",
max_subtitle_words: int = 5,
max_subtitle_words: int = 50,
lang_code: str = "a",
use_spacy_segmentation: bool = False,
split_pattern_override: Optional[str] = None,