Building a Local Podcast Transcription Pipeline with Whisper and Pyannote
After years of recording Home Gadget Geeks, I have hundreds of conversations that are still worth listening to. We have talked about everything from home servers and network storage to home automation and artificial intelligence.
The problem is that much of that knowledge is locked inside audio files. Even I sometimes struggle to remember which episode contained a particularly useful conversation. I wanted to change that.
I already had the most important ingredient: the original audio.
I had been using Otter for transcription, but the size of the archive made me increasingly interested in doing more of the work at home. With OC Compute available, I finally had a machine I could dedicate to that problem. The goal was not to run Whisper once and admire the output. I wanted something I could start, walk away from and eventually trust with hundreds of recordings.
Thanksgiving weekend gave that idea a real test. The GPU did useful work, but a missing source path and two very different timing problems stopped the batch. Those interruptions turned out to be some of the most useful lessons of the project. Let me walk you through how the system works and what happened when it broke.
Throughout this article, I have included practical prompts you can use with ChatGPT, Claude or another AI assistant to explore a similar project with your own equipment.
In this article
- A pipeline rather than a single model
- Calibrating on a real episode
- Moving the work into a repeatable production runner
- November 29 production recovery: the HGG300 source path
- November 29 production recovery: HGG282 and decoded audio duration
- November 29 production recovery: HGG271 endpoint rounding
- Keeping the archive moving through isolated failures
- Monday evening: reaching the beginning of the archive
- Taking the workflow to Cyber Frontiers
- Recovery status and next engineering steps
- Validating the delivery mechanism
- Preserving the original speech
- What happens after transcription
- Designing the handoff around artifacts
- Quality gates before publication
- Locating the delivered transcript
- What I still want to measure
- What I learned from building this
- Thanksgiving 2026 technology series
A pipeline rather than a single model
When people hear local transcription, they often think of a single program producing a text file. For a podcast with several speakers, that is only part of what I need.
The production design uses Whisper for speech recognition, Pyannote for speaker diarization, an alignment and export stage, checksum validation, backup and Google Drive delivery. The source is the original MP3 on Unraid. The RTX 3060 Ti has 8 GB of VRAM, so the documented workflow runs the GPU stages sequentially.
Speech recognition and diarization answer different questions. Recognition estimates what was said. Diarization estimates when different speakers spoke. Assigning a real host or guest name to a speaker cluster is a separate editorial task. I do not want a plausible name substituted for an uncertain speaker just to make the transcript look complete.
Try This With AI: Plan a local transcription system
I have a collection of podcast recordings that I want to transcribe locally. Explain speech recognition, speaker diarization and speaker identification. Ask about my computer, GPU, operating system and audio formats. Recommend a small pilot before processing the entire archive.
Calibrating on a real episode
HGG569 was an early calibration episode. The checkpoint receipt records 26 files totaling 7,987,001 bytes, with 25 payload checksum checks passing. The distinction is that the checksum manifest is itself an additional file. These checks establish artifact integrity, not acoustic accuracy.
Moving the work into a repeatable production runner
The Gold Standard production runbook identifies the local runner as follows:
~/.local/bin/hgg-restore EPISODE
This is the documented entry point, not a complete public installation tutorial. The exact dependencies, model versions, environment and runner source need to accompany any reproducible setup guide. The first five-episode pilot called for HGG554, 553, 552, 551 and 550 to run sequentially, preserving successful packages and continuing past a failed episode without publishing incomplete output.
Try This With AI: Build a repeatable workflow
Help me design a local transcription runner that accepts an episode number or audio filename. Include source validation, separate recognition and diarization stages, checkpoints, structured output, logging and checksum verification. Explain how to resume safely without repeating completed work.
November 29 production recovery: the HGG300 source path
The first Sunday interruption was a good reminder that the most expensive part of an AI system is not always the part that fails. Sometimes the computer simply cannot find the file.
The overnight archive run completed HGG301 at 2:41 a.m. Central, then stopped at HGG300 with Expected one canonical MP3; found 0. A recursive search found the original file beneath the Home Gadget Geeks audio archive, and its SHA-256 matched the previously approved source. The hardcoded exception omitted intermediate directories relative to the archive root.
ARCHIVE = Path("/path/to/archive")
# Corrected exception, relative to ARCHIVE:
"300": "Podcasts/Home Gadget Geeks/Audio Final (All)/300/HomeTechPodcast300F.mp3"
I backed up the runner, corrected that one exception and retained the original hash check. The batch resumed at HGG300 rather than reprocessing HGG301. HGG013 has a separate hardcoded exception that still needs path verification; this repair did not change it.
November 29 production recovery: HGG282 and decoded audio duration
The next interruption was more subtle. The audio had already been processed by both models. I had useful results sitting on disk, but the last stage refused to produce the transcript. Starting the whole job again would not have addressed the underlying problem.
At 10:11 a.m. Central, HGG282 stopped during deterministic export after both Whisper and Pyannote checkpoints passed. The exporter requires each diarization interval to be positive and to end no more than 50 milliseconds beyond the recorded audio duration. Two final intervals ended at 4786.574 and 4792.345 seconds, while FFprobe had reported 4782.607067 seconds.
Decoding the original MP3 to a null output with FFmpeg showed an audio duration of about [1:19:53].57. A second verification counted mono 16 kHz signed 16-bit PCM bytes, obtaining 4793.6 seconds. The FFprobe estimate was about 11 seconds (0.23%) short; the underlying reason for the estimate has not been established. The decoded PCM timeline is the appropriate duration reference for the processed audio. I verified the original MP3 hash before backing up and correcting the runner’s separate working metadata file, not the MP3 itself. Neither speaker interval was trimmed or discarded.
ffmpeg -hide_banner -nostats -i "$audio" -vn -f null -
# Stream decoded mono 16 kHz signed 16-bit PCM:
# ffmpeg -v error -i "$audio" -map 0:a:0 -ac 1 -ar 16000 -f s16le -
# decoded_duration = pcm_bytes / 32000
I patched the production runner after Whisper checkpoint validation to stream and count decoded PCM bytes, verify a successful decode and update working duration metadata atomically when the discrepancy exceeds 50 milliseconds. It retains the original FFprobe measurement and a backup of the previous source metadata. If a pre-existing export conflicts with a new duration, it stops for review rather than silently changing completed artifacts. The original audio and raw transcription remain untouched.
The recovered HGG282 export took 0.94 seconds and reported 1,089 segments, 16,799 display words, 16,901 word records and three anonymous speaker clusters. Of the word records, 597 had unknown labels, giving approximately 96.47% cluster attribution coverage; 146 segments were unknown and 131 were mixed. Segment time coverage was approximately 96.90%, a different metric. The original inference run took 267.3 seconds for Whisper and 100.2 seconds for diarization; both checkpoints were reused on recovery. Relative to the decoded duration, that is approximately 17.9× and 47.8× real-time speed respectively, or 13.0× sequentially, excluding other pipeline stages. These figures describe one episode with model configuration unspecified. The Whisper job reported a 2,439 MiB peak; the counter source is unconfirmed and Pyannote peak memory was not measured. Display words and structured word records are separate counts; the exact reason for their difference has not yet been reconciled. The export reported no repetitive segments or identical segment groups repeated at least three times. These mechanical checks do not establish recognition or speaker identity accuracy.
At 10:43:15 a.m. Central, the runner reported HGG282 COMPLETE, verified the restoration and handoff manifests, delivered five files to Google Drive and started HGG281. The runtime log confirmed reuse of both GPU checkpoints and the recovered export. Recorded cloud inference cost was $0.00, excluding hardware and electricity. At that checkpoint the descending HGG300–HGG001 run had completed 19 episode numbers.
One reporting issue remains: the final receipt still prints the original FFprobe duration in its audio_seconds field, while the exported quality report contains the corrected 4793.6-second duration. This does not invalidate the export, but it should be reconciled before aggregate throughput reporting. I also want the archive runner to record isolated failures and continue safely; the observed overnight runner stopped on both exceptions, so that resilience improvement is not yet demonstrated.
Try This With AI: Troubleshoot a failed transcription pipeline
My AI processing stages completed but export failed. Help me investigate decoded audio duration, timestamps, speaker intervals and validation rules. Start with read-only diagnostics. Preserve the original audio and successful checkpoints, and explain the problem before recommending changes.
November 29 production recovery: HGG271 endpoint rounding
I would have liked the HGG282 repair to be the end of the story. Instead, the next interruption showed that two failures with similar error messages can have different causes.
After ten more episodes completed in approximately 70 minutes (roughly seven minutes per episode, not a controlled benchmark), HGG271 stopped at 11:53 a.m. Central. FFprobe measured 4778.912 seconds, decoded audio measured 4778.904 seconds, and the final speaker interval ended at 4778.964 seconds. That exceeded the stored duration by 52 milliseconds, the decoded duration by 60 milliseconds and the existing tolerance by two milliseconds. It was a genuine endpoint overrun relative to either duration. The decoded duration patch had retained the original measurement because its discrepancy was below 50 milliseconds.
I backed up and patched both exporter copies to accept positive intervals beginning before the stored duration and ending within 100 milliseconds of it, then clip their ends to the stored duration for alignment. The raw RTTM and transcript were not edited. The 100-millisecond threshold is an engineering choice, not a Pyannote standard. Script consistency and Python syntax checks passed, and a retry began at 12:59 p.m. Central with the existing Whisper checkpoint. A direct check of the active production log later confirmed that the retry succeeded and all five artifacts reached Google Drive. HGG270 completed, HGG269 failed once in diarize.py and recovered on retry, and HGG268 through HGG257 completed. At 2:49:52 p.m. Central on November 29, HGG257 delivered its five files and HGG256 entered the Whisper stage. The reason for maintaining two exporter copies and the exact patch deployment mechanism still need confirmation.
Keeping the archive moving through isolated failures
Recovering one episode is satisfying. Recovering a long overnight batch without losing hours of productive work is the bigger goal. These incidents exposed the difference.
Inspection of the outer Bash batch runner revealed an explicit exit after any failed episode. The replacement design retains completed-receipt checks, logs failures with timestamp, run ID, episode and exit code in a persistent TSV failure ledger, continues descending through the archive and reports a nonzero final status if any episode needs review. It also validates completion receipts after successful runner invocations and preserves operator interruption behavior. The proposal does not weaken per-episode validation or delete checkpoints. By Monday evening, the production log demonstrated that isolated failures were recorded and the batch continued. Full testing of shared-environment failures and circuit-breaker behavior remains unconfirmed.
Monday evening: reaching the beginning of the archive
By [7:26] PM Central on November 30, the runner had reached HGG001. What began as an experiment with one recording had become a production workflow that completed 261 of 269 episodes in the final descending batch, or 97.03%. Eight isolated failures were recorded in a persistent exception ledger, and the batch continued past them.
Those exceptions were HGG171, HGG133, HGG132, HGG126, HGG123, HGG075, HGG043 and HGG027. A separate recovery session was waiting for the Cyber Frontiers batch to finish. This is a batch completion milestone, not a claim that every episode in the historical archive is restored or published.
Taking the workflow to Cyber Frontiers
The next test was whether the same approach could work for another podcast. By [9:32] PM, the Cyber Frontiers runner had logged six completed episodes after its initial CF049 pilot: CF053, CF055, CF067, CF066, CF065 and CF056. CF054 was in processing. Eight existing transcript candidates had been identified and CF042 was deferred because media was missing.
CF056 provides another useful observation: 4,295.21 seconds of audio, 298.94 seconds of reported processing, 11,942 words, 740 segments, two anonymous speaker clusters and 56 unknown segments. The receipt reported 96.42% coverage and five delivered files. The audio-to-processing-time ratio is about 14.37 times real time, but the timing scope has not been reconciled with the HGG282 inference-only measurement. Coverage is not accuracy.
The Cyber Frontiers runner checks completion receipts, records failures and checks for GPU contention. The recovery session waiting for that batch is a practical example of coordinating workloads on a single GPU. I have not yet established the results of the eight HGG recovery jobs.
Across these 261 HGG batch completions and seven Cyber Frontiers completions including the pilot, the standard five-file package implies 1,340 deliverables. That is a calculated expectation, not an independently verified inventory of Google Drive.
December 1 production update: At [2:07] AM Central, the Cyber Frontiers batch finished with 57 new completions, zero failures and exit code 0. Including the earlier CF049 pilot, that brings the processed queue to 58 episodes. Eight existing transcript candidates still need review, and CF042 remains deferred because of missing media.
At [2:14] AM, the Home Gadget Geeks recovery run finished with all eight exceptions recovered, zero failures and exit code 0. The final 269-episode HGG batch therefore reached 269 completions. Together with the 58 Cyber Frontiers completions, these runs account for 327 episodes and an expected 1,635 standard delivery files. This is not an independent Drive inventory or a claim that the entire podcast archive has been editorially restored.
The overnight results demonstrate why the recovery workflow mattered: isolated failures did not prevent the rest of the queue from completing, and a separate recovery run resolved the outstanding jobs. Human transcript accuracy and speaker identity still require independent review.
Recovery status and next engineering steps
| Change | Status at recorded checkpoint |
|---|---|
| HGG300 source path | Implemented; episode recovered |
| Decoded-duration runner patch | Verified on HGG282; subsequent trigger count unconfirmed |
| HGG271 endpoint tolerance | Applied; HGG271 retry and five-file delivery confirmed |
| Failure ledger and circuit breaker | Ledger and continuation demonstrated; circuit breaker testing unconfirmed |
| Receipt audio_seconds reconciliation | Proposed |
The proposed batch design should continue only after isolated episode failures, stop on shared environmental errors such as a missing mount, disk-full or CUDA failure, and stop after a configured number of consecutive failures. A preflight should verify all exception paths and approved hashes, including HGG013. The overnight batch stopped after HGG301 at 2:41 a.m.; the exact resume time is not established in this account.
I also propose always recording decoded PCM duration as the authoritative value, using one documented endpoint tolerance, recording runner and exporter versions or hashes in each receipt, and consolidating duplicate exporter implementations where practical. Backup locations, restore commands and atomic script deployment details need to be retrieved from the operational receipts before presenting them as reproducible instructions.
Validating the delivery mechanism
I used the existing shared storage and a Google Drive delivery workflow rather than manually copying transcript text between applications. One deployment manifest was checked from its own directory using:
sha256sum -c SHA256SUMS
The deployment document, requirements file, migration configuration and two runner files all returned OK. This validated the five deployment payloads; it did not establish that every future delivery would succeed.
Preserving the original speech
For publication, the structured output and display transcript are reconciled. The editorial process preserves speech in order, uses contextual evidence for speaker names and marks remaining ambiguity. Existing high-quality transcripts should not be replaced just because a newer machine generated another version.
HGG533 is an example: its restoration receipt records 21,190 display words preserved in order, 253 transcript paragraphs, 34 chapters and 99.40% contextual named-speaker coverage. That percentage is the proportion of words assigned a name, not a measured speaker identification or word accuracy score.
What happens after transcription
The completed transcript becomes the foundation for a useful opening narrative, topic sections, chapter links, FAQs, product inventory and contextual links. WordPress updates are guarded by a baseline and rollback copy. The publication receipt records content readback and remaining limitations. SEO and commercial qualification are separate operations.
Designing the handoff around artifacts
A durable transcript package is more useful than a successful chat response. It allows the next editorial step to resume without running speech recognition again. The structured transcript is the machine-readable source and the readable transcript supports editorial inspection. The checksum manifest detects accidental changes during transfer. A completed package should be identifiable by episode and source audio rather than just by a descriptive filename.
An early Windows-side attempt could not reach the source audio through SMB and lacked an authorized SSH transfer method. This was a real dependency problem, not a model-quality problem. Moving toward the dedicated Linux worker and established Unraid storage path made the location and availability of input artifacts part of the workflow.
Quality gates before publication
The editorial receipt should record the number of source segments, preserved words, contextual splits, named and unresolved words, and final transcript paragraphs. If the readable and structured outputs disagree, reconcile that discrepancy before preparing show notes. A checksum pass only establishes that the files match their manifest; it cannot tell me whether a name or a sentence was recognized correctly.
Existing transcripts deserve the same care. Some older episodes already have useful named-speaker transcripts. In that case a newly generated alternative is not automatically better, and preservation is often the right choice. The global update process can improve the surrounding post without rewriting the speech.
Locating the delivered transcript
Google Drive keyword search sometimes missed the delivered artifacts. Enumerating the known delivery folder directly was more reliable. That is why the runbook specifies the canonical delivery location rather than relying on a search for an episode number. I keep internal identifiers and access configuration out of the public article.
What I still want to measure
HGG282 provides a first inference-speed and Whisper memory data point. I still need repeatable measurements, exact model versions, the memory counter definition, Pyannote peak memory, end-to-end timings and reconciled aggregate delivery totals. A fair comparison with Otter would require matching audio and a representative human-checked reference. I am not claiming a particular cost saving or accuracy advantage without that evidence.
The important result so far is that local processing has become part of a real editorial workflow. The next step is to make the performance and reproducibility evidence as strong as the production handoff.
Try This With AI: Design a quality and performance benchmark
Help me create a repeatable benchmark for local podcast transcription. Include representative audio, human-reviewed recognition accuracy, diarization quality, processing time, peak GPU memory, checkpoint recovery, file integrity and electricity consumption. Explain how to compare local and cloud transcription without confusing speaker coverage with accuracy.
What I learned from building this
The most interesting part of the project wasn’t getting Whisper or Pyannote to run. It was discovering what happens when they become part of a real production workflow. The computer needed to find the correct files, preserve intermediate results, detect inconsistencies and deliver artifacts another system could use.
None of the failures described here required a faster graphics card. They required understanding the data and improving the software. Every completed episode creates another opportunity to make an old conversation accessible. It isn’t just about making technology work. It’s about making it useful.
Thanksgiving 2026 technology series
Part 4 of 6. New articles are published daily November 30 through December 5. Links to upcoming installments become available when those posts publish.
- The Black Friday Upgrade I Didn’t Buy — November 30
- Studio Command — December 1
- OC Compute — December 2
- Local Podcast Transcription (this article) — December 3
- Distributed Home Lab Monitoring — December 4
- Podcast Archive Restoration — December 5


