RepositoryPython
Knuckles92

Knuckles92/OpenWhisper

Local-first desktop app for dictation, meeting notes, audio files, and narrated walkthroughs on Windows, macOS, and Linux. Runs Parakeet, Whisper, Qwen3-ASR, or cloud APIs, with AI cleanup, LAN/Tailscale engine sharing, and MCP.

299stars
56forks
1issues
3views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: meeting-notes

#1 Repository of the week

2
TINIX TRENDING·Topic: parakeet

#2 Repository of the week

3
TINIX TRENDING·Topic: dictation

#3 Repository of the week

OpenWhisper

A cross-platform desktop app (Windows, macOS, Linux) for recording audio and transcribing it to text using local Whisper models or OpenAI API. Features a modern PyQt6 GUI, system tray integration, global hotkeys, and auto-paste. The app detects your OS at runtime and adapts hotkey handling, auto-paste, and platform conventions automatically — see Platform differences.

h3eFEqIiLQ

Cursor_wTPeidZjsL

Cursor_eyykcjebiU

image

Features

  • Local Whisper – Runs offline with faster-whisper, using optimized Whisper models (~150MB download on first use)
  • API Options – OpenAI Whisper API, GPT-4o Transcribe, GPT-4o Mini Transcribe
  • Global Hotkeys – Start/stop recording from any app (customizable)
  • Auto-paste – Transcription automatically pastes to your active window
  • System Tray – Minimize to tray, always accessible
  • Smart Splitting – Large audio files split automatically to avoid API limits
  • Audio Device Selection – Choose your preferred microphone input
  • Transcription History – Browse past transcriptions with search/filter, retranscribe recordings
  • Audio Upload – Import existing audio files for transcription
  • Real-time Visualization – Animated waveform overlay shows recording status
  • Live Streaming (experimental) – Real-time transcription preview while recording
  • Caret Indicator (experimental) – Visual marker at cursor location when pasting
  • Window Memory – Remembers window position and size between sessions

Platform differences

The same codebase runs on all three platforms; a few behaviors adapt to the OS:

AreaWindowsmacOSLinux
Global hotkeyskeyboard library (per-key suppression)Carbon RegisterEventHotKey (no Accessibility permission; falls back to pynput if registration fails)pynput (observe-only)
Default hotkeysNumpad (*, -, Ctrl+Alt+*)Control+Option (⌃⌥R, ⌃⌥⎋, ⌃⌥⇧R)Numpad (same as Windows)
Auto-pasteCtrl+VCmd+VCtrl+V
Caret paste indicatorTracks the real text caret (Win32 API)Follows the mouse cursor (no public caret API)Follows the mouse cursor
GPUCUDA (NVIDIA)CPU only (no Metal/MPS in faster-whisper)CUDA (NVIDIA)
Launchers.cmd + PowerShell, pythonw.exeinstall.sh + shell scriptsinstall.sh + shell scripts

On Linux, pynput cannot selectively swallow individual key events, so hotkey combinations also reach the focused app. On macOS, Carbon hotkeys are registered with the OS (like VS Code or Slack) and do not require Accessibility permission; if Carbon registration fails, the app falls back to pynput and combos may leak to the focused app. The Control+Option defaults on macOS avoid clashing with Spotlight, 1Password, and other common shortcuts.

GPU Acceleration (Windows / Linux)

For significantly faster transcription speeds with an NVIDIA GPU, install CUDA support:

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121

With CUDA enabled, faster-whisper runs 2-4x faster than CPU-only. The app auto-detects GPU availability and selects optimal settings (turbo model on GPU, base on CPU). Streaming transcription uses ~15-20% GPU vs 40-60% CPU. macOS has no CUDA support, so transcription runs on CPU there.

Installation

Note: It's recommended to set up a virtual environment (venv) to avoid package version conflicts. I have found Python 3.12 to be pretty stable with this codebase.

git clone https://github.com/Knuckles92/OpenWhisper
cd OpenWhisper
python -m venv venv
# Windows
venv\Scripts\activate
# Linux/Mac
source venv/bin/activate
pip install -r requirements.txt

OPTIONAL: For cloud transcription, set your API key:

# Windows
set OPENAI_API_KEY=your-key

# macOS / Linux
export OPENAI_API_KEY=your-key

# Or create a .env file
OPENAI_API_KEY=your-key

Required macOS permissions

macOS gates some features behind privacy permissions. Grant these to the app identity that is actually running OpenWhisper:

  • Microphone — needed to record audio (System Settings > Privacy & Security > Microphone). You'll be prompted on first recording.
  • Accessibility — needed only for auto-paste (the synthetic Cmd+V that inserts transcription into the focused app). Without it, transcriptions are still copied to the clipboard and you can paste manually. Global hotkeys work without Accessibility (Carbon RegisterEventHotKey).
  • Input Monitoring (optional) — may be required when remapping hotkeys in Settings > Hotkeys (the capture dialog uses a pynput listener). Normal hotkey use does not need this.

For packaged builds, this should appear as the OpenWhisper app. For development launches from a virtualenv, use scripts/openwhisper or ow; on macOS the launcher runs through the framework Python.app so Accessibility has an app bundle it can select. If the list does not populate automatically, use the + button in Accessibility and add the app bundle shown in OpenWhisper's startup prompt, then fully quit and relaunch the app.

Do not add venv/bin/python manually if macOS greys it out in the picker. That path is usually a virtualenv symlink, and newer macOS pickers often only allow selecting app bundles from this dialog.

If auto-paste silently does nothing, Accessibility is still missing for the current launch identity. If hotkey capture in Settings fails, add Input Monitoring as well.

Quick Launch (Windows)

For everyday use, you can register ow and openwhisper as global commands so the app launches from any terminal in any directory — no need to cd into the repo or activate the venv first.

One-time install

From the repo root, run:

install.cmd

This adds scripts\ to your user PATH (via the registry, not setx — see note below). It's idempotent, so running it twice does nothing the second time. Open a new terminal afterward for the change to take effect.

After install, both commands work from anywhere:

ow              # short alias
openwhisper     # full name

The launcher invokes venv\Scripts\pythonw.exe directly, so the app always uses the project's venv regardless of which environment your shell has activated. Code changes are picked up live — no reinstall needed after git pull.

Uninstall

uninstall.cmd

Removes the PATH entry only. Your venv, code, and the scripts/ folder are left untouched, so re-running install.cmd later will restore the commands.

Manual install (no scripts)

If you can't or don't want to run the installer (e.g., corporate execution-policy restrictions), add the path yourself in PowerShell:

$dir = "D:\path\to\whisper_local\scripts"   # <-- adjust to your clone location
$current = [Environment]::GetEnvironmentVariable("Path", "User")
if ($current -split ";" -notcontains $dir) {
    [Environment]::SetEnvironmentVariable("Path", "$current;$dir", "User")
}

Why not setx? setx PATH ... from a .cmd file silently truncates PATH at 1024 characters and can duplicate System PATH entries into User PATH. install.cmd shells out to PowerShell, which writes directly to HKCU\Environment\Path via [Environment]::SetEnvironmentVariable — no truncation, no leakage between User and System scopes.

Alternative: skip PATH editing

If you'd rather not modify your PATH at all, drop a copy of scripts/openwhisper.cmd into %LOCALAPPDATA%\Microsoft\WindowsApps\ (which is already on Windows PATH for every user). Caveat: this is a copy, so you'd need to refresh it whenever the launcher logic changes — which is rare, but worth knowing.

Quick Launch (macOS / Linux)

Register ow and openwhisper as global commands so the app launches from any terminal. From the repo root:

./install.sh

This adds the scripts/ folder to your PATH via ~/.zprofile (idempotent). Open a new terminal afterward, then run:

ow              # short alias
openwhisper     # full name

The launcher invokes venv/bin/python directly, so the app always uses the project's venv. Code changes are picked up live — no reinstall needed after git pull. To remove the PATH entry, run ./uninstall.sh (your venv, code, and scripts/ folder are left untouched).

Usage

If you registered the launcher, just type ow or openwhisper from any terminal. Otherwise:

python app_qt.py

Hotkeys

Default hotkeys depend on your platform (all remappable in Settings > Hotkeys):

ActionWindows / LinuxmacOS
Start/stop recording* (numpad)⌃⌥R
Cancel- (numpad)⌃⌥⎋
Enable/disable programCtrl+Alt+*⌃⌥⇧R
Minimize to trayCtrl+Alt+M⌃⌥M

On macOS, supported modifiers are ⌘ (Command), ⌃ (Control), ⌥ (Option), ⇧ (Shift).

Settings

Access settings via File > Settings or the system tray menu. Available options:

General: Default model, auto-paste, clipboard copy, minimize to tray, streaming transcription (experimental)

Audio: Sample rate, channels, silence threshold, input device selection

Hotkeys: Customize all keyboard shortcuts

Advanced: Whisper model selection (14+ options), compute device (auto/cuda/cpu), compute type (float16/float32/int8), max file size before splitting, streaming overlay positioning, logging

Offline Usage

Local Whisper transcription works fully offline after the initial model download. However, on startup, the faster-whisper library makes a brief metadata check to HuggingFace to see if a newer model version is available. This is not a model download—just a lightweight API call. If you're offline, the check will fail silently and the cached local model loads normally.

To force fully offline operation (skip the metadata check), set this environment variable before running:

export HF_HUB_OFFLINE=1  # Linux/Mac
set HF_HUB_OFFLINE=1     # Windows
python app_qt.py

Requirements

  • Python 3.8+ (3.12 recommended)
  • Windows, macOS, or Linux

Note: The caret paste indicator tracks the real text caret only on Windows (uses the Win32 API). On macOS and Linux it follows the mouse cursor, since there is no public caret-position API.

License

MIT License. Free to use, clone, and modify.

Similar Projects

Discover other similar projects and AI models.

RepositoryRust
farion1231/cc-switch

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io

158.7k
Dec 2, 2026
RepositoryRust
lencx/ChatGPT

❄️ ChatGPT Desktop Application (Mac, Windows and Linux)

54.7k
Aug 29, 2024
RepositoryRust
tinyhumansai/openhuman

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

43.0k
Nov 24, 2026
Repository
jlevy/the-art-of-command-line

Master the command line, in one page

162.8k
Jun 25, 2024
RepositoryJavaScript
nodejs/node

Node.js JavaScript runtime ✨🐢🚀✨

124.1k
Nov 30, 2026
RepositoryTypeScript
webadderallorg/Recordly

Create polished demo videos without editing skills. Mac/Windows/Linux

37.7k
Nov 29, 2026
RepositoryDart
qier222/YesPlayMusic

A better-looking desktop music player for local files, media servers, and plugins. For macOS, Windows and Linux.

33.9k
Dec 1, 2026
RepositoryRust
anomalyco/hex

Local voice dictation for mac, windows and linux

9.4k
Dec 2, 2026
RepositorySwift
opennookorg/betterwispr

Free, open-source, local-first dictation app for macOS. Hold a shortcut, speak, and text is typed into any app. On-device speech-to-text with Whisper, Parakeet and Apple speech. Private, offline, open-source Wispr Flow alternative.

547
Nov 14, 2026