diff options
| author | historia <historiavg@proton.me> | 2026-08-24 16:08:33 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-08-24 16:08:33 -0400 |
| commit | 1ff9a635bd9b033b631a6b525891b7eb44e189d3 (patch) | |
| tree | 6dbcd7e682d516770be4c0724db793666c93dd5f /app/converter/config.py | |
| parent | afd1c67d92c7f32389d5f652b9fa71530538a16f (diff) | |
| download | tts-audiobook-generator-1ff9a635bd9b033b631a6b525891b7eb44e189d3.tar.gz | |
feat: clearer split between local (managed) and remote URLs and server status
Diffstat (limited to 'app/converter/config.py')
| -rw-r--r-- | app/converter/config.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/converter/config.py b/app/converter/config.py index 5e35ee3..9f70a73 100644 --- a/app/converter/config.py +++ b/app/converter/config.py @@ -25,6 +25,15 @@ BACKEND = "audiocpp" QWEN_API_URL = "http://127.0.0.1:7860" # CustomVoice model CLONE_API_URL = "http://127.0.0.1:7861" # Base model +# Remote (externally-run) server URLs. The hub probes these and offers a +# "[remote]" backend entry when one answers with the expected backend, so an +# externally-started server can be used alongside a locally-managed one. +# Leave empty to disable remote probing for that backend. The defaults match +# the local ports so an external server squatting the local port is found +# without any configuration. +QWEN_REMOTE_URL = "http://127.0.0.1:7860" # CustomVoice model +CLONE_REMOTE_URL = "http://127.0.0.1:7861" # Base model + # Custom voice options SPEAKER = "Vivian" #Vivian, Serena, Uncle_Fu, Dylan, Eric, Ryan, Aiden, Ono_Anna, Sohee INSTRUCT = "Speak naturally and clearly, as if reading a dramatic book to an adult audience." @@ -42,6 +51,7 @@ CONSTANT_SEED = False # BACKEND 2: faster-qwen-tts options # ############################################################################### FASTER_API_URL = "http://127.0.0.1:8000" # faster-qwen3-tts server (Base model only) +FASTER_REMOTE_URL = "http://127.0.0.1:8000" # externally-run faster-qwen3-tts server ("" disables probing) # Default voice if no --voice is passed FASTER_VOICE = "default" @@ -50,6 +60,7 @@ FASTER_VOICE = "default" # BACKEND 3: audio.cpp options # ############################################################################### AUDIOCPP_API_URL = "http://127.0.0.1:8080" # audio.cpp audiocpp_server +AUDIOCPP_REMOTE_URL = "http://127.0.0.1:8080" # externally-run audiocpp_server ("" disables probing) # Model ids in the audio.cpp server.json config. AUDIOCPP_MODEL_ID may point # at any TTS model entry the server hosts (qwen3_tts, higgs_audio_tts, |
