audio_transcriber
Local Hebrew and English audio transcription on macOS, Windows and Linux, with
optional speaker labels. One interactive Python script: point it at a
recording, get a timestamped transcript, and, if you want, one that says who
said what.
Nothing is uploaded. Every model runs on your computer, and the only network
access is a one-time download of model weights.
Whisper runs on one of two engines, picked automatically:
| Machine | Engine | Runs on |
|---|
| Apple Silicon Mac (M1 or newer) | mlx-whisper | The Mac's GPU, through MLX |
| Windows (x64), Linux, Intel Mac | faster-whisper (CTranslate2) | An NVIDIA GPU if set up, otherwise the CPU |
Both engines use the same decoding settings, both decode greedily, and both
use the same model family per language. Transcripts from different machines
are close but not identical: the engines are separate implementations, the CPU
runs 8-bit weights, and Hebrew on the CPU uses the smaller turbo model (see
Models). Windows on ARM is not supported: CTranslate2 publishes no
package for it.
Intel Macs get faster-whisper on the CPU, but that combination has not been
tested. Speaker labelling cannot be installed on an Intel Mac at all: PyTorch
no longer publishes Intel Mac builds new enough for pyannote.
What has been run for real. On Windows 11 with an NVIDIA RTX 4090 and
an Intel i9-14900K: py install.py --gpu --with-diarization, and a Hebrew
transcription on the GPU, on the CPU, and with speaker labels on the GPU
(see Speed). The CPU path of faster-whisper has also been run on a
Mac, forced with TRANSCRIBE_ENGINE=faster-whisper. Not yet run: anything on
Linux, and speaker labelling on a Windows machine without an NVIDIA GPU.
Those are built from the library documentation and covered by unit tests
with fakes.
Requirements
Setup
macOS and Linux:
git clone <your-repo-url>
cd audio_transcriber
./setup.sh # transcription only
./setup.sh --with-diarization # transcription + speaker labels
Windows (PowerShell or Command Prompt):
git clone <your-repo-url>
cd audio_transcriber
py install.py # transcription only
py install.py --with-diarization # transcription + speaker labels
py starts the newest Python installed. faster-whisper needs onnxruntime,
which has no prebuilt package for Python 3.15 yet, so on 3.15 or newer the
installer warns that the install may fail. If it does, pick an older Python,
for example py -3.13 install.py.
install.py does the work on every platform; setup.sh just runs it with the
same arguments. It checks the Python version and ffmpeg, creates .venv, and
installs requirements.txt, whose markers pick mlx-whisper on Apple Silicon
and faster-whisper everywhere else. The --with-diarization flag adds
pyannote.audio on top.
--venv-dir PATH creates the environment in that folder instead of .venv;
the requirements files are still read from the project folder. The
Claude Code plugin uses it to keep its environment
outside the plugin folder, which Claude Code replaces on every update. Without
the flag nothing changes.
--with-diarization is the main decision at setup time. Speaker labelling
needs PyTorch, which is ~1.2 GB of dependencies that plain transcription
never touches, so it is kept separate rather than imposed on everyone. You can
add it later by re-running with the flag; nothing else changes.
NVIDIA GPU (Windows and Linux)
Add --gpu to use an NVIDIA GPU:
py install.py --gpu # Windows
./setup.sh --gpu --with-diarization # Linux, with speaker labels
It installs cuBLAS for CUDA 12 and cuDNN 9 from pip (nvidia-cublas-cu12,
nvidia-cudnn-cu12), which faster-whisper needs on the GPU. With
--with-diarization it also installs a CUDA 12 build of PyTorch from
https://download.pytorch.org/whl/cu126 before pyannote, so speaker labelling
uses the GPU too. Any torch already installed is removed first, because pip
would otherwise keep an existing CPU build as "already satisfied".