Berkshire County Scanner.

A continuous speech pipeline and public transcript feed for Berkshire County radio traffic, which I built and operated until September 2026.

Retired September 29, 2026Archived engineering case study

An aluminum desktop display showing the Berkshire County Scanner public transcript feed.
Archived view of the public transcript feed
My role
Pipeline, web service, operations
Stack
PythonFastAPIPostgreSQLOpenAI speech-to-text
Status
Retired September 2026

What I built

I built and operated the path from radio audio to a searchable web feed. Audio was converted to 16 kHz PCM, filtered by an energy-based speech detector, transcribed with OpenAI’s gpt-transcribe, and posted to a FastAPI and PostgreSQL service. Bounded queues, freshness monitoring, and feed failover kept the pipeline useful through interruptions.

Engineering decisions

Bounded capture

Captured segments waited in a bounded queue of 20. If transcription fell behind, the queue dropped a segment instead of growing without limit. Each segment got two transcription attempts with a timeout, and a watchdog restarted the pipeline after 15 minutes without progress.

Monitoring useful output

A running container does not prove new transcripts are arriving. The service’s health check only asked whether it was up, because a quiet night on the radio shouldn’t restart it. A separate freshness endpoint reported stale after 15 minutes without a transcript, and I got an email after an hour.

Feed failover

The pipeline listened to one scanner feed at a time. If the primary feed stayed silent for two hours, longer than a normal quiet stretch, capture switched to a backup feed so an upstream outage would not quietly end the transcript.

Speech recognition as a dependency

Voice activity detection gated audio before it reached the recognizer, and the transcription provider was a configuration setting, which let me switch providers in August 2026 with the old one kept as a rollback.

Architecture

How radio audio became a searchable transcript.

  1. Radio audio16 kHz PCM capture
  2. Speech gateEnergy VAD
  3. Bounded queue20 segments, 2 attempts each
  4. TranscriptionOpenAI gpt-transcribe
  5. Public feedFastAPI and PostgreSQL

The tradeoff

A bounded queue keeps memory predictable during an outage, but it can drop audio. Freshness checks, alerts, and feed failover make any gap visible and short instead of silent. The interactive example on the Engineering page shows the same retry and backpressure ideas with sample data.

Try the retry and backpressure example