increased supertonic max chunk length so longer sentences won't be split #163

This commit is contained in:
Juraj Borza
2026-05-24 13:09:23 +02:00
parent 9cfe799a8e
commit 8163666dd9
+2 -1
View File
@@ -163,6 +163,7 @@ def _configure_supertonic_gpu() -> None:
except Exception as exc: except Exception as exc:
logger.warning("Could not configure supertonic GPU providers: %s", exc) logger.warning("Could not configure supertonic GPU providers: %s", exc)
SUPERTONIC_MAX_CHUNK_LENGTH = 500
class SupertonicPipeline: class SupertonicPipeline:
"""Minimal adapter that mimics Kokoro's pipeline iteration interface.""" """Minimal adapter that mimics Kokoro's pipeline iteration interface."""
@@ -173,7 +174,7 @@ class SupertonicPipeline:
sample_rate: int, sample_rate: int,
auto_download: bool = True, auto_download: bool = True,
total_steps: int = 5, total_steps: int = 5,
max_chunk_length: int = 300, max_chunk_length: int = SUPERTONIC_MAX_CHUNK_LENGTH,
lang: str = "en", lang: str = "en",
intra_op_num_threads: Optional[int] = None, intra_op_num_threads: Optional[int] = None,
) -> None: ) -> None: