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
stale after 15 minan email after 1 ha backup feed after 2 h
02 h without a transcript
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.
Radio audio16 kHz PCM capture
Speech gateEnergy VAD
Bounded queue20 segments, 2 attempts each
TranscriptionOpenAI gpt-transcribe
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.