Files
hpr-intro-stripper/hpr_stripper/markers.json
T
Lee Hanken 2bef06d108 Add politeness delay between requests, fix two more marker gaps found by smoke-testing
- config.py/fetch.py: enforce a minimum gap between any requests to HPR's
  servers (fetch._wait_for_politeness_gap()), regardless of which
  function issues them. Not needed for someone who already understands
  HPR's infrastructure, but a real consideration for a future user who
  doesn't -- a sweep makes several requests per episode across thousands
  of episodes.
- markers.json (version 3): found via the same random-sample-then-
  visualize technique used for the earlier hpr4775 fix. hpr2157's era
  apparently used the bare 'HPR episode' rather than 'Hacker Public Radio
  episode', which fell all the way through to a much weaker sibling-
  correlation fallback (3.25s) instead of a proper marker match (now
  15.1s); Whisper tiny mis-hearing 'Today's' as 'To its' on hpr3356 broke
  the same marker a different way (8.0s -> 26.6s). hpr3356 itself is an
  unusual 282-minute special episode that remains correctly flagged for
  manual review even after the fix.
- docs/DESIGN.md: corrected an overstated claim ('retry with backoff')
  that was never actually implemented; documented the real smoke test
  (SIGINT mid-episode, resumed, interrupted again, resumed to
  completion -- no lost work, no stray subprocesses, no ledger
  corruption) and a real full-corpus timing estimate (32.1s/episode
  average on the hardest episode category, so on the order of 1-2 days
  for the full archive, not weeks).
- New regression tests for the politeness delay and both marker fixes.
2026-11-22 11:07:28 +00:00

42 lines
2.3 KiB
JSON

{
"version": 3,
"note": "Boilerplate phrase library for the station-added intro/outro. HPR's wording has drifted at least 4 times over its history (pre-2015: no spoken announcement at all; ~2015-2020: a simpler template, apparently using the bare abbreviation 'HPR episode' rather than the full 'Hacker Public Radio episode'; ~2020-2025ish: a fuller template with explicit date/series fields; ~2026: reworded again, e.g. 'the host is X and the duration is Y' / 'the flag is Y, and the license is Z' -- found via direct waveform/spectrogram inspection of hpr4775's real official SRT, where the old marker set stopped matching after segment 2 and silently under-trimmed) and will keep drifting. Add new phrasing here as it's spotted -- never hardcode it elsewhere. Some additions here are ASR mis-hearings rather than genuine wording changes (e.g. Whisper tiny hearing \"Today's\" as \"To its\", or \"is\" as \"in\") -- found the same way, by rendering a clip with tools/visualize_clip.sh and comparing a fresh transcript against the marker set on a real disagreement flag (hpr2157, hpr3356). 'strong' markers must be specific enough that a host could not plausibly say them by coincidence in their own recording; 'greeting' markers can only extend an already-established run, never start one on their own (see hpr0500 in docs/DESIGN.md for why that distinction exists).",
"strong_intro_markers": [
"hacker public radio episode",
"hbr episode",
"hpr episode",
"todays show is entitled",
"to its show is entitled",
"todays show is titled",
"been titled",
"is part of the series",
"in part of the series",
"is hosted by",
"it is posted by",
"the host is",
"and the duration is",
"minutes long",
"clean flag",
"explicit flag",
"the flag is clean",
"the flag is explicit",
"and the license is",
"the summary is",
"this summary is",
"this time is",
"brought to you by an honesthost"
],
"greeting_intro_markers": [
"welcoming you to hacker public radio",
"welcome to hacker public radio episode"
],
"outro_markers": [
"you have been listening to hacker public radio",
"as hacker public radio does work",
"was contributed by a listener",
"contribute link to find out",
"hosting for hpr has been kindly provided",
"hosting for hbr has been kindly provided"
]
}