From 11384921323f7b08271be0607d8df774489a1f7d Mon Sep 17 00:00:00 2001 From: historia Date: Wed, 19 Aug 2026 02:10:13 -0400 Subject: fix: reduce chunk size to 40 --- converter/tts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'converter/tts.py') diff --git a/converter/tts.py b/converter/tts.py index cb09936..1f5606f 100644 --- a/converter/tts.py +++ b/converter/tts.py @@ -114,8 +114,8 @@ class _BaseTTSClient: Returns the generated chunk file's path, or None when all attempts failed. """ - # Small delay between chunks to avoid rate limiting (only if not first chunk) - if chunk_num > 1: + # Optional pause between API calls (rate limiting on hosted demos) + if chunk_num > 1 and config.MIN_DELAY_BETWEEN_CHUNKS > 0: time.sleep(config.MIN_DELAY_BETWEEN_CHUNKS) for attempt in range(config.MAX_RETRIES): -- cgit v1.2.3