aboutsummaryrefslogtreecommitdiff
path: root/app/converter/config.py
diff options
context:
space:
mode:
authorhistoria <historiavg@proton.me>2026-08-27 18:41:10 -0400
committerhistoria <historiavg@proton.me>2026-08-27 18:41:10 -0400
commitb6795046bf20023fd7b2e083ead20e7362f0c0d7 (patch)
tree20c8fd1cde5ed7fbb2c630e8250af098f547be05 /app/converter/config.py
parent0047a875d0a969005f3cea3df18de909d285f910 (diff)
downloadtts-audiobook-generator-b6795046bf20023fd7b2e083ead20e7362f0c0d7.tar.gz
feat: simply generate audiobooks menu, move more config to settings menu
Diffstat (limited to 'app/converter/config.py')
-rw-r--r--app/converter/config.py21
1 files changed, 19 insertions, 2 deletions
diff --git a/app/converter/config.py b/app/converter/config.py
index 7424a76..9a07353 100644
--- a/app/converter/config.py
+++ b/app/converter/config.py
@@ -10,8 +10,25 @@ HEARTBEAT_INTERVAL_SECONDS = 30 # Print "still working" in console logs every N
# Words per TTS generation request (client-side chunking).
CHUNK_SIZE = 250
-# Default for "Stop server and exit" on the Generate Audiobooks form
-# (TUI Settings menu: "Default stop server and exit").
+# Where books are read from and where finished audiobooks are written.
+# Relative paths resolve against the project root (the folder containing
+# audiobook.py). The --input/--output CLI flags override these per run.
+INPUT_DIR = "./input"
+OUTPUT_DIR = "./output"
+
+# Playback speed factor for the final audiobook (1.0 = normal).
+# Pitch-preserving. The --speed CLI flag overrides this per run.
+SPEED = 1.0
+
+# Dump each chunk's raw audio and the exact text sent for it under the
+# debug/ folder (organized per book and chapter), and log every TTS
+# request and response to the console and log file. The --debug CLI flag
+# forces this on for a single run.
+DEBUG = False
+
+# Default for "Stop server and exit" (TUI Settings menu: "Stop server
+# and exit"): automatically stop the TTS server and exit the TUI after
+# generating audiobooks.
STOP_SERVER_AND_EXIT = True
# Default TTS backend.