From 8163666dd91b44110bbd7fc4aaaf33ba1b2dead2 Mon Sep 17 00:00:00 2001 From: Juraj Borza Date: Sun, 24 May 2026 13:09:23 +0200 Subject: [PATCH] increased supertonic max chunk length so longer sentences won't be split #163 --- abogen/tts_supertonic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/abogen/tts_supertonic.py b/abogen/tts_supertonic.py index ec94047..a997af5 100644 --- a/abogen/tts_supertonic.py +++ b/abogen/tts_supertonic.py @@ -163,6 +163,7 @@ def _configure_supertonic_gpu() -> None: except Exception as exc: logger.warning("Could not configure supertonic GPU providers: %s", exc) +SUPERTONIC_MAX_CHUNK_LENGTH = 500 class SupertonicPipeline: """Minimal adapter that mimics Kokoro's pipeline iteration interface.""" @@ -173,7 +174,7 @@ class SupertonicPipeline: sample_rate: int, auto_download: bool = True, total_steps: int = 5, - max_chunk_length: int = 300, + max_chunk_length: int = SUPERTONIC_MAX_CHUNK_LENGTH, lang: str = "en", intra_op_num_threads: Optional[int] = None, ) -> None: