{"record":{"id":"930865d9eb6e2706","repo":"babysor/MockingBird","slug":"kokoro-tts-produced-no-output-for-cue-cue-index","errorCode":null,"errorMessage":"kokoro-tts produced no output for cue {cue.index}","messagePattern":"kokoro-tts produced no output for cue (.+?)","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"skills/speak/scripts/render_timeline.py","lineNumber":350,"sourceCode":"        lang = cfg.get(\"lang\")\n        if lang:\n            cmd += [\"--lang\", str(lang)]\n        speed = cfg.get(\"speed\")\n        if speed is not None:\n            cmd += [\"--speed\", str(speed)]\n        cmd += [\"--format\", output_format]\n\n        proc = subprocess.run(cmd, capture_output=True, text=True)\n        if proc.returncode != 0:\n            raise RuntimeError(\n                f\"kokoro-tts failed for cue {cue.index}: {proc.stderr}\"\n            )\n    finally:\n        Path(tmp_path).unlink(missing_ok=True)\n\n    if out_path.exists():\n        return probe_duration_ms(out_path) / 1000.0\n    raise RuntimeError(f\"kokoro-tts produced no output for cue {cue.index}\")\n\n\n# ── main ─────────────────────────────────────────────────────────────\n\n\ndef main() -> int:\n    ap = argparse.ArgumentParser(\n        description=\"Render timeline-accurate speech from SRT.\"\n    )\n    ap.add_argument(\"--srt\", required=True, help=\"Input SRT file\")\n    ap.add_argument(\"--voice-map\", required=True, help=\"Voice-map JSON\")\n    ap.add_argument(\n        \"--backend\", choices=[\"kokoro\", \"noiz\"], default=\"kokoro\",\n        help=\"TTS backend (default: kokoro)\",\n    )\n    ap.add_argument(\"--api-key\", help=\"API key (required for noiz backend)\")\n    ap.add_argument(\"--output\", required=True, help=\"Output audio file\")\n    ap.add_argument(\"--base-url\", default=\"https://noiz.ai/v1\")","sourceCodeStart":332,"sourceCodeEnd":368,"githubUrl":"https://github.com/babysor/MockingBird/blob/28dc5e14f12d7c754612af2fde8e78a4b03f8616/skills/speak/scripts/render_timeline.py#L332-L368","documentation":"Error \"kokoro-tts produced no output for cue {cue.index}\" thrown in babysor/MockingBird.","triggerScenarios":"Thrown at skills/speak/scripts/render_timeline.py:350 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"28dc5e14f12d7c754612af2fde8e78a4b03f8616","analyzedAt":"2026-08-27T02:26:53.589Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}