feat(transcribe): add local Whisper transcription helper#60
Open
abman4444 wants to merge 1 commit into
Open
Conversation
Adds helpers/transcribe_whisper.py — a drop-in alternative to the ElevenLabs Scribe transcribe.py helper for users who don't have an API key or prefer a free, offline option. - Uses openai-whisper with word_timestamps=True to produce word-level timestamps matching the Scribe JSON envelope shape, so pack_transcripts.py, render.py, and the rest of the pipeline work unchanged - Caches transcripts per source (skips re-transcription on repeat runs) - Supports all Whisper model sizes (tiny → large); defaults to medium - Extracts mono 16kHz WAV via ffmpeg before transcription (same as Scribe path) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
helpers/transcribe_whisper.py— a drop-in alternative to the ElevenLabs Scribetranscribe.pyhelper for users who don't have an API key or prefer a free, fully offline option.Why
The existing pipeline requires an ElevenLabs API key for transcription. Users on free-tier accounts or those who want a zero-cost setup have no fallback. Local Whisper fills that gap.
How it works
openai-whisperwithword_timestamps=Trueto produce word-level timestampswords,text,language_code,alignment) sopack_transcripts.py,render.py, and the rest of the pipeline work unchangedtiny→large); defaults tomedium(good balance of speed and accuracy for English)Usage
Reviewer notes
openai-whisper(pip install openai-whisper) andffmpegon PATH, both already listed as setup dependenciesSummary by cubic
Add a local Whisper transcription helper that outputs Scribe-compatible JSON, enabling offline, zero-API-key transcription without changing the rest of the pipeline. Adds caching and model selection for better control and speed.
New Features
helpers/transcribe_whisper.pyusingopenai-whisperwithword_timestamps=True.words,text,language_code,alignment) sopack_transcripts.pyandrender.pywork unchanged.ffmpegbefore transcription.tiny→large); defaults tomedium. Optional--language.Dependencies
openai-whisperandffmpegavailable on PATH.Written for commit ff6884c. Summary will update on new commits.