babysor/MockingBird · error · ValueError

Input text is empty.

Error message

Input text is empty.

What it means

Error "Input text is empty." thrown in babysor/MockingBird.

Source

Thrown at skills/speak/scripts/text_to_srt.py:92

    )
    parser.add_argument(
        "--gap-ms",
        type=int,
        default=300,
        help="Gap between segments in milliseconds (default: 300)",
    )
    parser.add_argument(
        "--start-offset-ms",
        type=int,
        default=0,
        help="Timeline start offset in milliseconds (default: 0)",
    )
    args = parser.parse_args()

    try:
        text = Path(args.input).read_text(encoding="utf-8").strip()
        if not text:
            raise ValueError("Input text is empty.")

        sentences = split_sentences(text)
        if not sentences:
            raise ValueError("No sentences found after splitting.")

        entries = estimate_timings(
            sentences,
            chars_per_second=args.chars_per_second,
            gap_ms=args.gap_ms,
            start_offset_ms=args.start_offset_ms,
        )
        write_srt(entries, Path(args.output))
        print(f"Done. {len(entries)} segments written to {args.output}")
        total_ms = entries[-1][2] if entries else 0
        print(f"Total duration: {ms_to_srt_time(total_ms)}")
        return 0
    except Exception as exc:
        print(f"Error: {exc}", file=sys.stderr)

View on GitHub (pinned to 28dc5e14f1)

When it happens

Trigger: Thrown at skills/speak/scripts/text_to_srt.py:92 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of babysor/MockingBird@28dc5e14f1 (2026-08-27). Data as JSON: /api/errors/b6689dd8ade7a921. Report an issue: GitHub.