whisper.cpp: transcribe audio on your laptop without uploading the file
Convert the clip to 16-bit wav, pick a multilingual model, and pass -l vi or -l en yourself. The quick start’s English model will not do this job.
whisper.cpp is a C/C++ build of OpenAI’s Whisper model. The README describes it as running without extra library dependencies, on the CPU, and on Apple Silicon via Metal, with CUDA, Vulkan, and ROCm builds when you turn them on. The audio you point it at stays in the command you run. Nothing in the transcribe command sends the file to a speech API.
The model weights are a separate download. download-ggml-model.sh fetches them once from the network. After that file is on disk, a transcribe does not need the network. This note is the path that keeps a recording on the machine, and the three defaults that quietly transcribe the wrong language.
When the binary is the right tool
Paste a meeting into a cloud notetaker when you have already decided the audio may leave, and when you want a bot more than a file. A local chat model such as Ollama does not transcribe. It will invent a summary of a transcript you never gave it. whisper.cpp is the right layer when you have a file, a laptop, and a reason to keep the bytes at home: a client call, an interview you have not cleared, a Vietnamese episode you still have to check by ear.

The model download uses the network once. The transcribe command does not upload the recording.
The project’s quick start clones https://github.com/ggml-org/whisper.cpp.git, builds with cmake -B build and cmake --build build -j --config Release, and runs ./build/bin/whisper-cli -f samples/jfk.wav after download-ggml-model.sh base.en. That demo is an English sentence. Copying it onto a Vietnamese file is the mistake the rest of this note exists to prevent.
Make a wav, then say the language
The quick start says the whisper-cli example currently runs only with 16-bit WAV, and it gives the conversion:
ffmpeg -i input.mp3 -ar 16000 -ac 1 -c:a pcm_s16le output.wav
That line is 16 kHz, mono, 16-bit PCM. Use it even if a later section of the same README transcribes an .opus file, and even if whisper-cli -h lists flac, mp3, ogg, and wav. A decoder mismatch looks like a bad model. The wav line removes that variable.
Download a multilingual model, not an .en model. The README’s make targets include tiny, base, small, medium, large-v3, and large-v3-turbo, plus tiny.en, base.en, small.en, and medium.en. The .en files are the English-only builds. base.en is what the quick start downloads. For any language other than English, the script to run is the one without .en:
sh ./models/download-ggml-model.sh small
The CLI help text in examples/cli shows -l / --language defaulting to en, with auto as the way to guess. Guessing is how a Vietnamese opening gets a wrong language for the rest of the file. Pass the code yourself.
./build/bin/whisper-cli \
-m models/ggml-small.bin \
-f output.wav \
-l vi \
-otxt -osrt \
-of transcripts/clip
-otxt and -osrt write a text file and a subtitle file. -of is the path without an extension. Swap -l vi for -l en when the recording is English. There is no accuracy trophy for jumping straight to large-v3. The README’s memory table lists small at 466 MiB on disk and about 852 MB in memory, medium at 1.5 GiB and about 2.1 GB, and large at 2.9 GiB and about 3.9 GB. Prove the command on small. Move up only when the two-minute check fails.

If the first name is wrong, a longer file will not average out. Fix the flag or the model, then test a new two minutes.
That last box is the whole quality bar. Type one line by ear before you read the output, including a name and a number. The method, including tone marks and a second speaker, is the Vietnamese transcription check. A subtitle file with timestamps is not a pass. A matching name is.
--prompt on the same help text is an initial prompt, capped at half the text context. Use it for a short list of names and product words the recording actually contains. A long prompt steers the decoder. If you add one, run the two-minute check again. The words can change.
Silence, quantization, and a GPU
Long files full of silence waste the run. The README’s voice-activity section turns that on with --vad plus a VAD model. The documented download is:
./models/download-vad-model.sh silero-v6.2.0
./build/bin/whisper-cli \
-m models/ggml-small.bin \
-vm models/ggml-silero-v6.2.0.bin \
--vad \
-l vi \
-f output.wav
The VAD model marks speech, and only those segments are passed to Whisper. The same section says --vad-speech-pad-ms adds padding before and after each segment so the edges of a word are not cut off. Leave the thresholds alone until a real clip loses a word at a boundary. Then add padding. Do not start by copying a threshold from a blog.
Quantizing is a disk and memory move, not a quality promise. The README’s example builds the quantize binary and writes a Q5_0 file:
./build/bin/quantize models/ggml-small.bin models/ggml-small-q5_0.bin q5_0
Run the two-minute check on the quantized file before you delete the one that already passed. “Less memory” is the claim the README makes. “Same words” is the claim you still have to test.
Apple Silicon runs on the GPU through Metal in a normal build. The README also documents a Core ML encoder for the Apple Neural Engine, generated with Python and enabled at build time, with a slow first run while the model is compiled for that device. NVIDIA needs a CUDA build: cmake -B build -DGGML_CUDA=1, then the same whisper-cli. A CPU build on a machine that has a GPU is not a bug in the audio. It is the flag you did not pass.
Docker is the path when you would rather not install a compiler. The image ghcr.io/ggml-org/whisper.cpp:main includes the executable, curl, and ffmpeg, for linux/amd64 and linux/arm64. main-cuda is the CUDA image, linux/amd64 only. The published example mounts a model folder and an audio folder and runs whisper-cli against those paths. It also shows whisper-server --host 0.0.0.0 with port 8080 published, and a curl upload to /inference with no token in the example. That server is a local demo. Do not forward 8080 to the internet. The recording would leave the machine through a route the README does not authenticate.

Each trap still produces a file with timestamps. The timestamps are not the check.
What to do with the text
Open the .srt next to the audio and run the two-minute check before the file goes to an editor or a chat. A cloud chat can punctuate a transcript you paste. It cannot repair a language you never set, and the paste is the moment the recording’s words leave the laptop. For a meeting, the boundary is the same one as notes that stay private: local text first, a redacted extract if a cloud tool has to see anything. Which hosted product to pay for, once you have decided the audio may leave, is the transcription board.
Related
- Check Vietnamese transcription before you publish — the two-minute reference this command is measured against
- Check captions against a trusted transcript — the SRT holds the times; the transcript holds the words
- Meeting notes without leaks — what may leave the machine after you have text
- Ollama — a local chat model, which does not transcribe
- Piper — the opposite direction, text into a wav, still on the machine
- Free speech-to-text tiers — recurring $0 paths, including this binary, scored from published pages
- Transcription tools — hosted products, once uploading the file is an acceptable decision
Share