Grammar cleanup is optional. Set grammar.enabled = false for transcription-only mode, or choose a backend with grammar.backend. Backends are registered in src/whisper_voice/backends/__init__.py. Non-selected backends must stay lazy and must not initialize at startup.

Backends

Apple Intelligence

Apple Intelligence is the default configured backend, but grammar is disabled by default. Enable it only when macOS and Apple Intelligence support are available.

Ollama

LM Studio

Download and load a model in LM Studio, then start the local server from the Developer tab.

Server addresses

Ollama and LM Studio run on this Mac by default. Change url and check_url to use a server on another machine: Grammar requests never follow redirects. LM Studio’s placeholder key is not sent to an internet host. With an address on another machine, transcript text goes to that machine. wh doctor checks both servers at their configured addresses.

Failures

If you turn grammar on before Ollama or LM Studio is running, grammar stays on and connects when the server appears. If another backend was already working, Local Whisper keeps that one instead. When a grammar request fails, you get the raw transcription. The error carries the server’s real HTTP status, and with notifications on, a “Grammar skipped” notification says the raw text was delivered.

Selected-text modes

When grammar is enabled, Local Whisper can transform selected text: Results paste over the selection in place by default ([shortcuts] paste_result), and are always copied to the clipboard as a backup.