Engineering Breakdown

How Local Whisper.cpp Dictation Runs in 35 ms on Apple Silicon Metal (and Works on macOS 12 Intel & Linux)

By Michael Smolkin · Published November 25, 2026

Short answer. FlowSpeak embeds static whisper.cpp v1.9.5 and miniaudio.h directly inside a Go + AppKit menu-bar binary (~11 MB Universal DMG + local Whisper model, 141 MB default, or reuse existing GGML models on disk), keeping weights hot in memory so Apple Silicon Metal transcribes ggml-base.en.bin in ~35 ms with zero subprocess startup overhead.

Spawning a standalone whisper-cli subprocess every time you press a hotkey wastes hundreds of milliseconds loading weights from disk before decoding a single frame of audio. Keeping the model pinned inside the running Go process via static CGo bindings cuts transcription overhead down to raw GPU or SIMD inference time.

1. Universal macOS 12+ Metal and Intel AVX2 slices without Homebrew

Short answer. FlowSpeak compiles separate arm64 (Metal + Accelerate) and x86_64 (Accelerate + AVX2, Metal disabled) static archives targeting CMAKE_OSX_DEPLOYMENT_TARGET=12.0, producing a single Universal binary with zero external /opt/homebrew dylib dependencies.

Lots of indie Mac apps silently drop macOS 12 Monterey or Intel MacBook Pros when they link modern Swift frameworks or Homebrew shared libraries. Building static libraries per architecture ensures FlowSpeak installs cleanly onto an M5 Mac Studio or a 2015 Intel Mac running Monterey just by dragging the app into Applications.

2. Verified English & 99-language GGML Whisper models with SHA-256 verification and HTTP Range resume

FlowSpeak downloads models directly from Hugging Face into your local Application Support folder, verifies SHA-256 digests automatically, and supports byte-range resume so an interrupted download picks up where it left off rather than restarting from zero.

3. Deterministic cleanup, mid-sentence casing, password guards, and spoken formatting

Short answer. FlowSpeak runs deterministic formatting in under 1 ms, reading macOS Accessibility cursor context via NLTagger (while skipping password fields under IsSecureEventInputEnabled) to lowercase continuations mid-sentence and converting spoken new line, tilde slash, and https slash slash phrases into literal characters.

Instead of waiting 500 ms for a cloud text model to reformat every sentence, FlowSpeak removes Whisper silence markers, collapses stutters, strips hesitation fillers (um, uh, erm), rewrites Personal Dictionary terms, exports local dictation history to Markdown or JSON, and parses spoken slashes and URLs while leaving ordinary English prose (like "slash prices") untouched. Audio hardware opens only after your hold clears 150 ms and closes on release, avoiding idle mic battery drain or constant Bluetooth audio profile drops. If you want heavier grammar rewriting, you can opt into your own local Ollama server or API key stored in OS Keychain.

4. Linux X11/Wayland support and Apple notarization

On Linux (4.2 MB amd64 binary + local Whisper model), FlowSpeak supports X11 (xclip/xdotool), Wayland (wl-clipboard/wtype), and compositor IPC keybinds (flowspeak --ipc down / --ipc up). On macOS, both the inner FlowSpeak.app and outer DMG are Developer ID signed, Apple notarized, and stapled for direct Gatekeeper launch. Read more on our engineering story on smolkin.org.

Benchmark FlowSpeak on your own machine

Try 25 free dictations with automatic first-run base model setup (or automatic reuse of existing GGML weights on disk), install via brew install --cask smolkapps/tap/flowspeak, or inspect public releases and checksums on GitHub.