Finally got the memory thing under contril, I'm pretty sure.
This commit is contained in:
@@ -59,7 +59,8 @@ class TtsEngine:
|
||||
|
||||
# Safety: Limit text size to prevent excessive memory usage
|
||||
# ~10,000 chars = ~10-15 minutes of audio at normal reading speed
|
||||
MAX_TEXT_LENGTH = 10000
|
||||
# Reduced to 5000 to lower memory usage per paragraph
|
||||
MAX_TEXT_LENGTH = 5000
|
||||
if len(text) > MAX_TEXT_LENGTH:
|
||||
print(f"Warning: Paragraph too long ({len(text)} chars), truncating to {MAX_TEXT_LENGTH}")
|
||||
text = text[:MAX_TEXT_LENGTH] + "..."
|
||||
|
||||
Reference in New Issue
Block a user