# 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" # Where voice-cloning reference .wavs live; the TUI Settings menu exposes # this as "Clone .wav directory" and the qwen-tts Base / SGLang-Omni voice # pickers list the .wav files found here. Relative paths resolve against # the project root. CLONE_WAV_DIR = "./voices" # 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