Files
hpr-intro-stripper/docs
Lee Hanken fcfa1f1c6c Fix gap-bridging correlation, a marker-normalization bug, and add sponsor ad-read markers
- audio.py: last_high_correlation_run_seconds() replaces a simple
  leading-run count for the theme.flac correlation specifically. The TTS
  speech is mixed additively onto the theme bed (sox -m), so correlation
  predictably drops once speech masks it even though the theme is still
  playing underneath; the old algorithm couldn't recover once correlation
  legitimately resumed afterwards (a genuine silence/instrumental gap
  before the host's own content). Requires the first qualifying run to
  start near the beginning, so a later island of coincidental correlation
  is never trusted without a confirmed anchor. Verified live: hpr4775 now
  resolves to 40.5s, matching the real boundary (confirmed by waveform
  inspection) almost exactly, instead of 27.3s.
- markers.py: fixed fuzzy_contains() comparing a raw (un-normalized)
  marker string against normalized text -- a marker containing
  punctuation, like 'archive.org', could never match. Found by a failing
  test, not by inspection.
- markers.json (version 4): enumerated the two sponsor ad-read scripts
  observed so far (anhonesthost.com, archive.org/Internet Archive) as
  markers, the same way outro_markers are -- not a generic 'small gap
  after a match still counts' heuristic, which was considered and
  rejected since it would swallow a host's own content whenever they talk
  immediately after the TTS block with no gap, which is the common case.
- docs/DESIGN.md: marked the silence-gap limitation resolved, documented
  the normalize bug, and added a short discussion of why general
  music/audio detection wouldn't have solved the sponsor-ad-read problem
  (it's audio-feature-identical to host speech) even though it was and
  remains the right tool for the music-bed boundary specifically.
- New regression tests for the correlation fix and both marker additions.
2026-11-22 11:51:46 +00:00
..