Skip to main content

Whisper Key - Local Speech-to-Text

Global hotkeys to record speech and transcribe directly to your cursor.

Questions or ideas? Discord

✨ Features

  • Global Hotkey: Start recording speech from any app
  • Auto-Paste: Transcribe directly to cursor
  • Auto-Send: Optionally auto-send with ENTER keypress
  • Local/Offline: Voice data never leaves your computer
  • CPU Ready: Small, efficient models available
  • GPU Ready: Support for both NVIDIA & AMD cards
  • Cross-platform: Works on Windows and macOS
  • Voice Commands: Trigger shortcuts, text snippets, and shell commands by voice — docs
  • Configurable: Customize hotkeys, models, and much more

🚀 Quick Start

Requires Python 3.11-3.13

# With pipx (isolated environment)
pipx install whisper-key-local

# Or with pip
pip install whisper-key-local

Then run: whisper-key (or wk for short)

Windows App

  1. Download whisper-key.exe from the latest release
  2. Run whisper-key.exe

From Source

git clone https://github.com/PinW/whisper-key-local.git
cd whisper-key-local
pip install -e .
python whisper-key.py

🎤 Basic Usage

Hotkey Windows macOS
Start recording Ctrl+Win Fn+Ctrl
Stop & transcribe Ctrl Fn
Stop & auto-send Alt Option
Cancel recording Esc Shift
Voice command mode Alt+Win Fn+Command

Open the system tray / menu bar icon to:

  • Toggle auto-paste vs clipboard-only
  • Change transcription model
  • Select audio device

🗣️ Voice Commands

Speak trigger phrases to run shell commands and more. Define in:

  • Windows: %APPDATA%\whisperkey\commands.yaml
  • macOS: ~/.whisperkey/commands.yaml
commands:
  # Send a keyboard shortcut
  - trigger: "undo"
    hotkey: "ctrl+z"
  # Deliver pre-written text
  - trigger: "my email"
    type: "user@example.com"
  # Run a shell command
  - trigger: "open notepad"
    run: 'notepad.exe'

See the Voice Commands Guide for full details.

⚡ GPU Acceleration

Whisper Key detects your GPU on first launch and offers one-press install of the required runtime libraries. Supports NVIDIA (CUDA) and AMD (ROCm).

For manual setup or troubleshooting, see the GPU Setup Guide.

⚙️ Configuration

Local settings at:

  • Windows: %APPDATA%\whisperkey\user_settings.yaml
  • macOS: ~/.whisperkey/user_settings.yaml

Delete this file and restart app to reset to defaults.

Option Default Notes
Whisper
whisper.model tiny Any model defined in whisper.models
whisper.device cpu cpu or cuda (NVIDIA/AMD GPU) — setup guide
whisper.compute_type int8 int8/float16/float32
whisper.language auto auto or language code (en, es, fr, etc.)
whisper.beam_size 5 Higher = more accurate but slower (1-10)
whisper.initial_prompt "" Guide transcription style, language variant, or script
whisper.hotwords [] Words the model should favor (names, technical terms)
whisper.models (see config) Add custom HuggingFace or local models
Post-Processing
post_processing.strip_trailing_period false Strip trailing period from output
post_processing.corrections {} Fix recurring misheard words, e.g. CAPEX: [cap x]
Hotkeys
hotkey.recording_hotkey ctrl+win / fn+ctrl Windows / macOS
hotkey.stop_key ctrl / fn Stop recording
hotkey.auto_send_key alt / option Stop + paste + Enter
hotkey.cancel_combination esc / shift Cancel recording
hotkey.recording_mode toggle toggle or push_to_talk
hotkey.command_hotkey alt+win / fn+command Voice command mode
Voice Activity Detection
vad.vad_precheck_enabled true Prevent hallucinations on silence
vad.vad_onset_threshold 0.7 Speech detection start (0.0-1.0)
vad.vad_offset_threshold 0.55 Speech detection end (0.0-1.0)
vad.vad_min_speech_duration 0.1 Min speech segment (seconds)
vad.vad_realtime_enabled true Auto-stop on silence
vad.vad_silence_timeout_seconds 30.0 Seconds before auto-stop
Audio
audio.source default_input default_input = system default microphone; default_output = system playback (Windows only); device = specific device
audio.host null Audio backend for a specific device, e.g. Windows WASAPI or Core Audio
audio.channels 1 1 = mono, 2 = stereo
audio.dtype float32 float32/int16/int24/int32
audio.max_duration 900 Max recording seconds (0 = unlimited)
audio.input_device null Name of specific device to record from
Clipboard
clipboard.auto_paste true false = clipboard only
clipboard.delivery_method paste paste (Ctrl+V) or type (direct injection)
clipboard.paste_hotkey ctrl+v / cmd+v Paste key simulation
clipboard.paste_pre_paste_delay 0.05 Delay after copy, before paste hotkey (seconds)
clipboard.paste_preserve_clipboard true Restore clipboard after paste
clipboard.paste_clipboard_restore_delay 0.5 Delay before clipboard restore (seconds)
clipboard.type_also_copy_to_clipboard false Also copy to clipboard in type mode
clipboard.type_auto_enter_delay 0.15 Delay before ENTER after typing (seconds)
clipboard.type_auto_enter_delay_per_100_chars 0.1 Extra ENTER delay per 100 typed chars (seconds)
Logging
logging.level INFO DEBUG/INFO/WARNING/ERROR/CRITICAL
logging.file.enabled true Write to app.log
logging.log_transcriptions false Include transcribed text in log (privacy)
logging.console.enabled true Print to console
logging.console.level WARNING Console verbosity
Audio Feedback
audio_feedback.enabled true Play sounds on record/stop
audio_feedback.transcription_complete_enabled false Play sound on transcription complete
audio_feedback.ready_enabled true Play sound when app finishes loading
audio_feedback.start_sound assets/sounds/... Custom sound file path
audio_feedback.stop_sound assets/sounds/... Custom sound file path
audio_feedback.cancel_sound assets/sounds/... Custom sound file path
audio_feedback.transcription_complete_sound assets/sounds/... Custom sound file path
audio_feedback.ready_sound assets/sounds/... Custom sound file path
System Tray
system_tray.enabled true Show tray icon
system_tray.tooltip Whisper Key Hover text
Terminal Title
terminal_title.idle "" Tab title prefix when idle: static string or [prefix, seconds] animation frames
terminal_title.recording 🔴 blink Tab title prefix while recording
terminal_title.processing "" Tab title prefix while transcribing
Console
console.start_hidden false Hide console after startup (whisper-key-hideable.exe only)
Update
update.mode prompt prompt or auto
Voice Commands
voice_commands.enabled true Enable voice command mode

📁 Model Cache

Default path for transcription models (via HuggingFace):

  • Windows: %USERPROFILE%\.cache\huggingface\hub\
  • macOS: ~/.cache/huggingface/hub/

Contributing

Check the roadmap for planned features and see CONTRIBUTING.md for guidelines. Please open an issue before starting work on new features.

📦 Dependencies

Cross-platform: faster-whisper · numpy · sounddevice · soxr · pyperclip · ruamel.yaml · pystray · Pillow · playsound3 · ten-vad · hf-xet

Windows: global-hotkeys · pywin32

macOS: pyobjc-framework-Quartz · pyobjc-framework-ApplicationServices

Metadata

Release files for whisper-key-local 0.8.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for whisper-key-local 0.8.4
File Size Uploaded Provenance Actions
whisper_key_local-0.8.4.tar.gz 937.1 kB Without provenance Details for whisper_key_local-0.8.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for whisper-key-local 0.8.4
File Interpreter ABI Platform Actions
whisper_key_local-0.8.4-py3-none-any.whl Python 3 none any Details for whisper_key_local-0.8.4-py3-none-any.whl

Total release size: 1.9 MB

Release files / whisper_key_local-0.8.4.tar.gz

Download URL whisper_key_local-0.8.4.tar.gz
Size 937.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8134d10d11e599abacedee15165ec9ea4675a71250627d8cef686a597cacf2ba
BLAKE2b-256 checksum
How to use checksums
dfeeedaf019472d5496c20601757b4fe83c02727e13ea035013e2fc707df32a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / whisper_key_local-0.8.4-py3-none-any.whl

Download URL whisper_key_local-0.8.4-py3-none-any.whl
Size 936.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6649da58ea2f079eeb087f1238e12061fc940f4c3463776b63b8aa502f38c06f
BLAKE2b-256 checksum
How to use checksums
88cd36741e6089d395dfc33f47e7243f692fad8829fda8eb19368ee4995efd38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Security for whisper-key-local 0.8.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page