Skip to content

basuev/localwhisper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

localwhisper

macOS status bar app for local speech-to-text using MLX Whisper on Apple Silicon, with Ollama or OpenAI post-processing.

features

  • local transcription with MLX Whisper
  • menu bar UI with global hotkey recording
  • automatic paste back into the previously focused app
  • optional post-processing via Ollama or OpenAI
  • optional translation
  • launch at login toggle in Preferences

requirements

  • macOS on Apple Silicon
  • Python 3.11+
  • uv
  • Ollama for local post-processing

installation

git clone https://github.com/basuev/localwhisper.git
cd localwhisper
bash scripts/install.sh

After installation:

  1. allow Microphone access when macOS asks
  2. allow Accessibility access for the terminal or localwhisper
  3. wait for the first Whisper model download to finish on first launch

usage

  1. focus the app where you want text inserted
  2. press Right Option to start recording
  3. press Right Option again to stop recording
  4. wait for transcription and optional post-processing
  5. the result is pasted back into the previously focused app

Press Escape during recording to cancel.

configuration

Config file: ~/.config/localwhisper/config.yaml

Important settings:

option default description
whisper_model mlx-community/whisper-large-v3-mlx Whisper model
language ru speech language
ollama_model gemma3:4b Ollama model
postprocessor ollama ollama or openai
launch_at_login true start app automatically after login
hotkey_keycode 61 hotkey, 61 is Right Option
translate_to null translation target or disabled
input_device null audio input device or system default

See config.example.yaml for the full config.

file locations

purpose path
config ~/.config/localwhisper/config.yaml
auth ~/.config/localwhisper/auth.json
history ~/.local/share/localwhisper/history.jsonl
logs ~/.local/share/localwhisper/app.log

development

Install dependencies:

uv sync --group dev

Run from source:

./scripts/run.sh

Verify:

bash scripts/verify.sh

About

macOS status bar app for local speech-to-text using MLX Whisper on Apple Silicon

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors