Skip to content
المشاريع

حول

Offline-first voice dictation, transcription, cleanup, and text-to-speech for macOS, iOS, and Android.

تطوير الويب والتطبيقات

كيف تُقاس هذه الأرقام

38 نجمة11 التفرعات +1 خلال 24 ساعة

ما يمكنك فعله

  • Global dictation hotkey: start recording from any app without focusing a Local Whisper window. Double-tap Right Option copies the final text by default; hold Right Option records until release and pastes the final text at the cursor.
  • On-device transcription via in-process MLX for Parakeet-TDT v3, Qwen3-ASR, and the Model library (Fluid Speech Pro, Whisper large-v3 turbo, Nemotron), Apple SpeechAnalyzer/SpeechTranscriber on supported macOS 26 hardware, or WhisperKit through a small server on this Mac.
  • Remote server, opt-in: send recordings to a speech-to-text model on OpenAI, Groq, Mistral, or your own OpenAI-compatible server. Never the default, never a fallback; the API key stays in the macOS Keychain.
  • Model downloads through one downloader: size and free-space check first, progress, cancel, resume after a cancel, a dropped connection, or a restart, and checksum verification. Dictation keeps working while another model downloads.

النمو المقاس للنجوم

خلال 24 ساعة
+١
خلال 7 أيام
٠
خلال 15 يومًا
+١
خلال شهر
+٢

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Local Whisper

License: PolyForm Noncommercial Platform: macOS | iOS | Android Apple Silicon Python 3.11-3.12 Local-first

Local Whisper is a local-first speech-to-text app and dictation service for macOS, iOS, and Android. You use it where you already type: press a shortcut on macOS, speak, and get cleaned text copied or pasted. By default, your audio is transcribed on your own device.

On mobile, Local Whisper is both the recorder app and the keyboard. Record in the app, keep model packs and history on the phone, then use the keyboard to bring punctuation and Local Whisper actions into other text fields. Model-pack downloads can be stopped and resumed, and every file is checked against its checksum before a pack is marked ready.

iPhone transcribes on the device with WhisperKit Large v3 Turbo (Core ML) or Apple's SpeechTranscriber on supported iOS 26 devices. Android records local WAV audio and transcribes on the device through sherpa_onnx with Parakeet-TDT 0.6B, or Qwen3-ASR 0.6B for broader language coverage. Both can also use a remote server you set up; there is no automatic fallback to one.

Download the models once, then run them locally. Audio leaves your Mac only when you set up the remote engine with a server that is not on the Mac and select it; Local Whisper never falls back to a server on its own. No account. No telemetry.

Double-tap Right Option from any app to start recording and copy the result. Hold Right Option to record until release, then paste the result at the current cursor.

Use the menu bar for status, engine and grammar switching, history, settings, updates, and service controls. Parakeet-TDT v3 is the default macOS transcription engine.

Full documentation lives at gabrimatic.github.io/local-whisper.

Local Whisper macOS settings with Parakeet-TDT v3 active

Local Runtime

Local Whisper uses the network for setup, model downloads, and updates. After that, audio and transcript processing stays on your Mac. It reaches another machine only through a server you set up yourself: the remote transcription engine, or Ollama or LM Studio at an address on another machine. There is no automatic fallback to any server.

Runtime path Where it runs
Recording and audio cleanup On device
Parakeet-TDT v3, Qwen3-ASR, and Model library transcription In-process MLX
Apple SpeechTranscriber On-device SpeechAnalyzer on supported macOS 26 and iOS 26 hardware
Android Parakeet-TDT v3 and Qwen3-ASR transcription On-device sherpa-onnx
WhisperKit transcription Local server on this Mac
Remote server transcription The server you set up (this Mac, local network, or internet); off unless you select it
Grammar cleanup Apple Intelligence on-device; Ollama or LM Studio on this Mac by default, or at an address you set
Text-to-speech In-process Kokoro MLX
History and backups ~/.whisper/

At a Glance

Local Whisper is speech-to-text for the places you already type. Start recording with a global shortcut on macOS, clean the transcript locally, paste into any app, replay history, and use the mobile recorder plus keyboard for the same local workflow on iOS and Android.

Surface Runtime scope Status
macOS global dictation System-wide hotkey recording from any app, on-device transcription or a remote server you set up, grammar cleanup, replacements, selected-text shortcuts, Kokoro TTS, clipboard, and auto-paste output. Ready. Parakeet-TDT v3 is the default engine.
macOS menu bar and overlay Live status, engine and backend switching, history, saved audio, settings, updates, service controls, and recording and processing feedback. Ready.
Flutter iOS app + keyboard Record and transcribe in the app with WhisperKit Large v3 Turbo, Apple SpeechTranscriber, or a remote server you set up. Keep model packs and history on the phone, then use the native keyboard for punctuation and Verify. WhisperKit and SpeechTranscriber paths wired and simulator-checked; not yet verified on a physical device. SpeechTranscriber requires supported iOS 26 hardware.
Flutter Android app + keyboard Record locally in the app, transcribe on the device with sherpa-onnx model packs or with a remote server, and insert the latest transcript from the native input method. The Android app keeps the same local history, modes, setup, and model-pack flow. Parakeet-TDT 0.6B and Qwen3-ASR 0.6B wired and emulator-checked; not yet verified on a physical device.

Local Whisper iOS record, history, and modes screens

macOS Quick Start

Requirements: Apple Silicon, Microphone permission, and Accessibility permission. The Swift menu bar app requires macOS 26 or later; on earlier macOS the background service runs headless.

Recommended setup:

curl -fsSL https://gabrimatic.github.io/local-whisper/install.sh | bash

Manual Homebrew setup:

brew install gabrimatic/local-whisper/local-whisper
wh setup

The Homebrew path installs Local Whisper, downloads and warms the default Parakeet model, checks macOS permissions, starts the background service, and keeps updates simple.

Source setup for development:

git clone https://github.com/gabrimatic/local-whisper.git
cd local-whisper
./setup.sh

The source setup script installs the exact dependency versions from uv.lock (it installs uv with Homebrew if needed), downloads the active transcription model (Parakeet by default) with the same downloader the app uses, builds the Swift UI, configures auto-start, and creates the wh alias. Other models download in Settings or with wh engine when you switch to them, with progress, cancel, and resume. Kokoro downloads when text-to-speech is enabled.

Service Controls

Local Whisper runs as one background service. If you close it, update it, or it stops responding, these are the commands to use:

wh status    # Check whether Local Whisper is running
wh start     # Start it again
wh stop      # Stop it
wh restart   # Stop and start cleanly
wh log       # Open the live service log
wh doctor    # Check install, permissions, models, and service health
wh update    # Update Local Whisper, prepare models, rebuild the menu app, and restart

Only one service can run at a time. This is shared across Homebrew and source installs, so starting Local Whisper from another Terminal or another install path will not create a second running service.

Details: Installation.

Action Key
Start recording and copy result Double-tap Right Option
Hold to record and paste result Hold Right Option past double-tap threshold, then release
Stop double-tap recording Tap Right Option or Space
Cancel Esc
Read selected text aloud ⌥T
Stop speech ⌥T again or Esc

Features

  • Global dictation hotkey: start recording from any app without focusing a Local Whisper window. Double-tap Right Option copies the final text by default; hold Right Option records until release and pastes the final text at the cursor.
  • On-device transcription via in-process MLX for Parakeet-TDT v3, Qwen3-ASR, and the Model library (Fluid Speech Pro, Whisper large-v3 turbo, Nemotron), Apple SpeechAnalyzer/SpeechTranscriber on supported macOS 26 hardware, or WhisperKit through a small server on this Mac.
  • Remote server, opt-in: send recordings to a speech-to-text model on OpenAI, Groq, Mistral, or your own OpenAI-compatible server. Never the default, never a fallback; the API key stays in the macOS Keychain.
  • Model downloads through one downloader: size and free-space check first, progress, cancel, resume after a cancel, a dropped connection, or a restart, and checksum verification. Dictation keeps working while another model downloads.
  • Grammar correction via Apple Intelligence, Ollama, or LM Studio; optional. Ollama and LM Studio run on this Mac by default.
  • Text-to-speech reads selected text aloud in any app with multiple voices and streaming playback through Kokoro MLX.
  • Text replacements for spoken-to-corrected mappings.
  • Audio processing: VAD, silence trimming, noise reduction, normalization.
  • Keyboard shortcuts for proofreading, rewriting, and prompt engineering on selected text.
  • CLI: wh whisper, wh listen, wh transcribe for scripting and automation; wh models and wh remote for models and the remote server.
  • Native macOS UI: menu bar status/control, floating overlay, and settings window.
  • Mobile app and keyboards: iOS and Android include the Flutter app plus native keyboard surfaces. Mobile manages model packs, local history (latest 500 entries, not in backups), modes, settings, clipboard output, and setup replay. The Android keyboard inserts the latest transcript.
  • Mobile models: iPhone uses WhisperKit Large v3 Turbo or Apple SpeechTranscriber on supported iOS 26 hardware. Android uses sherpa-onnx with Parakeet-TDT 0.6B or Qwen3-ASR 0.6B for broader language coverage. These are on-device model packs; the remote server is a separate, opt-in choice with the same rules as the Mac.
  • No automatic fallback: audio goes to a server only when you set one up and select it. No account, no telemetry.
  • Automatic backup for every recording and transcription.

Keyboard Shortcuts

Shortcut Action
⌥T Read selected text aloud (again or Esc to stop)
Ctrl+Shift+G Proofread selected text (rebindable in Settings → Shortcuts)
Ctrl+Shift+R Rewrite selected text (rebindable)
Ctrl+Shift+P Optimize selected text as an LLM prompt (rebindable)

Results replace the selection in place by default and are always copied to the clipboard as a backup ([shortcuts] paste_result). Text-transform shortcuts require grammar correction to be enabled with a working backend. TTS plays through speakers after Read selected text aloud is enabled.

Feedback

  • Sounds: Pop on start, Glass on success, Basso on failure
  • Menu bar: state icon for idle, recording, processing, done, error, and speaking
  • Overlay: live duration and waveform while recording, progress/status while processing, copied or pasted result, error text, and speaking state

Local Whisper recording overlay while dictating into notes


Transcription Engines

Switch via Settings, the menu bar, wh engine <name>, or config. Settings shows whether each managed model is downloaded, partial, or missing. Downloads stay inside the Transcription panel with progress and a cancel button; the dictation overlay is reserved for recording, transcription, speech, and result states.

Engine ID Runs on Languages
Parakeet-TDT v3 (default) parakeet_v3 This Mac, in-process MLX English and 24 European languages
Qwen3-ASR qwen3_asr This Mac, in-process MLX Detects the language from the audio
Model library mlx This Mac, in-process MLX Depends on the model, up to 99
Apple SpeechTranscriber apple_speech This Mac, Apple SpeechAnalyzer The locale you set
WhisperKit whisperkit This Mac, local server on port 50060 99 languages
Remote server remote The server you set up Depends on the server's model

Every engine card, the menu bar, and wh models say where the model runs: This Mac, Local network, or Internet. For Persian and other languages outside the European set, use Whisper large-v3 turbo from the Model library (in process), Qwen3-ASR, or WhisperKit.

Dictation keeps working on the current engine while another model downloads; the switch happens when the new model is loaded, and a failed switch restores the previous engine and setting. If the engine cannot start (model missing, load failed, server unreachable), the service stays up, shows the reason in the menu bar and Settings, and tries again on the next dictation.

Details: Transcription engines.

Parakeet-TDT v3 (default)

The fast default for English and 24 European languages. In-process via parakeet-mlx. No server. The default checkpoint is NVIDIA Parakeet-TDT 0.6B v3, served through the mlx-community/parakeet-tdt-0.6b-v3 MLX snapshot. Long audio is handled via overlapping chunks.

Setting Default Notes
model mlx-community/parakeet-tdt-0.6b-v3 A Hugging Face repo id or a folder path. Downloaded by setup.sh
timeout 0 No limit
chunk_duration 120.0 Seconds per chunk for long audio. 0 disables chunking (pair with local attention).
overlap_duration 15.0 Overlap between consecutive chunks.
decoding "greedy" Or "beam" for a small quality bump at higher cost.
beam_size / length_penalty / patience / duration_reward 5 / 0.013 / 3.5 / 0.67 Beam-only tuning knobs.
local_attention false Reduces peak RAM for unchunked long audio.

Qwen3-ASR

In-process via qwen3-asr-mlx. No local server. Native long-audio support, up to 20 minutes in a single pass. Qwen3-ASR detects language from the audio. Switch with wh engine qwen3_asr; choose a size in Settings or wh config, or run wh engine qwen3_asr 1.7b / wh engine qwen3_asr 0.6b.

Local Whisper uses a community-maintained MLX conversion and runtime, not Qwen's official PyTorch stack. The default mlx-community/Qwen3-ASR-1.7B-bf16 model provides higher quality. The mlx-community/Qwen3-ASR-0.6B-bf16 option uses less memory and has lower latency, with a quality tradeoff. Both paths download once from Hugging Face and then run locally.

Both supported variants can use your enabled Vocabulary rules as Qwen3-ASR context and hotwords. Local Whisper sends the full spoken-to-preferred mapping only to engines and models that explicitly declare contextual-prompting support; Parakeet-TDT, WhisperKit, and Apple SpeechTranscriber receive none of it. The prompt is built in process, capped at 4,096 characters per request, and never sent to a hosted service. Disable it with qwen3_asr.use_vocabulary = false.

Setting Default Notes
model mlx-community/Qwen3-ASR-1.7B-bf16 Higher-quality default. Select mlx-community/Qwen3-ASR-0.6B-bf16 for lower memory and latency.
use_vocabulary true Use enabled Vocabulary rules as local Qwen context/hotwords, up to 4,096 characters.
timeout 0 No limit
repetition_penalty 1.2 Higher suppresses repetition loops
repetition_context_size 100 Tokens considered for repetition penalty
chunk_duration 1200 Seconds per internal chunk for long audio
max_tokens 0 0 = auto-scale from duration. Cap for faster short-clip decode.

Model library

More on-device models through the MLX audio runtime (mlx-audio), loaded only when you select this engine. Switch with wh engine mlx [model], or pick a model in Settings, which lists each one with its size.

Model ID Languages Download Notes
Fluid Speech Pro fluid-speech-pro (default) English and 24 European languages about 2.4 GB Removes fillers and repeated words itself (clean_mode). CC-BY-4.0.
Whisper large-v3 turbo whisper-large-v3-turbo 99 languages, including Persian about 1.5 GB Accepts Vocabulary spellings as hints. MIT.
Nemotron Unified 0.6B nemotron-unified 25 European languages about 0.7 GB Smallest download in the library. OpenMDW-1.1.

mlx.model also takes any Hugging Face repo id of an MLX speech-to-text model, or the path of a folder that holds one.

Setting Default Notes
model fluid-speech-pro A library ID, a Hugging Face repo id, or a folder path
language auto A language code (en, de, fa, ...) or auto
clean_mode true Fluid Speech Pro removes fillers and repeated words itself
use_vocabulary true Send enabled Vocabulary spellings to Whisper large-v3 turbo as an in-process hint
timeout 0 No limit

Apple SpeechTranscriber

Apple's SpeechAnalyzer API runs its SpeechTranscriber module on-device on supported macOS 26 and iOS 26 hardware. Local Whisper uses the final transcription preset for completed recordings, requires an explicit locale, and supports long audio without a Local Whisper chunk limit. Apple downloads, updates, shares, and eventually removes the language asset; Local Whisper tracks the real AssetInventory state and only releases its own reservation.

Switch with wh engine apple_speech. The current engine stays loaded until the selected language asset is ready.

Setting Default Notes
locale en-US Explicit BCP 47 locale. Automatic language detection is not available in SpeechTranscriber.
timeout 0 No limit.

WhisperKit

Whisper on Apple Neural Engine via Argmax, served by whisperkit-cli on this Mac at localhost:50060. Install the CLI with wh doctor --fix or brew install whisperkit-cli, then switch with wh engine whisperkit.

Local Whisper downloads the selected Core ML model into ~/.whisper/models with the same progress, cancel, and resume as other models; a complete copy under ~/Documents/huggingface is used as it is. WhisperKit runs on this Mac only. For a WhisperKit server on another machine, use the remote server engine.

Model Notes
tiny / tiny.en Fastest, lowest accuracy
base / base.en
small / small.en
large-v3-v20240930_626MB Best accuracy default, recommended by Argmax for maximum multilingual accuracy
large-v3-v20240930_turbo_632MB Faster high-accuracy option

Remote server

Sends each finished recording to a speech-to-text model hosted somewhere else: a cloud service, a server on your network, or another app on this Mac. It uses the OpenAI-compatible POST {base}/audio/transcriptions API. It is never the default and never an automatic fallback, and the macOS app asks you to confirm before switching to a server that is not on this Mac, naming the host.

Preset Address Suggested models
OpenAI https://api.openai.com/v1 gpt-transcribe
Groq https://api.groq.com/openai/v1 whisper-large-v3-turbo, whisper-large-v3
Mistral https://api.mistral.ai/v1 voxtral-mini-transcribe-3, voxtral-small-transcribe-3
Your own server Any server with that API mlx-audio, vLLM, LocalAI, a WhisperKit server
wh remote preset groq     # or: wh remote set <url> <model>
wh remote key             # saved in the macOS login Keychain (asks, hidden)
wh remote test            # check the connection and list models
wh remote use             # switch dictation to the remote server
  • https:// is required for internet hosts; http:// works only for this Mac and private-network addresses. Redirects are refused and certificate checks cannot be turned off.
  • The API key lives in the login Keychain, one entry per server. It is never written to config.toml, never logged, and never passed on a command line; a key saved for one server is not sent to another. LOCAL_WHISPER_REMOTE_API_KEY is read only when the Keychain has no key for that server.
  • Long recordings are split at a quiet moment to respect max_upload_mb (24) and max_chunk_seconds (600). Rate limits and server errors are retried with backoff, and errors say what happened.
  • language and Vocabulary spellings (use_vocabulary) go to the server as hints, plus an optional prompt.

Details: Remote server.


Text-to-Speech

Kokoro-82M via kokoro-mlx. Runs in-process after install. No local server. Streaming playback starts before full synthesis completes.

Toggle from the menu bar or Settings -> Voice. Turning it on downloads the Kokoro voice model (about 360 MB) and uses the spaCy en_core_web_sm dictionary plus system espeak-ng. Run ./setup.sh while the toggle is on to pre-fetch the assets before the first speak. If the voice is missing when the service starts with text-to-speech on, it downloads then; until it is on disk, the shortcut shows "Voice not ready".

Use it from the keyboard or CLI:

  • ⌥T on selected text in any app. Press ⌥T again, Esc, or start a recording to stop.
  • CLI: wh whisper "text", wh whisper --voice af_bella "text", or pipe stdin with echo "hello" | wh whisper.

The overlay shows "Generating speech..." during synthesis, then "Speaking..." during playback. The shortcut is configurable via tts.speak_shortcut in config.

Voices

Multiple presets available. Default is Sky (af_sky).

Voice ID Type
Heart af_heart American female
Bella af_bella American female
Nova af_nova American female
Sky af_sky (default) American female
Sarah af_sarah American female
Nicole af_nicole American female
Alice bf_alice British female
Emma bf_emma British female
Adam am_adam American male
Echo am_echo American male
Eric am_eric American male
Liam am_liam American male
Daniel bm_daniel British male
George bm_george British male

Grammar Backends

Grammar cleanup is optional. Pick a backend or keep transcription-only mode:

Backend Requirements Notes
Apple Intelligence macOS 26+, Apple Silicon, Apple Intelligence enabled On-device Foundation Models
Ollama Ollama installed and running Works on any Mac
LM Studio LM Studio with a model loaded and the local server started Works on any Mac
Disabled None Transcription only

Switch from the menu bar, Settings, or wh backend <name>. The menu bar switch is instant; the CLI switch restarts the service.

Ollama and LM Studio run on this Mac by default. To use a server on another machine, change its url and check_url: http:// works for private-network addresses, and an internet host needs https://. Redirects are refused. Turning grammar on before the server is running keeps it on and connects when the server answers. If a grammar request fails, you get the raw transcription, the error carries the real HTTP status, and with notifications on, a "Grammar skipped" notification appears.

Ollama setup
  1. Download from ollama.com
  2. Pull a model and start the server:
ollama pull gemma3:4b-it-qat
ollama serve
LM Studio setup
  1. Download from lmstudio.ai
  2. Download and load a model (e.g., google/gemma-3-4b)
  3. Start the local server: Developer tab > Start Server

Note: Loading a model does not start the server. Start it from Developer tab.


Usage

CLI

wh controls the service and local utilities:

wh                  # Status and help
wh status           # Service status, PID, grammar backend
wh start            # Launch the service
wh stop             # Stop the service
wh restart          # Restart (rebuilds Swift UI if sources changed)
wh build            # Rebuild Swift UI app

wh engine           # Show current engine and list available
wh engine whisperkit  # Switch transcription engine
wh engine mlx whisper-large-v3-turbo  # Model library, choose a model
wh backend          # Show current grammar backend and list available
wh backend ollama   # Switch grammar backend

wh models           # Every model: state, size, and location
wh models download fluid-speech-pro
wh models remove qwen3_asr

wh remote           # Show the remote server settings
wh remote set <url> <model>
wh remote preset openai|groq|mistral
wh remote url|model|language <value>
wh remote key       # Save the API key in the Keychain (asks, hidden)
wh remote key --clear
wh remote test      # Check the connection and list models
wh remote use       # Switch dictation to the remote server

wh replace          # Show text replacement rules
wh replace add "gonna" "going to"
wh replace remove "gonna"
wh replace on|off   # Enable or disable replacements
wh replace import rules.csv   # Bulk-import rules (CSV, TSV, "a"="b", or a -> b)
wh replace export rules.csv   # Write current rules to a file
wh replace test "gonna say this"  # Preview what the current rules produce

wh whisper "text"   # Speak text aloud via Kokoro TTS
wh whisper --voice af_bella "text"
echo "hello" | wh whisper

wh listen           # Record until Ctrl+C (10 minute cap), output transcription
wh listen 30        # Record up to 30 seconds
wh listen --raw     # Raw transcription, no grammar

wh transcribe recording.wav
wh transcribe --raw audio.wav

wh stats            # Show usage statistics computed from history
wh export           # Export history to ~/Desktop/local-whisper-history.md
wh export --format json --out ~/Downloads/history.json
wh export --format txt --limit 50

wh config           # Interactive config editor (static summary when piped)
wh config edit      # Open config.toml in $EDITOR
wh config path      # Print config file path
wh doctor           # Check system health
wh doctor --fix     # Auto-repair issues
wh doctor --report  # Write a shareable report (transcript log lines redacted)
wh setup            # Finish first-time setup after Homebrew install
wh log              # Tail service log
wh update           # Pull, upgrade deps, warm up models, rebuild, restart
wh version          # Show version
wh uninstall        # Remove Local Whisper

Dictation Commands

Speak these phrases anywhere in a dictation and Local Whisper replaces them with the literal punctuation or whitespace:

Spoken Inserted
"new line" newline
"new paragraph" blank line
"period" .
"comma" ,
"question mark" ?
"exclamation mark" !
"colon" :
"semicolon" ;
"dash" - (space, hyphen, space)
"open paren" / "close paren" ( / )
"open quote" / "close quote" "
"hyphen" -
"ellipsis" ...
"scratch that" deletes the current sentence fragment

The default set also accepts "full stop" for a period, "exclamation point" for an exclamation mark, "new section" for a blank line, and "strike that" for "scratch that".

Custom commands go under [dictation.commands] in ~/.whisper/config.toml. The pass runs before grammar correction, so grammar sees well-punctuated sentences.

The same deterministic pass also drops speech fillers from live dictation and wh listen. "uh", "umm", "hmm", and "mm-hmm" are always removed. "um", "er", "ah", and "oh" are removed only when pauses set them off and the text reads as English, so German "Er kommt um 5 Uhr" stays intact. Nothing next to a number is touched ("5 mm"), and phrases such as "uh oh" and "oh no" stay. When a removed filler opened a sentence, the next word takes its capital letter ("Um, turn it down" becomes "Turn it down"). This does not require grammar correction or any AI backend.

Menu Bar Controls

The menu bar does not drive normal dictation. The global hotkey does. Use the menu bar for state and controls:

Item What it does
Status Live state: waveform and timer while recording, transcription progress, download progress with Cancel, "Switching to ...", an engine problem with Download or Try again, latched errors, or Ready. A Start button appears when the service is down
Quick toggles Paste at cursor, replacements, read aloud, and sounds
Engine Switch transcription engine in place; the picker changes once the service confirms. Entries say Not set up, Internet (host), or Download with the size
Grammar Switch grammar backend in place, including Off
Recent Latest transcriptions, click to copy, hover to reveal the audio in Finder
Footer Settings, retry last transcription, a More menu, and quit
More Copy last transcription, transcripts / audio / log folders, check for updates, restart the service, and replay the tutorial

The menu bar icon shows a slashed waveform when the service is not running and a warning when the speech engine has a problem. While a recording is sent to a remote server, the panel shows "Sending audio to host".

Settings

Sidebar layout with focused panels:

Local Whisper macOS settings

Panel Covers
Recording Trigger key, double-tap window, audio cleanup, duration limits
Transcription One card per engine: state, where it runs (This Mac, Local network, Internet), size, folder, and downloads with progress, Cancel, and Resume download. Model library and remote server settings, plus per-engine parameters
Grammar Master toggle, backend picker, per-backend connection and limits
Vocabulary Searchable replacement editor with import / export
Voice Text-to-speech voice and shortcut with the Kokoro voice download, dictation command editor, filler toggle
Shortcuts Proofread / rewrite / prompt-engineer keybindings, full cheatsheet
Output Overlay, sounds, notifications (permission asked only when turned on), paste-at-cursor, history limit
Activity Sessions, words, 30-day chart, top words, top replacement triggers
Advanced Live status, permission state per row, storage paths, speech model storage with used and free space, model idle unload, service log, Run wh doctor (opens Terminal), service restart
About Version, credits, replay tutorial

Settings save to ~/.whisper/config.toml and apply immediately, including the trigger key and the transform and speak shortcuts. Restarting the service from the app keeps the Settings window open. Details: macOS app.


Configuration

Settings are stored in ~/.whisper/config.toml. Edit them from the app, with wh config, or directly.

Common fields:

Section What to change
[hotkey] Trigger key and double-tap timing
[transcription] Active engine: parakeet_v3, qwen3_asr, mlx, apple_speech, whisperkit, or remote
[mlx] Model library model, language, and clean mode
[remote] Remote server address, model, language, hints, and upload limits (the API key lives in the Keychain)
[grammar] Grammar backend and enable/disable state
[audio] VAD, noise reduction, normalization, pre-buffer, and duration limits
[service] Idle model unload timing for memory versus next-dictation latency
[ui] Overlay, sounds, notifications, and auto-paste
[tts] Text-to-speech toggle and shortcut

See Configuration reference for the full TOML reference.


Privacy

By default, everything stays on your Mac or on servers you run. Audio leaves the Mac only when you set up the remote engine with a server that is not on the Mac and select it. There is no telemetry, no account, and no automatic fallback to any server. Setup, model downloads, wh update, and wh doctor --fix use the network to install packages, fetch models, or update the checkout.

Component Runs at
Parakeet-TDT v3 In-process MLX
Qwen3-ASR In-process MLX
Model library In-process MLX
Apple SpeechTranscriber On-device SpeechAnalyzer
Kokoro TTS In-process MLX
WhisperKit localhost:50060, this Mac only
Remote server The server you set up; off unless you select it
Apple Intelligence On-device
Ollama localhost:11434 by default; another machine at an address you set
LM Studio localhost:1234 by default; another machine at an address you set

The mobile apps follow the same rule: packs and history stay on the phone and out of backups, and audio leaves the phone only through a remote server you set up.

Models cache at ~/.whisper/models/, or load from a folder you point a model setting at. Config, history, and backups live under ~/.whisper/. Remote server API keys live in the macOS login Keychain.

While the remote engine is selected, its server receives each recording, the model name, the language, the optional prompt, and Vocabulary spellings when remote.use_vocabulary is on. Ollama or LM Studio at an address on another machine receives the transcript text. Details: Privacy and security.


Architecture

Local Whisper splits runtime and UI. Python runs the headless LaunchAgent service; Swift owns the macOS UI.

Python (LaunchAgent, headless)
  ├── Recording, transcription, grammar, replacements, clipboard, hotkeys
  ├── Text-to-Speech (Kokoro-82M, in-process)
  ├── Model downloader (size check, progress, cancel, resume, checksums)
  ├── IPC server at ~/.whisper/ipc.sock (Swift UI communication)
  ├── Command server at ~/.whisper/cmd.sock (CLI commands)
  ├── Pipeline watchdog (per-stage timeouts, skip-don't-freeze)
  └── Crash recovery (~/.whisper/processing.marker + current_session.jsonl)

Swift (subprocess, all UI)
  ├── Menu bar with grammar submenus and transcription history
  ├── Floating overlay pill (recording, processing, speaking states)
  ├── NSWorkspace sleep/wake observer → resync_audio IPC
  └── Settings window (lists Ollama / LM Studio models when local servers are reachable)

The LaunchAgent uses KeepAlive={SuccessfulExit=false} with ThrottleInterval=10. Real crashes auto-restart; clean stops (wh stop, wh restart) do not relaunch. If the engine cannot start or Microphone permission is missing, the service keeps running and shows the reason instead of exiting.

Recordings longer than five minutes use the chunked pipeline. Each VAD segment is transcribed, grammar-corrected, and persisted to ~/.whisper/current_session.jsonl before the next chunk runs, so a crash mid-lecture recovers completed chunks on next boot. A part that fails to transcribe is marked in the text, and the result shows "Copied with gaps" or "Pasted with gaps". Crash recovery replays an interrupted recording once, so audio that crashes the engine cannot crash every restart.

Data flow
┌───────────────────────────────────────────────────────────┐
│  Microphone → pre-buffer (ring) + live capture            │
└──────────────────────────┬────────────────────────────────┘
                           ▼
┌───────────────────────────────────────────────────────────┐
│  Audio Processing                                         │
│  VAD → silence trim → noise reduction → normalize         │
└──────────────────────────┬────────────────────────────────┘
                           ▼
┌───────────────────────────────────────────────────────────┐
│  Transcription Engine                                     │
│                                                           │
│  Parakeet-TDT v3 │  Qwen3-ASR        │  Model library     │
│  MLX, default    │  MLX              │  MLX               │
│                                                           │
│  Apple Speech    │  WhisperKit       │  Remote server     │
│  SpeechAnalyzer  │  Server, this Mac │  Opt-in, your host │
└──────────────────────────┬────────────────────────────────┘
                           ▼
┌───────────────────────────────────────────────────────────┐
│  Grammar Correction                                       │
│                                                           │
│  Apple Intelligence │  Ollama          │  LM Studio       │
│  On-device          │  Mac by default  │  Mac by default  │
│                     │  or your address │  or your address │
└──────────────────────────┬────────────────────────────────┘
                           ▼
┌───────────────────────────────────────────────────────────┐
│  Text Replacements                                        │
│  Case-insensitive, word-boundary-aware regex              │
└──────────────────────────┬────────────────────────────────┘
                           ▼
┌───────────────────────────────────────────────────────────┐
│  Clipboard or cursor paste · Saved to ~/.whisper/         │
│  (hold-to-record pastes; auto_paste pastes all dictation) │
└───────────────────────────────────────────────────────────┘

Troubleshooting

"This process is not trusted"

Grant Accessibility to the Local Whisper service runtime, not your terminal app. System Settings opens automatically on first run.

If it didn't:

open x-apple.systempreferences:com.apple.preference.security?Privacy_Accessibility

Source installs appear as local-whisper; Homebrew installs can appear as Python. Enable the entry, then wh restart.

Double-tap not working

Tap twice within 0.4s (default). Adjust double_tap_threshold in config when you want a wider or tighter window.

Apple Intelligence not working

Verify:

  1. macOS 26 or later
  2. Apple Silicon (M1/M2/M3/M4)
  3. Apple Intelligence enabled in System Settings > Apple Intelligence & Siri
Ollama not working

Verify:

  1. Ollama installed: ollama.com
  2. Model pulled: ollama pull gemma3:4b-it-qat
  3. Server running: ollama serve
LM Studio not working

Verify:

  1. LM Studio installed: lmstudio.ai
  2. A model is downloaded and loaded
  3. Local server is running (most common issue): Developer tab > Start Server
  4. Confirm with: curl http://localhost:1234/v1/models

Loading a model does not start the server.

Slow first transcription

setup.sh downloads the active transcription model, and the service warms it when it starts. Fresh installs use Parakeet by default. Qwen3-ASR, Model library, and WhisperKit models download when you switch to them, macOS manages Apple SpeechTranscriber language assets, and Kokoro downloads only after text-to-speech is enabled. Settings verifies each runtime's real ready state before switching.

If idle model unload is enabled, Local Whisper can release the model from RAM while the service stays ready. The next transcription reloads the model on demand. Setup, update, and restart checks wait for the service command socket, not for the model to remain resident in memory.

Model download failed or stopped

Press Download again or run wh models download <name>. The download continues from the last byte. The error says why it stopped: no internet, model not found, needs an approved Hugging Face account, or not enough disk space (Local Whisper keeps 1 GB free beyond the model). wh models shows every model with its state, size, and location.

Remote server not working

Run wh remote test. It checks the address, the API key, and, when the server lists them, the model name. Internet hosts need https://, redirects are refused, and keys are saved per server address, so a key saved for one server does not apply to another. Details: Troubleshooting.

Paste failed

The overlay shows "Paste failed. Text copied." and the text stays on the clipboard. Paste it with Cmd+V.

Empty transcription
  • Speak clearly, close to the microphone
  • Check microphone permissions in System Settings or use Settings -> Advanced -> Permissions to request them again
  • Confirm the correct input device is selected. If macOS routes input to a virtual device such as BlackHole, select a real microphone in System Settings -> Sound -> Input.
  • If the first recording after sleep, wake, or a long idle period is empty, try once more. Local Whisper backs off, refreshes the CoreAudio device list, and resets stale macOS input streams when it sees all-zero audio or a PortAudio input error.
Overlay not showing

Check show_overlay = true in ~/.whisper/config.toml.


Development

uv sync --locked --python 3.12   # locked dependencies in .venv; Python 3.11 or 3.12
source .venv/bin/activate

wh build              # Build Swift UI (one-time)
wh                    # Run the service
pytest tests/         # Run the full test suite

Mobile Apps

The Flutter app lives in src/flutter/local_whisper.

Surface Status Notes
Flutter iOS app + keyboard Native transcription wired and simulator-checked Uses AVAudioEngine plus WhisperKit/Core ML or the shared Apple SpeechAnalyzer core. Not yet verified on a physical device.
Flutter Android app + keyboard Native transcription wired and emulator-checked Uses local WAV recording plus sherpa-onnx. Parakeet-TDT 0.6B is the recommended Android pack, with Qwen3-ASR 0.6B for broader language coverage. Not yet verified on a physical device.

See Mobile apps for setup flow, keyboard behavior, model packs, the remote server on the phone, Android notes, and mobile checks.

Adding an Engine or Grammar Backend

Engines: implement TranscriptionEngine in engines/, register in ENGINE_REGISTRY. Engines that download weights add a ModelSpec in engines/status.py; the shared downloader in engines/model_store.py fetches them. Grammar backends: implement GrammarBackend in backends/, register in BACKEND_REGISTRY.

Menu, CLI, and Settings entries come from the registries.

Project structure
local-whisper/
├── pyproject.toml
├── setup.sh
├── tests/
│   ├── test_flow.py
│   └── fixtures/
├── LocalWhisperUI/                  # Swift UI app + Apple Speech helper
│   ├── Package.swift
│   ├── Sources/AppleSpeechCore/     # Shared macOS/iOS SpeechAnalyzer core
│   ├── Sources/LocalWhisperSpeech/  # Apple SpeechTranscriber helper executable
│   └── Sources/LocalWhisperUI/
│       ├── AppMain.swift            # @main entry point
│       ├── AppState.swift           # Observable state, IPC handler, ConnectionState
│       ├── IPCClient.swift          # Unix socket client + connection-state publishing
│       ├── IPCMessages.swift        # Codable message types
│       ├── Theme.swift              # Typography, spacing, radii, tones, accents
│       ├── MenuBarView.swift        # Menu bar dropdown (status + connection state)
│       ├── OverlayWindowController.swift
│       ├── OverlayView.swift        # Floating pill: waveform + state
│       ├── OnboardingView.swift     # First-launch + replay tutorial
│       ├── SettingsView.swift       # Sidebar root + section enum
│       ├── RecordingPanel.swift     # Trigger key + audio cleanup
│       ├── TranscriptionPanel.swift # Engine picker + per-engine params
│       ├── EngineSettingsSections.swift # Per-engine settings sections
│       ├── RemoteSection.swift      # Remote server address, model, key, test
│       ├── EngineGate.swift         # Confirm before a remote switch or large download
│       ├── GrammarPanel.swift       # Backend picker + Ollama / LM Studio / AI
│       ├── VoicePanel.swift         # TTS + dictation commands
│       ├── VocabularyPanel.swift    # Replacements editor (search, import / export)
│       ├── OutputPanel.swift        # Overlay, sounds, notifications, paste, history
│       ├── ShortcutsPanel.swift     # Text-transform keybindings + cheatsheet
│       ├── ActivityPanel.swift      # Usage stats with 30-day chart
│       ├── AdvancedPanel.swift      # Live status, storage, diagnostics, service control
│       ├── AboutView.swift          # Hero, credits, links, replay tutorial
│       ├── SharedViews.swift        # DeferredText fields, StatusPill, InlineNotice, headers
│       ├── Snapshots.swift          # --snapshot: render every panel to PNG
│       └── Constants.swift
├── src/flutter/local_whisper/        # Flutter iOS and Android app
│   ├── lib/
│   │   ├── main.dart
│   │   └── src/
│   │       ├── app.dart              # Tabs, record/history/modes/models/settings UI
│   │       ├── app_remote.dart       # Remote server settings page
│   │       ├── remote_engine.dart    # Remote server engine (address rules, key, requests)
│   │       ├── native_speech_service.dart
│   │       ├── sherpa_speech_service.dart # Android sherpa-onnx transcription
│   │       ├── model_store.dart      # Pack catalog, download, resume, checksums
│   │       ├── text_polisher.dart    # Local cleanup and modes
│   │       ├── history_store.dart    # Local persistence
│   │       └── models.dart
│   ├── ios/Runner/
│   │   ├── LocalSpeechBridge.swift   # AVAudioEngine + WhisperKit/Apple Speech bridge
│   │   ├── LocalSetupBridge.swift    # Keychain keys, backup exclusion, local-only copy
│   │   ├── AppDelegate.swift
│   │   └── SceneDelegate.swift
│   ├── ios/LocalWhisperKeyboard/     # Native keyboard extension
│   ├── android/app/src/main/
│   │   ├── AndroidManifest.xml       # App identity, microphone, network, haptics, input method
│   │   ├── kotlin/info/gabrimatic/localwhisper/
│   │   │   ├── MainActivity.kt       # Method/event channels for recording and setup
│   │   │   └── LocalWhisperInputMethodService.kt
│   │   └── res/                      # Launch theme, keyboard XML, launcher icons
│   └── test/
└── src/whisper_voice/
    ├── app.py              # App class + service_main (imports mixins)
    ├── app_ipc.py          # IPCMixin: IPC send/receive
    ├── app_recording.py    # RecordingMixin: keyboard + recording lifecycle
    ├── app_pipeline.py     # PipelineMixin: transcription pipeline
    ├── app_commands.py     # CommandsMixin: CLI command handlers
    ├── app_switching.py    # SwitchingMixin: engine/backend switching
    ├── cli/                # CLI package (wh)
    │   ├── constants.py    # Colors, path constants
    │   ├── lifecycle.py    # start/stop/status
    │   ├── build.py        # Swift UI build, restart
    │   ├── settings.py     # engine/backend/replace commands
    │   ├── editor.py       # Interactive config TUI
    │   ├── client.py       # whisper/listen/transcribe socket client
    │   ├── doctor.py       # wh doctor + wh update
    │   ├── doctor_report.py # Redacted diagnostic report writer
    │   ├── models.py       # wh models: list, download, remove
    │   ├── remote.py       # wh remote: server, key, test, use
    │   ├── history.py      # wh stats + wh export
    │   └── main.py         # help, version, cli_main dispatcher
    ├── config/             # Config package
    │   ├── schema.py       # Dataclasses + DEFAULT_CONFIG
    │   ├── loader.py       # load_config, get_config, singleton
    │   ├── toml_helpers.py # _find/_replace_in_section, _serialize_toml_value
    │   └── mutations.py    # add/remove_replacement, update_config_field
    ├── ipc_server.py       # IPC server (Swift UI)
    ├── cmd_server.py       # Command server (CLI)
    ├── audio.py            # Recording and pre-buffer
    ├── audio_processor.py  # VAD, noise reduction, normalization
    ├── backup.py           # History persistence
    ├── grammar.py          # Grammar backend factory
    ├── transcriber.py      # Engine routing
    ├── utils.py            # Helpers
    ├── shortcuts.py        # Text transformation shortcuts
    ├── replacements.py     # Replacement rule engine
    ├── dictation_commands.py # Spoken punctuation and filler stripping
    ├── stats.py            # Usage statistics
    ├── history_export.py   # History export formats
    ├── recovery.py         # Crash recovery markers
    ├── long_session.py     # Chunked long-session pipeline
    ├── watchdog.py         # Per-stage pipeline timeouts
    ├── key_interceptor.py  # CGEvent tap
    ├── tts_processor.py    # TTS shortcut handler
    ├── tts/
    │   ├── base.py         # TTSProvider base
    │   └── kokoro_tts.py   # Kokoro provider (MLX)
    ├── engines/
    │   ├── base.py             # TranscriptionEngine base + capabilities
    │   ├── parakeet.py         # Parakeet-TDT v3 (MLX, default)
    │   ├── qwen3_asr.py        # Qwen3-ASR (MLX)
    │   ├── qwen3_models.py     # Validated Qwen3-ASR model catalog
    │   ├── mlx_engine.py       # Model library (MLX audio runtime)
    │   ├── mlx_catalog.py      # Model library catalog
    │   ├── apple_speech.py     # Apple SpeechTranscriber (on-device, macOS 26+)
    │   ├── whisperkit.py       # WhisperKit (server on this Mac)
    │   ├── whisperkit_runtime.py # whisperkit-cli discovery and install
    │   ├── remote.py           # Remote server (opt-in, OpenAI-compatible API)
    │   ├── remote_support.py   # Address rules, location labels, Keychain key
    │   ├── context.py          # Bounded local vocabulary context builder
    │   ├── status.py           # Where each model is, its size, where it runs
    │   ├── model_store.py      # One downloader: size check, resume, checksums
    │   └── download_progress.py # Download progress IPC (bytes, speed, time left)
    └── backends/
        ├── base.py         # Backend base
        ├── modes.py        # Transformation modes
        ├── ollama/
        ├── lm_studio/
        └── apple_intelligence/

Data stored in ~/.whisper/:

~/.whisper/
├── config.toml             # Settings
├── ipc.sock                # Python/Swift IPC
├── cmd.sock                # CLI commands
├── LocalWhisperUI.app      # Swift UI (built by setup.sh)
├── last_recording.wav
├── last_raw.txt            # Before grammar
├── last_transcription.txt  # Final text
├── audio_history/
├── history/                # Last 100 transcriptions
└── models/                 # Every downloaded model (Hugging Face cache layout)

Credits

parakeet-mlx (MLX port of NVIDIA Parakeet) · mlx-audio · Fluid Speech Pro by FluidVoice · Whisper by OpenAI · Nemotron by NVIDIA · Parakeet-TDT by NVIDIA NeMo · qwen3-asr-mlx (MLX port of Qwen3-ASR) · kokoro-mlx (MLX port of Kokoro-82M) · Qwen3-ASR by Qwen Team · Kokoro-82M · WhisperKit by Argmax · Apple Intelligence · Apple FM SDK · Ollama · LM Studio · SwiftUI

Fluid Speech Pro by FluidVoice. Built on NVIDIA Parakeet TDT 0.6B v3 and Moondream Parakeet Ultra.

Legal notices

Trademarks

"Whisper" is a trademark of OpenAI. "Apple Intelligence" is a trademark of Apple Inc. "WhisperKit" is a trademark of Argmax, Inc. "Qwen" is a trademark of Alibaba Cloud. "Parakeet" and "NeMo" are trademarks of NVIDIA Corporation. "Ollama" and "LM Studio" are trademarks of their respective owners.

This project is not affiliated with, endorsed by, or sponsored by OpenAI, Apple, Argmax, Alibaba Cloud, NVIDIA, or any other trademark holder. All trademark names are used solely to describe compatibility with their respective technologies.

Third-Party Licenses

This project depends on pynput, licensed under LGPL-3.0. It remains under its own license.

Other dependencies keep their own licenses. See each package for details.

License

Source-available under the PolyForm Noncommercial License 1.0.0. Noncommercial use, modification, and redistribution are allowed when the license and required notices stay with the software. Commercial use requires written permission from Soroush Yousefpour. See LICENSE.


Soroush Yousefpour

"Buy Me A Coffee"

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…