diff options
| author | historia <historiavg@proton.me> | 2026-08-19 02:10:13 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-08-19 02:10:13 -0400 |
| commit | 11384921323f7b08271be0607d8df774489a1f7d (patch) | |
| tree | 90b78855cce256dea077ed72dd822ae1fbb1696f /converter/tts.py | |
| parent | a89daa1af05e2816f970d6a7b28a07df4f102f7d (diff) | |
| download | tts-audiobook-generator-11384921323f7b08271be0607d8df774489a1f7d.tar.gz | |
fix: reduce chunk size to 40
Diffstat (limited to 'converter/tts.py')
| -rw-r--r-- | converter/tts.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): |
