aboutsummaryrefslogtreecommitdiff
path: root/converter/config.py
diff options
context:
space:
mode:
authorhistoria <historiavg@proton.me>2026-08-20 17:05:21 -0400
committerhistoria <historiavg@proton.me>2026-08-20 17:05:21 -0400
commit1f2142e7f610871a6bbe6498d0709d310fcbebb1 (patch)
treedae5a4ec4187e3940aa11b433ba852226e124472 /converter/config.py
parent4d3530f63730b47870d25629802c0c41f0c9ffae (diff)
downloadtts-audiobook-generator-1f2142e7f610871a6bbe6498d0709d310fcbebb1.tar.gz
feat: tool scripts for server.json and voices.json
Diffstat (limited to 'converter/config.py')
-rw-r--r--converter/config.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/converter/config.py b/converter/config.py
index 4cb5ab8..ed49f12 100644
--- a/converter/config.py
+++ b/converter/config.py
@@ -8,8 +8,13 @@ MAX_RETRIES = 3 # Attempts per chunk request
HEARTBEAT_INTERVAL_SECONDS = 30 # Print "still working" in console logs every N seconds
# Words per TTS generation request.
-# Note that qwen-tts-demo does no chunking at all, but faster-qwen-tts and
+# Note that qwen-tts-demo does no chunking at all, but faster-qwen3-tts and
# audio.cpp may do chunking as well, so you may be needlessly double-chunking.
+# This is the only size limit: there is no hard ceiling. However, servers
+# silently truncate audio when a single generation runs too long (roughly
+# ~2.5 min on the faster backend's static KV cache, ~11 min on the Gradio
+# demo) without reporting an error, so raising this is at your own risk.
+# The client-side truncation check still catches and retries gross cases.
CHUNK_SIZE = 250
# Default TTS backend.
@@ -54,5 +59,5 @@ FASTER_VOICE = "default"
AUDIOCPP_API_URL = "http://127.0.0.1:8080" # audio.cpp audiocpp_server
# Model ids in the audio.cpp server.json config.
-AUDIOCPP_MODEL_ID = "qwen"https://github.com/0xShug0/audio.cpp
+AUDIOCPP_MODEL_ID = "qwen"
AUDIOCPP_CLONE_MODEL_ID = "qwen-clone"