blob: ad6c2d0173f4362fa0fd47d3c0ff797240e77706 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Default output options
AUDIO_FORMAT = "m4b"
AUDIO_BITRATE = "128k"
LANGUAGE = "English"
API_TIMEOUT = 600 # Timeout per chunk request in seconds
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 (client-side chunking).
CHUNK_SIZE = 250
# Where books are read from and where finished audiobooks are written.
# Relative paths resolve against the project root.
INPUT_DIR = "./input"
OUTPUT_DIR = "./output"
# Output audiobook file at a different tempo.
SPEED = 1.0
# Dump each chunk's raw audio and the text sent for it into debug/
DEBUG = False
# Default option for stop and exit TTS server after generating with TUI
STOP_SERVER_AND_EXIT = True
# The IP/port that locally-managed TTS server instances run on
QWEN_API_URL = "http://127.0.0.1:7860"
FASTER_API_URL = "http://127.0.0.1:8000"
AUDIOCPP_API_URL = "http://127.0.0.1:8080"
SGLOMNI_API_URL = "http://127.0.0.1:8100"
# The URI used to discover externally-run instances
QWEN_REMOTE_URL = "http://127.0.0.1:7860"
FASTER_REMOTE_URL = "http://127.0.0.1:8000"
AUDIOCPP_REMOTE_URL = "http://127.0.0.1:8080"
SGLOMNI_REMOTE_URL = "http://127.0.0.1:8100"
# Randomization seed. -1 means randomize with every generation
# With SEED = -1 and CONSTANT_SEED = True, one random seed will be used for the entire audiobook.
# This MAY keep the voice slightly more consistent across chunk boundaries
SEED = -1
CONSTANT_SEED = False
# Ask the audio.cpp server to unload all currently loaded models before
# converting, so models left resident by earlier runs free their memory
# (e.g. VRAM on GPU backends) and only the selected entry loads. Set to
# False to keep other models resident across runs (the TUI Settings menu
# exposes this as "Unload models", default Yes).
AUDIOCPP_UNLOAD_MODELS = True
|