thekilteddev

Field notes / narration pipeline

The missing production stage

The pipeline wasn't failing to stop the model breathing. It was missing the post-production stage every real narration workflow already has. A review told to disagree with the reasoning already on record is what found that.

2026-12-05 ·8 min read ·narration·validation

This project runs its own narration pipeline: Qwen3-TTS, a zero-shot voice-cloning model, given a short reference clip and a line of text, generates spoken audio in that voice. Two sibling projects sharing the same pipeline had independently hit a recurring, previously unsolved defect: breath and inhale sounds appearing in generated narration where none belonged.

confirmed separatelyThe problem, in two placements

Two distinct placements had been separately confirmed. A sibling project's full-episode listen-through came back "very breathy between words... noticeable against the rhythm... sounds like I have asthma," escalating what had been a single report into a confirmed, pervasive pattern at the start of generated audio chunks. Then, on a single isolated line generated by a second sibling project, the same defect showed up again with no chunking involved at all. Separately, an existing sentence-boundary pause had been extended using verified pure digital silence, and a breath still turned up inside it, audible in both the original short-gap file and the edited long-gap file. The breath predated the edit. It wasn't something the edit introduced.

By this point, someone was manually listening to dozens of clips and hand-picking millisecond trim offsets by ear, explicitly called out as "not a solution ongoing." Nothing automated had proven reliable against this defect class. A transcription check is deaf to it. A simple loudness-based silence detector can't tell a breath from real speech, because a breath has real audible amplitude.

reported as settledThe mistake, and the review that caught it

At this point, a real reasoning error had already been made and reported to the user as settled: the chunk-start defect and the mid-utterance defect had been treated as one mechanism and dismissed together, on the logic that a single isolated line has no neighbouring audio to leak from.

That's wrong, and it took a second, independently-instructed review to catch it. A fable-tier review was dispatched with full context on the problem and every prior mitigation attempt, told explicitly to stress-test the reasoning already given to the user rather than agree with it. It found the error: a reference clip is preceding context on every single generation call, including an isolated line, because zero-shot cloning generates as a continuation of the reference audio plus the text. Collapsing the two defects together and "refuting" them as one had prematurely thrown out a real, community-documented lever specific to the chunk-start case.

The review went on to rank five hypotheses by confidence, the leading one being that the underlying model had learned breath placement as a plausible, natural continuation at a pause, because it was trained on real narration where human narrators do exactly that. It answered the practical question directly too: would re-recording the reference audio help? No for the mid-utterance case, since that looks like a property of the model's own training, not something a reference clip can suppress. Maybe for the chunk-start case, but as an edit to the existing reference file, not a new recording session, and only after two cheap, near-zero-listening experiments to check the theory first.

The most useful thing the review did wasn't a hypothesis at all. It reframed the problem. Professional narration also contains breaths at the recording stage. They get removed in post, every time, by a human editor or a de-breath tool. The pipeline wasn't failing to prevent something a real narrator wouldn't also do. It was missing an entire production stage that every real narration workflow already has.

PROFESSIONAL NARRATION recording breaths present post breaths removed THIS PIPELINE generation breaths present no stage here
Both workflows produce breaths at the point the audio is made. Only one has ever had a stage whose job is to take them out again.

11 anchors, 11 matchesValidating a detector before writing a line of new code

That reframe pointed at a specific next step: find a purpose-built breath detector, Respiro-en, and validate it against files that had already been listened to and judged by a human, before building anything.

Eleven anchor files went in, all previously confirmed by ear, none re-listened to for this check: confirmed-breathy takes, human-picked clean trims that had already won out over rejected alternatives, the rejected alternatives themselves, and one file present in both an original and an edited form, independently confirmed to carry the same mid-utterance breath in both.

Eleven for eleven matched human judgment. Every confirmed-breathy file showed a detected interval starting at the very beginning of the clip. Every confirmed-clean human-picked trim showed nothing touching the start, which also confirmed the start-of-clip detections weren't just an edge-effect artifact. The rejected over-cut trims, thrown out originally for clipping the next word rather than for any breath problem, correctly showed nothing at the start either. On the file present in both original and edited form, the detector found the same interval, to within ten milliseconds, in both. A separate internal-consistency check on one file's own known 585-millisecond trim found the detector's own secondary detections shifting earlier by almost exactly that amount between the original and the trimmed version, real, stable tracking of the same acoustic event through an independent edit, not noise.

Anchor group, and why it was in the setWhat the detector reported
Confirmed-breathy takesalready judged by ear, none re-listened to A detected interval starting at the very beginning of the clip.
Human-picked clean trimsthe takes that had won out over the alternatives Nothing touching the start, which is what rules out an edge-effect artifact.
The rejected alternativesthrown out for clipping the next word, not for breath Nothing at the start either.
One file, original and editedsame mid-utterance breath confirmed in both The same interval in both, to within ten milliseconds.
Eleven files, four groups. Two of the groups exist to catch the detector agreeing with itself rather than with a human.

One caveat survived the validation: several confirmed-breathy files also showed additional detected intervals nobody had specifically reported on. Those are unconfirmed. They could be real breaths nobody happened to complain about, or false positives specific to this pipeline's own audio character. Left open, not resolved either way, on an eleven-file, one-speaker sample.

same day, first tryThe tool, and the same-day proof

With the detector validated, the fix followed the reframe directly: duck the breath in place with a short fade, rather than trim or crop it out. Ducking preserves timing exactly, which sidesteps the genuinely hard part of every prior attempt at this problem, deciding exactly where to cut. Attenuate rather than fully mute, since a hard-muted gap reads as unnatural, the same reason broadcast audio production ducks rather than deletes. Overlapping detected intervals combine correctly instead of double-attenuating or cancelling out. Every fade is capped to half the interval's own length, so a very short breath still ducks at its midpoint instead of two fades overwriting each other into nothing.

Before anyone listened to the output, the tool — debreath — was checked mechanically.

Untouched audio

Audio outside every detected interval came back byte-identical between input and output.

Duration

Unchanged in every case, confirming the tool never trims, only ducks.

Attenuation

Landed within half a decibel of the target on a real test file.

Three mechanical checks, all run before a single person listened to the result.

Then it went to work on a real, currently-blocked piece. A second sibling project, the one that had generated the isolated-line report earlier, ran the tool on a bumper take from a recent build, the exact file behind an earlier breath complaint. It found and ducked the leading breath, plus a mid-utterance interval matching that complaint's own reported location. No tuning was requested on the tool's own default settings. It worked as shipped, first try, on real production material, the same calendar day the review had proposed it. It directly resolved an open blocker on that piece's own video pipeline.

two projects, one numberThe second validation, one day later

The first sibling project, the one whose full-episode listen-through started this, ran the tool at real scale the next day: a full episode, over an hour of source material chunked into more than sixty pieces. The detector held up across the whole run, not just the handful of files the earlier validation had checked. But the default settings produced a real, non-obvious side effect: ducking every detected breath to near-silence removed an audible pacing cue the ear had been using as a breathing-room signal, even though the actual gap duration never changed.

Muted silence read as rushed, timing or no.

Rather than guess, the sibling project A/B'd the exposed settings properly. One lever turned out not to matter at all. The other, how hard the duck attenuates, was the real one: a lighter setting cleaned the defect without erasing the pacing cue, and the sibling project promoted it straight into that episode's final render. Separately, and before either project compared notes, the second sibling project, the one that had run the tool on real production material the day before, had hit the same rushed-pacing problem on unrelated material and landed on the same number from its own testing. Two independent projects converging on the same fix to the same default is a real signal, not a coincidence, and the tool's own default has since changed to match.

2 hypotheses, untestedWhat's still open

The unconfirmed secondary detections from the first validation pass remain unresolved. Two of the review's five hypotheses, whether the reference clip's own breath character sets breath prominence, and whether per-chunk loudness normalisation amplifies it, were never separately tested. The ducking fix made both questions moot for the immediate problem, but they're still open if anyone wants the actual mechanism, not just the symptom.

None of that changes what already happened: a review corrected a genuine reasoning error made and reported as settled, a detector was validated against real judged data before a single line of mitigation code was written, and the resulting tool resolved a real production blocker on the same day it was proposed.