diff options
| author | historia <historiavg@proton.me> | 2026-08-27 17:46:02 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-08-27 17:46:02 -0400 |
| commit | 2a9a78dd1caec0811ed2640b28375890ee96e4cc (patch) | |
| tree | 6aebbb503a98eb035015ff56e51d4ccc4f4a395e /app/backends/audiocpp | |
| parent | cef2352a5e81b272d067c2c02eb9588e54edfcfd (diff) | |
| download | tts-audiobook-generator-2a9a78dd1caec0811ed2640b28375890ee96e4cc.tar.gz | |
feat: help menu in tui
Diffstat (limited to 'app/backends/audiocpp')
| -rw-r--r-- | app/backends/audiocpp/build.py | 6 | ||||
| -rw-r--r-- | app/backends/audiocpp/wizard.py | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/app/backends/audiocpp/build.py b/app/backends/audiocpp/build.py index b850859..22c72a1 100644 --- a/app/backends/audiocpp/build.py +++ b/app/backends/audiocpp/build.py @@ -63,7 +63,7 @@ def update(*, emit=None, cancel=None) -> int: The rebuild target is the backend recorded in server.json, else the one detected from existing build directories; when neither names one (nothing was ever built) the update stops after the checkout refresh - — 'Build audio.cpp server' handles a first build. The rebuild itself + — 'Build audio.cpp Server' handles a first build. The rebuild itself runs when the sources changed (HEAD moved) or the on-disk binary is missing or older than HEAD's commit time — the latter heals an interrupted (cancelled or failed) earlier rebuild, which leaves the @@ -94,7 +94,7 @@ def update(*, emit=None, cancel=None) -> int: backend = _rebuild_backend(checkout) if backend is None: print("[INFO] audiocpp_server was never built for a known " - "backend; skipping the rebuild. 'Build audio.cpp server' " + "backend; skipping the rebuild. 'Build audio.cpp Server' " "builds one.") return 0 binary = built_server_binary(checkout, backend) @@ -115,7 +115,7 @@ def update(*, emit=None, cancel=None) -> int: print(f"[WARNING] rebuild exited with code {build_rc}; see the " "messages above (the build log under app/logs/ has the " "full output). The binary on disk is now older than the " - "checked-out sources; re-running 'Update backends' will " + "checked-out sources; re-running 'Update Backends' will " "retry the rebuild.") else: print("[OK] rebuild complete.") diff --git a/app/backends/audiocpp/wizard.py b/app/backends/audiocpp/wizard.py index bfc0eb7..75d84ee 100644 --- a/app/backends/audiocpp/wizard.py +++ b/app/backends/audiocpp/wizard.py @@ -163,11 +163,11 @@ def _wizard(stdscr, args: argparse.Namespace, parser: argparse.ArgumentParser ) -> Optional[dict]: """Run every TUI screen; return the collected settings, or None to abort. - The wizard has two screens: the model tree ("Select TTS models to - host") and one combined configuration form (backend choice when it is + The wizard has two screens: the model tree ("Select TTS Models to + Host") and one combined configuration form (backend choice when it is ambiguous, build offer when needed, clone-voice directory, transcription plan, model download/defaults/cleanup), laid out like - the Generate-audiobooks screen — every option appears on one screen, + the Generate Audiobooks screen — every option appears on one screen, and options that do not apply are hidden instead of asked separately. The bind host is always 127.0.0.1 and the port comes from AUDIOCPP_API_URL in app/converter/config.py (the Settings screen), @@ -313,7 +313,7 @@ def _wizard(stdscr, args: argparse.Namespace, parser: argparse.ArgumentParser if target in valid_dirs: checked_set.add((family_index, target)) picked = tui.checkbox_tree( - stdscr, "Select TTS models to host", + stdscr, "Select TTS Models to Host", tree_families, expand_all=args.all_packages, back_value=_GO_BACK, checked=checked_set, start_on_buttons=True) |
