The project's README from github.com/amywork777/lipflow. As one markdown file: README.md.
Wispr Flow for your lips. Hold a key, silently mouth what you want to say, let go, and the text shows up at your cursor in whatever app you're in. No microphone and no sound, just your webcam.
Everything runs locally on your Mac, Windows PC, or Linux. An optional LLM pass fixes the words lip reading gets wrong.
hold ⌥ (right) ──► webcam ──► face landmarks (live) ──► mouth crops, 25 fps
│
paste at cursor ◄── LLM cleanup ◄── beam search + LM ◄── VSR encoder (Apple GPU)
▲
live preview: greedy CTC every 0.45 s while you talk
Needs a Mac on macOS 13 or later (macOS 26 for the Liquid Glass look), and about 2 GB of disk. Intel Macs work too, with a few differences.
git clone https://github.com/amywork777/lipflow.git ~/code/lipflow
cd ~/code/lipflow && ./setup.sh # installs uv deps, ~1.2 GB of models, builds /Applications/Lipflow.app
open /Applications/Lipflow.app
The first launch opens setup, which takes about 8 minutes:
Re-run it any time from the menu → Set up / train on my face…. More practice clips help more.
Everything personal (clips, phrases, trained models) lives in
~/Library/Application Support/Lipflow/. Delete that folder to start over.
To start Lipflow at login: System Settings → General → Login Items → add Lipflow. Logs are in
~/Library/Logs/Lipflow.log. Running from a terminal (uv run lipflow) also works, but then
macOS asks for permissions in the terminal's name.
Same setup. Differences from Apple Silicon:
uv sync picks it for you.Needs Windows 10 or 11 (64-bit) and about 3 GB of disk. In PowerShell:
git clone https://github.com/amywork777/lipflow.git $HOME\code\lipflow
cd $HOME\code\lipflow
powershell -ExecutionPolicy Bypass -File setup.ps1 # uv deps, ~1.2 GB of models, Start menu shortcut
Then open Lipflow from the Start menu. It lives in the system tray (the pink mouth by the clock; click ^ if it's hidden). The first launch opens the same setup as on a Mac, minus permissions: your Wispr Flow words, 24 practice sentences, then training on your face.
How it differs from the Mac version:
LIPFLOW_CAMERA_BACKEND to dshow, msmf or any
(e.g. setx LIPFLOW_CAMERA_BACKEND msmf, then restart Lipflow).uv pip install torch --index-url https://download.pytorch.org/whl/cu126
(re-run it after uv sync, which puts the CPU build back).setx ANTHROPIC_API_KEY …,
then restart Lipflow), the Codex CLI (codex login), or
Ollama (ollama pull qwen3:4b). Without one of these, Lipflow uses the offline rules.%APPDATA%\Lipflow
(log: Lipflow.log there). uv run lipflow doctor checks the models and camera.Needs a 64-bit Linux distro with a webcam, Python 3.11–3.12, and about 3 GB of disk (models + PyTorch).
git clone https://github.com/amywork777/lipflow.git ~/code/lipflow
cd ~/code/lipflow
curl -LsSf https://astral.sh/uv/install.sh | sh # if you don't have uv yet
uv sync
./scripts/download-models.sh # ~1.2 GB of models
uv run lipflow doctor
uv run lipflow # system tray (pink mouth icon)
The first launch runs the same setup as on Windows (import Wispr phrases if present, 24 practice
sentences, optional training on your face). Personal data lives in
/.local/share/Lipflow$XDG_DATA_HOME/Lipflow (usually `). Logs: Lipflow.log` in that folder.
How it differs from the Mac version:
/dev/uinput via evdev
(kernel virtual keyboard, works across GNOME, KDE, and wlroots), or ydotool
(with ydotoold). X11 uses xdotool, /dev/uinput, and xclip. --copy-only leaves the text on the clipboard.Note on
/dev/uinput: To allow pasting via/dev/uinputwithout root, ensure your user has access (e.g. create/etc/udev/rules.d/99-uinput.ruleswithKERNEL=="uinput", SUBSYSTEM=="misc", TAG+="uaccess", or add your user to theinputgroup:sudo usermod -aG input $USERand reload udev:sudo udevadm control --reload-rules && sudo udevadm trigger).
gir1.2-ayatanaappindicator3-0.1)./dev/video0). Pick a camera by number in the tray menu if the default
is wrong.export ANTHROPIC_API_KEY=…) or
Ollama (ollama pull qwen3:4b, then uv run lipflow --cleanup ollama) for better accuracy.hyprctl; Sway:
swaymsg; KDE: kdotool; X11: xdotool). GNOME has no stable title API. Learning from
in-field corrections is Mac-only for now (same as Windows)./dev/input
if your user is in the input group. Alternatively, on compositors where you prefer system shortcuts
(KDE Plasma, GNOME, Hyprland, Sway), bind any shortcut key in your desktop settings to:lipflow trigger-toggle: toggle recording (press once to start hands-free, press again to stop and type; Esc cancels).lipflow trigger-start / lipflow trigger-stop: push-to-talk key down / key up.lipflow trigger-cancel: cancel current dictation.
X11 uses the standard key hook as on Windows.You can also run Lipflow in an isolated container with webcam, GUI, and GPU pass-through:
# 1. Download model weights locally
./scripts/download-models.sh
# 2. Run Lipflow via Docker (non-root, X11/Wayland display and GPU pass-through)
./scripts/docker-run.sh
# Or with Docker Compose:
docker compose up lipflow-gui
# (with NVIDIA GPU: docker compose -f docker-compose.yml -f docker-compose.gpu.yml up lipflow-gui)
Settings → Whisper mode. While you hold the key, Lipflow also listens to a soft whisper and reads lips + audio together with the Auto-AVSR audio-visual model (downloaded the first time, 1.8 GB). On test sentences, lips alone got 31.9% of words wrong; lips + audio got 6.9%. A real whisper is less clear than those test clips, so expect somewhere in between. The mic is only on while you hold the key.
When you fix a word Lipflow typed (within about 30 seconds), it saves that clip with your corrected sentence, and the next Practice & train more round uses it. Only the text field it pasted into is read. Switch it off in Settings.
Lip reading can't tell apart words that look the same on the lips (p/b/m, f/v, t/d/n…), so the raw
model output reads like "WALLET OFFICER" when you said "while in office". Lipflow sends the model's
top-3 guesses plus your last few dictations to an LLM, which picks the sentence you meant and
fixes casing, punctuation and numbers. You choose which one under Cleanup in the menu bar (tray
on Windows), or with --cleanup <name> for one run. Automatic, the default, uses Claude if you've
set a key, otherwise the on-device model (Apple Silicon), otherwise Ollama if it's running, otherwise the offline rules.
export ANTHROPIC_API_KEY=… (model claude-opus-5-5 at low effort; override with
LIPFLOW_MODEL, e.g. LIPFLOW_MODEL=claude-haiku-4-5 for lower latency). Best at fixing badly
mis-read sentences.brew install --cask codex or
npm install -g @openai/codex), run codex login, then pick it in the menu. Each sentence is one
read-only codex exec run in an empty folder. Override the model with LIPFLOW_CODEX_MODEL.SMALL_SHOTS in cleanup.py). Override with LIPFLOW_LOCAL_MODEL.ollama pull qwen3:4b, then pick it in the menu (override with LIPFLOW_OLLAMA_MODEL).Learn from your Wispr Flow history. Most of what you'll mouth is stuff you already say.
uv run lipflow import-wispr # or: --from-text my-writing.txt
This reads Wispr Flow's local database read-only, prints only counts, and saves your phrases to
~/Library/Application Support/Lipflow/phrases.txt. Nothing leaves your Mac. Lipflow then:
picks between the lip-reader's top 5 guesses using a small model of the word pairs you use;
shows the cleanup model your past sentences closest to what it read; and adds names you
capitalise often to your custom words for review. Restart Lipflow afterwards.
Custom words. Names are the hardest thing to lip-read (a name is just lip shapes). Put yours
in the Lipflow menu → Edit custom words, one per line (~/Library/Application Support/Lipflow/words.txt).
A guess that contains one of your words wins over the others and gets your capitalization, and
the LLM is told about them.
| Do this | To |
|---|---|
| Hold Right Option, mouth the words, release | dictate |
| Double-tap Right Option … tap again | hands-free (up to 60 s) |
| Esc while listening | cancel |
| Lipflow menu → Copy last dictation / Open history | get text back |
Lipflow keeps filming for 0.4 s after you release the key, because the model needs the frames after the last word to read it.
Options: uv run lipflow --help
--key {right_option,left_option,right_command,right_control,fn}
--cleanup {auto,claude,local,ollama,basic}
--beam N beam size (default 10)
--copy-only copy to the clipboard instead of pasting
--camera N|FILE camera index, or a video file to stand in for the webcam
Lip-read a video file: uv run lipflow file talk.mp4 --start 10 --end 20
Accuracy on held-out news footage (public-domain White House addresses), raw model output:
| Said | Read |
|---|---|
| Born in New York City, and raised mostly in Chicago, Nancy Davis graduated from Smith College in 1943. | BORN IN NEW YORK CITY AND RAISED MOSTLY IN CHICAGO NANCY DAVIS GRADUATED FROM SMITH COLLEGE IN NINETEEN FORTY THREE |
| …a real-life Hollywood romance with the love of her life, Ronald Reagan, whom she married in 1952. | ROMANCE WITH THE LOVE OF HER LIFE RONALD REAGAN WHOM SHE MARRIED IN NINETEEN FIFTY TWO |
| Presidents have delivered some form of final message while in office - a farewell address to the American people. | PRESIDENTS HAVE DELIVERED SOME FORM OF FINAL MESSAGE WHILE IN OFFICE FAREWELL ADDRESS TO THE AMERICAN PEOPLE |
Silently mouthed speech is harder than filmed speech (smaller lip movements), so expect more errors on your own webcam. That's what the LLM cleanup is for.
./setup.sh --samples # also fetch the public-domain test clips
uv run pytest # the paste test is opt-in: LIPFLOW_TEST_PASTE=1
On Windows: setup.ps1 -Samples, then uv run pytest. CI runs the whole Windows setup and reads
a real clip on every push (.github/workflows/windows.yml).
Code map: lipflow/face.py (landmarks → mouth crops), vsr.py (model), camera.py, hotkey.py
(Quartz event tap; pynput's macOS listener crashes on recent macOS), paste.py, hud.py,
cleanup.py, app.py (wiring + menu bar). Windows: lipflow/win/ (tray app, overlay, setup
window, pynput key hook, clipboard paste). Shared by both: ptt.py (key timing), dictation.py,
practice.py. See NOTICE for bundled code and model licensing.
The LRS3-trained weights are for non-commercial research use.
MIT, see LICENSE. Bundled third-party code keeps its own license, listed in NOTICE. The model weights that setup.sh downloads come from the LRS3 dataset, which is for non-commercial research use only.