Transcriber CLI: audio and video to text and subtitles
A command-line tool that turns audio, video, folders or a live microphone into text and SRT subtitles, using Deepgram in the cloud or faster-whisper on the local CPU.
The problem
I wanted one command that turns any recording into a transcript or a subtitle file, in English, Urdu or Hindi, and lets me choose between a cloud engine and a local one.
How I built it
I wrote a Python command-line tool with two interchangeable engines behind one interface: Deepgram Nova-3 in the cloud and faster-whisper on the local CPU. It takes a single file, a whole folder or the live microphone, shows progress in the terminal, and writes .txt or .srt files only when asked, so it does not fill the disk with exports. A small batch wrapper puts a global transcriber command on the PATH.
What got hard
- The two engines return different shapes of result, and SRT export needs timestamps from both.
The Deepgram engine returns the same kind of segment objects as the local engine (start, end, text, built from Deepgram's utterances), so the command-line code and the SRT writer do not need to know which engine ran.
- Loading a Whisper model on a machine with little free memory failed with an allocation error.
The tool recognises memory errors at model load and says what to change: a smaller model, fewer CPU threads (a --threads flag, four by default) or closing other applications.
The result
A command-line tool of about 440 lines, released as V2.0.0 on 2 January 2026 with explicit save flags and a live-listen mode that ends on a spoken stop phrase. The Deepgram engine followed on 27 April 2026.
The ← and → keys turn the page too.