aboutsummaryrefslogtreecommitdiff
path: root/app/converter/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/converter/config.py')
-rw-r--r--app/converter/config.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/converter/config.py b/app/converter/config.py
index da73427..c021375 100644
--- a/app/converter/config.py
+++ b/app/converter/config.py
@@ -10,6 +10,13 @@ HEARTBEAT_INTERVAL_SECONDS = 30 # Print "still working" in console logs every N
# Words per TTS generation request (client-side chunking).
CHUNK_SIZE = 250
+# Chunking strategy. Smart chunking ends each request at the end of a
+# sentence or quotation instead of a mid-sentence overflow: chunks stay
+# at or below CHUNK_SIZE (most land slightly under it, aiming for a
+# natural boundary near 85%) and short quotations are kept in one
+# request when they fit. Turn it off for the exact legacy splitting.
+SMART_CHUNKING = True
+
# Where books are read from and where finished audiobooks are written.
# Relative paths resolve against the project root.
INPUT_DIR = "input"