Skip to content
sebas8866Public

About

Free, open-source voice dictation for Windows that runs on your own machine

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

FlowLocal

Free, open-source voice dictation for Windows that runs on your own machine.

Hold a key or your mouse's side button, speak, release — clean, punctuated text is pasted into whatever app has focus. Speech-to-text runs on your machine with faster-whisper (Whisper large-v3-turbo), and transcripts are cleaned up automatically: filler words removed, grammar fixed, false starts and repetitions collapsed — optionally using a local Ollama LLM for higher-quality rewrites. In the default local mode, no audio or text leaves your machine. An optional cloud mode is off unless you turn it on.

  • Works offline after the first model download (default local mode)
  • No accounts, no subscriptions, no telemetry
  • Push-to-talk from any keyboard key or mouse side button
  • Runs quietly in the system tray, with a small waveform pill at the bottom of the screen
  • Auto-starts with Windows

Features

  • Personal dictionary — teach it names, product terms, and jargon once (Settings → Personal dictionary); they bias both speech recognition and the cleanup rewrite so they stop getting mangled.
  • App-aware tone — FlowLocal notices what app you're dictating into (Discord vs. Outlook vs. a code editor) and nudges the cleanup rewrite to match that app's natural style, without changing what you said.
  • Continuity across dictations — if you speak again within two minutes of your last dictation, FlowLocal quietly carries the tail of that previous text forward as context, so follow-up thoughts land coherently instead of being cleaned up in isolation.
  • Voice commands — say "new line" or "new paragraph" mid-dictation to insert real line breaks, or "scratch that" / "undo that" right after a dictation to undo it (Ctrl+Z) instead of manually deleting. Recognition is slightly more reliable in AI-cleanup mode (clean_llm: true), where the LLM judges from context, than in rules-only mode, which matches the phrase with a more conservative regex to avoid false positives.
  • Hallucination guards — classic Whisper silence artifacts ("thank you for watching", "subtitles by the Amara.org community", etc.) are detected and silently discarded instead of getting pasted into your document.
  • Rewrite prompt tuned for dictation, not summarization — the stage-2 LLM rewrite is instructed to preserve every detail and your own word choice, collapsing only false starts/self-corrections and filler — never paraphrasing or shortening what you said.

Requirements

  • Windows 10 or 11
  • Python 3.11, installed with the py launcher (get it from python.org — check "Install launcher for all users")
  • ~3 GB free disk space (Whisper model + optional CUDA runtime libraries)
  • NVIDIA GPU — optional but recommended for fast transcription; CPU works fine, just slower
  • Optional: Ollama with qwen2.5:7b-instruct pulled (or qwen2.5:3b-instruct on smaller GPUs) for the best cleanup quality — FlowLocal works fully without it, using rule-based cleanup only

Install

git clone https://github.com/sebas8866/flowlocal.git
cd flowlocal
.\setup.ps1

setup.ps1 creates a .venv, installs dependencies, and on first run downloads:

  • The Whisper large-v3-turbo model (~1.6 GB, one-time, cached locally afterwards)
  • NVIDIA CUDA 12 pip wheels for GPU acceleration (only if an NVIDIA GPU is detected)

Both are one-time downloads, and local dictation works offline after that. setup.ps1 also turns on start-with-Windows. You can switch that off in Settings.

Usage

Run FlowLocal with:

.venv\Scripts\pythonw.exe run_flowlocal.pyw

(or just let it auto-start on the next login — autostart is enabled by setup.ps1).

  • Default trigger: mouse forward/side button (X2) — hold it, speak, release. Hold mode is push-to-talk: hold down (≥350ms), speak, release to stop and transcribe. Quick double-tap (release within 350ms, then press again within 400ms) locks recording hands-free — speak freely with your hands off the trigger; press again to stop and transcribe. A quick tap with no follow-up press just finishes normally once the 400ms window passes (nothing is lost, since recording never actually stopped). Esc cancels a recording (including a locked one) without transcribing.
  • Tray icon → Settings to change microphone, trigger binding, model, language, and cleanup toggles.
  • A bottom waveform pill shows the current state (idle / recording / transcribing). Hover it after a dictation to copy the last result.
  • If text can't be pasted into the focused window (e.g. an elevated app), a small popup appears — the text stays on your clipboard so you can paste it manually.
  • Every dictation also lands in Windows clipboard history (Win+V), right behind your latest copy — requires Windows Settings → System → Clipboard → Clipboard history to be turned on. FlowLocal restores your previous clipboard content after pasting, so your own latest copy stays on top.

Configuration

Settings persist to %APPDATA%\FlowLocal\config.json. Most fields are editable from the Settings window; you can also hand-edit the file (changes are picked up on next app start). Full contract: specs/001-flowlocal-dictation/contracts/config-schema.md.

Field Type Default Notes
trigger str "mouse:x2" mouse:x1, mouse:x2, or key:<combo> (e.g. key:f9, key:ctrl_l+space)
mode str "hold" hold (push-to-talk) or toggle
mic_device int | null null sounddevice index; null = system default
mic_device_name str | null null preferred mic by name; resolved to an index at recording start so it survives device-index reshuffles
model str "large-v3-turbo" large-v3-turbo, distil-large-v3, or small
language str | null null null = auto-detect
clean_fillers bool true stage-1 rule-based cleanup
clean_llm bool true stage-2 Ollama rewrite (no-op if Ollama isn't running)
ollama_model str "qwen2.5:7b-instruct" model name pulled in Ollama
filler_words list[str] see below user-editable list of words stripped in stage 1
autostart bool true mirrors the Windows Run registry entry
sounds bool true audible start/stop/error cues
max_record_seconds int 300 hard stop safeguard
show_overlay bool true show the bottom waveform pill
backend str "local" local or cloud — see Cloud mode
groq_api_key str "" your Groq API key (only used when backend is cloud)
cloud_stt_model str "whisper-large-v3-turbo" Groq speech-to-text model
cloud_llm_model str "llama-3.3-70b-versatile" Groq chat model used for cleanup rewrite
vocabulary list[str] [] personal dictionary — names/terms biased in both STT and cleanup
smart_context bool true capture the foreground app + window title and pass it to the cleanup rewrite for tone-matching
voice_commands bool true enables "new line"/"new paragraph" and the "scratch that"/"undo that" undo command
theme str "light" light, dark, or system — app window appearance
save_history bool true record dictations locally for the History page (see below)

Default filler_words: um, uh, uhm, er, ah, like, you know, i mean, sort of, kind of — edit the list in config.json or Settings to add/remove words.

The app window

Double-click the tray icon (or right-click → "Open FlowLocal") to open the app window — a home base with four pages:

  • Home — today's word count, total words, average WPM, and current day streak, plus your 5 most recent dictations.
  • History — every past dictation, newest first, with live search and per-entry copy; "Clear history" needs a second confirming click.
  • Dictionary — add or remove personal-dictionary terms (names, jargon) without digging into Settings.
  • Settings — everything from the old settings dialog (microphone, trigger, model, language, cloud backend, cleanup toggles, autostart, etc.), reorganized into cards.

The window supports light, dark, and system theme (toggle at the bottom of the sidebar; persisted in config.json as theme).

History is local-only: dictations are stored purely on your machine at %APPDATA%\FlowLocal\history.json and never leave it. Turn it off anytime via Settings → "Save dictation history" (save_history: false); existing entries are kept until you clear them.

Cloud mode (optional)

By default FlowLocal runs 100% locally: the Whisper model and the Ollama cleanup model both load into your GPU's VRAM, which can slow the machine down during dictation. Cloud mode offloads both steps — transcription and cleanup — to Groq's API instead, so your GPU and CPU stay idle. Local stays the default; this is opt-in.

What it does: when backend is set to cloud, FlowLocal sends your recorded audio to api.groq.com for transcription and, if LLM cleanup is enabled, sends the raw transcript there again for the grammar/false-start rewrite. Depending on your settings, those requests can also include your personal dictionary, the tail of your previous dictation, and the active app name and window title (up to 80 characters). No local models are loaded or warmed up in this mode.

Getting a free key: sign up at console.groq.com/keys and create an API key — Groq's free tier is generous and fast.

Enabling it: open Settings → Processing → choose "Cloud (Groq — fastest, needs internet)", paste your API key, and click "Test connection" to confirm it works before saving.

Privacy note: with cloud mode enabled, the data above is sent to Groq's servers. Window titles can contain private details such as an email subject or document name, so turn off smart_context if that matters to you. The default local configuration does not send your audio or text anywhere. Cloud mode is opt-in and can be switched off at any time.

Where the key is stored: like the rest of your settings, the Groq API key is saved in plaintext at %APPDATA%\FlowLocal\config.json. This file is user-local (not synced or shared); treat it like any other local secret.

If a cloud transcription call fails (bad key, network issue, etc.), FlowLocal automatically falls back to the local Whisper model for that dictation and notifies you via the tray. If the cloud cleanup call fails, FlowLocal keeps the rule-based (stage-1) cleanup result rather than falling back to Ollama.

Troubleshooting

  • Logs: %APPDATA%\FlowLocal\flowlocal.log
  • No GPU / CUDA init fails: FlowLocal automatically falls back to CPU (int8) — transcription still works, just slower.
  • Ollama not detected: cleanup falls back to rule-based only (fillers/stutters removed, but no grammar rewrite or restart collapse). Install Ollama and run ollama pull qwen2.5:7b-instruct at any time; it's auto-detected on next dictation.
  • Hotkey doesn't fire in some app: global hooks (pynput) can't reach windows running elevated (as Administrator). Run FlowLocal elevated too, or avoid dictating into elevated windows.
  • Waveform pill on the wrong screen / missing in multi-monitor setups: the pill only renders on the primary monitor; this is a known limitation.
  • Per-monitor DPI: mixed-DPI multi-monitor setups may show the pill slightly mis-scaled — cosmetic only.

Uninstall

  1. Quit FlowLocal from the tray icon.
  2. Remove the autostart entry: delete the FlowLocal value under HKCU\Software\Microsoft\Windows\CurrentVersion\Run (or toggle "Autostart" off in Settings before quitting).
  3. Delete the project folder and %APPDATA%\FlowLocal.
  4. Optional: the Whisper model is cached in the Hugging Face cache (%USERPROFILE%\.cache\huggingface) — delete it there if you want the disk space back and don't use it for anything else.

Contributing

Bug reports and pull requests are welcome. Please include your Windows version, GPU, and the relevant lines from %APPDATA%\FlowLocal lowlocal.log, and remove anything private from the log first.

Run the tests before opening a PR:

.venv\Scripts\python.exe -m unittest discover tests

License

MIT

About

Free, open-source voice dictation for Windows that runs on your own machine

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages