mirror of
https://github.com/denizsafak/abogen.git
synced 2026-09-20 11:40:57 +02:00
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:
@@ -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"
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user