Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

OpenWisper

Hold a hotkey, speak, release — cleaned-up text appears at your cursor in whatever app is focused. An open-source Wispr Flow clone for Windows.

Whisper runs locally by default, so nothing leaves your machine and nothing costs money. The optional cleanup pass can run on Claude, on a free Groq key, or on a local Ollama — see Cleanup.

Cost

Piece Free?
Local Whisper (small.en) — the default Free. Open weights, no account, offline after the first download
Cleanup via local Ollama Free. Offline, no account
Cleanup via Groq Free tier. Rate-limited, needs a free key
Cloud transcription via Groq Free tier. Same key
Cleanup via Claude Haiku Paid, roughly $0.0001 per dictation

Running it with no keys at all works — you get local Whisper with the cleanup step off. Whisper already punctuates and capitalizes; what you lose is filler removal and spoken self-corrections.

Install

py -3.13 -m venv .venv && .venv/Scripts/python -m pip install -r requirements.txt

First run downloads the small.en Whisper model (~500 MB) from Hugging Face. After that it works offline.

.venv/Scripts/python -m openwisper

A tray icon appears. Open Notepad and try it.

Using it

Action Result
Hold Ctrl+Win, speak, release Records while held, then types the cleaned text at your cursor
Tap Ctrl+Win (under 350 ms) Hands-free: keeps recording until you tap the combo again
Press any other key while recording Cancels — this is what keeps Ctrl+Win+Left, Ctrl+Win+D etc. working
Esc during hands-free recording Cancels and discards
2 minutes Auto-stops and transcribes

The pill at the bottom of the screen shows Listening with a live mic level, then Transcribing…. Tray menu: pause, open history, open config folder, quit.

Every dictation is appended to %APPDATA%\openwisper\history.jsonl with both the raw and the cleaned text — that's your recovery path if a paste lands in the wrong window.

Flags

.venv/Scripts/python -m openwisper --list-devices   # pick a mic
.venv/Scripts/python -m openwisper --once           # one dictation, prints raw vs cleaned
.venv/Scripts/python -m openwisper --no-polish      # raw Whisper output, no Claude call
.venv/Scripts/python -m openwisper --config         # path to config.json

--once is the loop for tuning the cleanup prompt: it prints the raw transcript and the polished result side by side.

Config

%APPDATA%\openwisper\config.json, written with defaults on first run. Restart to apply.

Key Notes
hotkey Groups, not specific keys: ["ctrl","win"] matches either Ctrl and either Win. Also valid: ["ctrl","alt"], ["shift","win"], ["f9"].
tap_ms Below this, a press latches into hands-free mode instead of ending the dictation.
min_ms Recordings shorter than this are discarded as accidental taps.
input_device null = system default; otherwise the index or name from --list-devices.
insert_method "paste" (fast) or "type" (keystroke-by-keystroke, for apps that block paste).
dictionary Names and jargon. Fed to Whisper as vocabulary bias and to Claude as preferred spellings. Add your own names here first — it's the single biggest accuracy win.
stt.local.model small.en default. base.en is faster and worse; distil-small.en is a good middle; large-v3-turbo is best and slowest.
polish.enabled The cleanup pass. Auto-disables if its backend isn't configured.
polish.backend "claude" or "openai" (any OpenAI-compatible server — Groq, Ollama, LM Studio).

The cleanup step

This is the difference between raw dictation and finished text: it strips "um"/"uh", fixes punctuation, and applies spoken self-corrections — say "send it Tuesday, no wait, Friday" and you get "send it Friday."

Pick one of three backends in config.json.

Free and offline — Ollama. Install Ollama, ollama pull llama3.2, then:

"polish": { "enabled": true, "backend": "openai", "model": "llama3.2",
            "base_url": "http://localhost:11434/v1", "timeout": 10.0 }

No key needed. Bump timeout — a local model on CPU is slower than an API. Avoid reasoning models here (deepseek-r1 and similar): they think before answering, which costs seconds you'll feel on every dictation.

Free tier and fast — Groq. Get a key at console.groq.com, setx GROQ_API_KEY gsk-...:

"polish": { "enabled": true, "backend": "openai", "model": "llama-3.3-70b-versatile",
            "base_url": "https://api.groq.com/openai/v1", "api_key_env": "GROQ_API_KEY" }

The same key also unlocks cloud transcription — set stt.backend to "cloud" and the whole pipeline runs on one free key at ~500 ms end to end.

Best quality — Claude Haiku (the default; paid, ~$0.0001 a dictation). setx ANTHROPIC_API_KEY sk-ant-... and leave polish alone. Haiku 4.5 is the pick here because latency is the feature.

Any OpenAI-compatible /chat/completions server works via backend: "openai" — llama.cpp, LM Studio, vLLM, OpenRouter, OpenAI itself.

Whichever you choose, a failure never costs you a dictation: on timeout, refusal, or a dead server you get the raw transcript pasted instead, and the reason on the console.

Faster transcription

GPU (NVIDIA), roughly 5-10× faster than CPU:

.venv/Scripts/python -m pip install nvidia-cublas-cu12 nvidia-cudnn-cu12

then set stt.local.device to "cuda" and stt.local.compute_type to "float16". If the GPU can't be initialised it falls back to CPU with a warning rather than crashing.

Cloud, the fastest option (~300-600 ms) — set stt.backend to "cloud" and put a Groq key in GROQ_API_KEY. The cloud backend speaks the OpenAI /audio/transcriptions protocol, so stt.cloud.base_url also accepts OpenAI itself or any compatible local server. Without a key it silently falls back to the local model.

Start with Windows

Press Win+R, run shell:startup, and drop a shortcut in there pointing at:

C:\Users\<you>\openwisper\.venv\Scripts\pythonw.exe -m openwisper

Set "Start in" to the project folder. pythonw.exe runs it without a console window.

Known limits

  • Clipboard restore is text-only. Paste mode borrows the clipboard and puts your text back ~0.4 s later. If you had an image copied, it's gone.
  • Nothing works over an elevated window. While a UAC-elevated app has focus, Windows blocks keyboard hooks from non-elevated processes, so the hotkey is invisible. Run OpenWisper as admin if you need it in an elevated terminal.
  • The hotkey is not swallowed. It also reaches the focused app, which is why the default is a combo that does nothing on its own. If you rebind it, pick something harmless.
  • Windows only. The pipeline is portable, but clipboard handling and the tray are Win32.

Tests

.venv/Scripts/python test_openwisper.py

No mic, model, or network needed — covers the hotkey state machine, key-group normalization, config merging, the WAV encoder, and the cleanup step's fallbacks.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages