Retour à Références & Ingénierie
· Granis Team
Sub-0.5s Local Dictation on Apple Silicon: Progressive Silence-Chunked Decoding
Early in 2026, local Whisper dictation on my M4 Max felt sluggish even though the GPU itself took only
~0.3s to decode speech. Measuring 23 real dictations on July 28 showed why: stop-to-paste latency averaged 8.6s (3s–10s), leaving you staring at a frozen cursor after every sentence.Building Granis, central intelligence for organizations, meant dictating dozens of multi-sentence prompts every hour. Shaving that wait below half a second required measuring every millisecond of the local pipeline instead of guessing where the time went.
An 8.6s serial pipeline hid a 0.3s decoder behind 2 wasted steps
Instrumenting
app.log across all 23 recordings broke the 8.6s average into 3 concrete stages. Actual Whisper inference (0.2s–0.6s, mean ~0.3s) accounted for less than 4% of the delay.| Pipeline Stage | Mean Duration | Measured Range |
|---|---|---|
Legacy AudioSpeedProcessor (no-op re-encode) | 5.91s | 0.12s–14.96s |
Cold mlx_whisper Python + model startup | 2.40s | 2.20s–2.60s |
| Actual Whisper inference | ~0.30s | 0.20s–0.60s |
| Total serial wait after stop | ~8.60s | 3.00s–10.00s |
Removing the broken local speed-up pass and keeping a warm worker resident in memory eliminated
8.3s of fixed overhead immediately. On a 60s recording, though, waiting to slice and transcribe the whole take after hotkey release still left you paying full-take latency at the end.Silence-aware 20s chunking cuts perceived wait by roughly 20x
Instead of waiting for recording to stop,
ProgressiveLocalTranscriber taps 16 kHz mono PCM audio live during capture and hunts for the quietest 20 ms frame inside a ±6s window around each 20s target. Splitting at natural pauses guarantees no cut lands mid-word, so earlier chunks finish decoding while you are still speaking.Diagram source
sequenceDiagram
participant M as Mic 16 kHz
participant G as 20ms RMS Gate
participant W as Warm ANE Worker
M->>G: Stream frames during speech
G->>W: Dispatch 20s silence-cut chunk
M->>G: Release hotkey at stop
G->>W: Final tail chunk (0.28s)
W-->>M: HallucinationFilter & pasteWhen you release the hotkey, only the final tail chunk remains. Against our 3 timed long recordings (
71.4s, 63.7s, and 46.5s), progressive chunking reduced stop-to-paste latency by roughly 20x:Chart data
| Legacy serial pipeline (s) | Progressive silence-chunked (s) | |
|---|---|---|
| 71.4s (4 chunks) | 7 | 0.43 |
| 63.7s (3 chunks) | 6.8 | 0.29 |
| 46.5s (3 chunks) | 6.7 | 0.26 |
Across our larger 14-clip (
384.0s) and 8-clip (296.91s) benchmark corpora, progressive chunking held 0.274s mean wait (0.280s median, 0.213s–0.332s range) versus 0.442s for warm whole-file decoding.Short independent chunks also fixed punctuation and domain terms
Splitting long takes inside Whisper's
30s context window improved output quality alongside speed. In single-shot whole-file runs, Whisper frequently drifted into unpunctuated lowercase after the opening window, turning "What's the retention? And another thing is our Hetzner server..." into "what's the retention and another thing is our heads in our server".Each progressive chunk starts clean inside Whisper's sweet spot. Adding a fixed punctuated
stylePrompt on the MLX path also prevented temperature fallbacks, cutting single-chunk decode latency from 0.73s (no prompt) down to 0.32s (with prompt) while keeping "our Hetzner" intact.Native WhisperKit on Apple Neural Engine removes Python completely
Because
stylePrompt can echo back if an empty tail chunk slips through, DictateWizard pairs progressive chunking with a strict sustained-speech RMS gate (>= 120 ms / 6+ frames above minSpeechFrameRMS = 0.006), dropping non-speech hallucinations from 8/8 down to 0/8 as documented in our local engine benchmark.In DictateWizard v2.0,
WhisperKitTranscriber moves local inference straight onto Apple Neural Engine (openai_whisper-large-v3_turbo, ~650 MB Core ML, zero Python or Homebrew install), omits the English stylePrompt, runs our deterministic HallucinationFilter in Swift, and reuses existing HuggingFace or MLX caches via LocalModelDetector. You can download DictateWizard free or inspect how Managed Cloud Pro handles zero-RAM Macs on the pricing overview.Published by DictateWizard · Built by Granis AI Ltd.