Files
claudetools/projects/radio-show/audio-processor/test-data/transcripts/2014-s6e19/diarization.json
Mike Swanson c760e430c0 radio: bumper detection in diarizer + full archive download script
Adds a transcript-driven bumper filter to the diarization pipeline. When
a transcript segment matches qa_extractor's promo/bumper signatures, the
overlapping audio windows are labeled BUMPER and the WavLM cosine match
is skipped. Prevents music/promo from being matched against speaker
profiles (the failure mode Mike caught in 2018-s10e18 @ 09:20-10:05).

Code changes:
- src/voice_profiler.py: identify_speakers() takes optional skip_ranges
  parameter; windows whose midpoint falls in a skip range get labeled
  "[bumper]" and skip cosine match
- src/diarizer.py: diarize() takes optional transcript_path; pre-computes
  bumper time ranges via qa_extractor._is_promo_or_bumper, passes to
  identify_speakers; adds BUMPER speaker label
- benchmark.py: passes transcript_path to diarize()

Aggregate impact across 9-episode test set:
  Tara attribution: 4880s -> 3680s  (-1200s / -25%)
  Q&A pairs: 17 -> 19 (+2)
    (bumper-flagged segments had been disrupting conversation detection
     in 2017-s9e30 and 2018-s10e18)
  CALLER total: 1320s -> 1190s  (bumpers previously labeled CALLER moved)
  Per-episode bumpers caught: 1-8, total ~165 bumper segments across set

Remaining Tara false positives are real callers acoustically similar to
Tara (Christopher in 2018, Kay in 2012, William and Charles in 2015) and
guest Clay in 2015-s7e19 — those need profile rebuild + Clay profile,
not bumper filtering.

Adds download_full_archive.py — resumable mirror-style downloader that
walks IX server's /home/gurushow/public_html/archive/{year}/ and copies
all MP3s to archive-data/episodes/. Run is in progress (~589 files,
~10-15GB). Used to source clean profile windows for the remaining
co-hosts (Tara rebuild, Clay, Tony, Rob, Randall, producers).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 16:17:50 -07:00

209 lines
3.8 KiB
JSON

{
"num_speakers": 4,
"speaker_map": {
"HOST": "HOST",
"CALLER": "CALLER",
"BUMPER": "BUMPER",
"CO-HOST": "CO-HOST"
},
"turns": [
{
"speaker": "BUMPER",
"start": 0.0,
"end": 35.0,
"confidence": 1.0
},
{
"speaker": "CO-HOST",
"start": 30.0,
"end": 40.0,
"confidence": 0.93
},
{
"speaker": "HOST",
"start": 35.0,
"end": 200.0,
"confidence": 0.98
},
{
"speaker": "CO-HOST",
"start": 195.0,
"end": 260.0,
"confidence": 0.96
},
{
"speaker": "HOST",
"start": 255.0,
"end": 325.0,
"confidence": 0.98
},
{
"speaker": "CO-HOST",
"start": 320.0,
"end": 425.0,
"confidence": 0.98
},
{
"speaker": "HOST",
"start": 420.0,
"end": 605.0,
"confidence": 0.9
},
{
"speaker": "CO-HOST",
"start": 600.0,
"end": 650.0,
"confidence": 0.97
},
{
"speaker": "HOST",
"start": 645.0,
"end": 655.0,
"confidence": 0.98
},
{
"speaker": "CO-HOST",
"start": 650.0,
"end": 665.0,
"confidence": 0.96
},
{
"speaker": "BUMPER",
"start": 660.0,
"end": 695.0,
"confidence": 1.0
},
{
"speaker": "CO-HOST",
"start": 690.0,
"end": 700.0,
"confidence": 0.95
},
{
"speaker": "BUMPER",
"start": 695.0,
"end": 740.0,
"confidence": 1.0
},
{
"speaker": "HOST",
"start": 735.0,
"end": 985.0,
"confidence": 0.87
},
{
"speaker": "CO-HOST",
"start": 980.0,
"end": 990.0,
"confidence": 0.96
},
{
"speaker": "HOST",
"start": 985.0,
"end": 1320.0,
"confidence": 0.98
},
{
"speaker": "CO-HOST",
"start": 1315.0,
"end": 1330.0,
"confidence": 0.92
},
{
"speaker": "HOST",
"start": 1325.0,
"end": 1505.0,
"confidence": 0.96
},
{
"speaker": "CALLER",
"start": 1500.0,
"end": 1510.0,
"confidence": 0.8
},
{
"speaker": "HOST",
"start": 1505.0,
"end": 1515.0,
"confidence": 0.85
},
{
"speaker": "CALLER",
"start": 1510.0,
"end": 1520.0,
"confidence": 0.81
},
{
"speaker": "HOST",
"start": 1515.0,
"end": 1550.0,
"confidence": 0.96
},
{
"speaker": "CO-HOST",
"start": 1545.0,
"end": 1555.0,
"confidence": 0.97
},
{
"speaker": "HOST",
"start": 1550.0,
"end": 1810.0,
"confidence": 0.91
},
{
"speaker": "CO-HOST",
"start": 1805.0,
"end": 1825.0,
"confidence": 0.93
},
{
"speaker": "HOST",
"start": 1820.0,
"end": 2055.0,
"confidence": 0.97
},
{
"speaker": "CO-HOST",
"start": 2050.0,
"end": 2060.0,
"confidence": 0.87
},
{
"speaker": "HOST",
"start": 2055.0,
"end": 2120.0,
"confidence": 0.94
},
{
"speaker": "BUMPER",
"start": 2115.0,
"end": 2165.0,
"confidence": 1.0
},
{
"speaker": "CO-HOST",
"start": 2160.0,
"end": 2170.0,
"confidence": 0.97
},
{
"speaker": "HOST",
"start": 2165.0,
"end": 2700.0,
"confidence": 0.97
},
{
"speaker": "CO-HOST",
"start": 2695.0,
"end": 2710.0,
"confidence": 0.98
},
{
"speaker": "HOST",
"start": 2705.0,
"end": 2910.0,
"confidence": 0.98
}
]
}