diff options
| author | historia <historiavg@proton.me> | 2026-08-28 00:59:47 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-08-28 00:59:47 -0400 |
| commit | 975053f1789771ba5cb9dbe50ba7fe0aa396f0ab (patch) | |
| tree | 9e249f025860a8a0bb89751159b412b3d41b25ba /app/backends/audiocpp/wizard.py | |
| parent | 967b60342af11ada1cd6a27c935dd336523fb1cd (diff) | |
| download | tts-audiobook-generator-975053f1789771ba5cb9dbe50ba7fe0aa396f0ab.tar.gz | |
fix: silently failing whisper transcription
Diffstat (limited to 'app/backends/audiocpp/wizard.py')
| -rw-r--r-- | app/backends/audiocpp/wizard.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/backends/audiocpp/wizard.py b/app/backends/audiocpp/wizard.py index 91a8522..46b6638 100644 --- a/app/backends/audiocpp/wizard.py +++ b/app/backends/audiocpp/wizard.py @@ -600,6 +600,19 @@ def _execute_lanes(settings: dict, transcripts, write_prompt = {}, False state["transcripts"] = transcripts state["write_prompt"] = write_prompt + # A blank transcript means the affected clone voices cannot work: + # transcript-conditioned families (Qwen3-TTS Base ICL) reject every + # request without it. Report the step as failed instead of a silent + # [OK]; the setup continues (warn-and-continue) and still writes + # server.json and prompt_text. + blank = sorted(name for name, text in transcripts.items() + if not text.strip()) + if blank: + print("[ERROR] No transcript for: " + ", ".join(blank)) + print("[ERROR] Those clone voices will NOT work until prompt_text " + "carries an accurate transcript for each one; see the " + "summary below for how to fix them by hand.") + return 1 return 0 def write(emit, cancel): |
