BAD CODE: Chatterbox can truncate or corrupt longer speech while reporting Played

Open
#98 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend

Research direction

Start by tracing the Chatterbox submission and generation path, then inspect the engine or submission contract and existing tests; the issue does not name specific files. Establish a non-confidential reproducible passage and gather evidence distinguishing premature termination, token limits, and adapter misuse. Done means bounded generation preserves all input text, later-unit failures are observable, regression evidence covers longer prose, and repeated real-model readings are complete and intelligible.

Written by the indexing model from the issue text.

Description

bug

Outcome

Chatterbox must complete admitted prose intelligibly, or report generation failure rather than presenting a truncated or corrupted reading as successful speech.

Observed evidence

During local testing on 2026-10-03, a 121-word English passage (144 tokenizer tokens, below the installed model's 1024-token input limit) was submitted to the installed Chatterbox Turbo CPU runtime.

  • First generation: 29.2 seconds; the listener confirmed it stopped mid-sentence, omitting the remaining text.
  • Fresh generation of byte-identical text: 35.84 seconds; the listener reported it degraded into non-word sounds around two-thirds through.
  • Both files played to their actual ends with zero recorded underruns and no output errors, and were marked Played. The daemon remained responsive.
  • Kokoro-MLX with af_alloy read the same passage cleanly and completely, confirmed by the listener.

The cached files and diagnostics were preserved locally. The original source is confidential and is intentionally not posted here. This establishes two failed generations in the installed integration, not a proven universal defect in upstream Chatterbox or a confirmed output-token-limit diagnosis.

Scope and acceptance

  • Establish a non-confidential reproducible passage and distinguish premature generation termination, token limits, and adapter misuse with evidence.
  • Implement bounded generation appropriate to the model, preserving all submitted text and ordering, with observable failure handling.
  • Record RED/GREEN regression evidence at the engine or submission contract, covering longer prose and failure of a later generation unit.
  • Validate repeated real-model readings for completeness and intelligibility; duration and Played alone are insufficient oracles.
  • Preserve original audio/evidence and watermark samples; do not rewrite historical Played records or claim ASR proves semantic completeness.

No dependency on subtitle alignment; that is a separate defect. Safe merge state: other engines retain their behavior, and the Chatterbox path improves without silently dropping input.

Dominant language
Python
Stars
0
Forks
1
Avg merge
2h 13m
Merged PRs (30d)
51

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flyingrobots/AI-TTS

All issues in flyingrobots/AI-TTS

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.