aboutsummaryrefslogtreecommitdiff
path: root/app/backends/faster.py
diff options
context:
space:
mode:
authorhistoria <historiavg@proton.me>2026-08-28 14:57:48 -0400
committerhistoria <historiavg@proton.me>2026-08-28 14:57:48 -0400
commitdb38085d07ce75f8961eecdc1919e98748254c53 (patch)
treebeaea2ba84de05bfc2fa90e9b92a24568d3b4cb9 /app/backends/faster.py
parentafb2c2d5b297c5aa28bcced0e3f90e207d799c2a (diff)
downloadtts-audiobook-generator-db38085d07ce75f8961eecdc1919e98748254c53.tar.gz
refactor: overhaul config.py, remove cli default options
Diffstat (limited to 'app/backends/faster.py')
-rwxr-xr-xapp/backends/faster.py18
1 files changed, 5 insertions, 13 deletions
diff --git a/app/backends/faster.py b/app/backends/faster.py
index 285d865..2d0cad3 100755
--- a/app/backends/faster.py
+++ b/app/backends/faster.py
@@ -337,27 +337,19 @@ def _execute_steps(settings: dict) -> List[taskview.TaskStep]:
if voices is None:
return 1
- # Sync app/converter/config.py default voice. (The server port is
- # not touched here: it lives in FASTER_API_URL, edited in the
- # Settings screen.)
- default_voice = next(iter(voices))
- if default_voice != config.FASTER_VOICE:
- if common.update_config_value("FASTER_VOICE", default_voice):
- print(f"[OK] Updated FASTER_VOICE to {default_voice}")
- else:
- print("[WARNING] Could not update FASTER_VOICE; edit "
- "app/converter/config.py by hand")
-
+ # (The server port is not touched here: it lives in
+ # FASTER_API_URL, edited in the Settings screen. Voices are picked
+ # per run with --voice / on the Generate-audiobooks screen.)
_print_launch_hint(settings["output_path"])
return 0
steps.append(taskview.TaskStep(
- "Write voices.json & sync config", write))
+ "Write voices.json", write))
return steps
def _execute(settings: dict) -> int:
- """Console tail: install, clone, write voices.json, sync, advise."""
+ """Console tail: install, clone, write voices.json, advise."""
return taskview.run_steps_inline(_execute_steps(settings))