Open
Conversation
- Add global hotkey (Ctrl+Super) via pynput with config support - Fix display_server auto-detection (wayland → x11) - Fix text injection: use xdotool type directly (no clipboard pollution), fall back to clipboard with both PRIMARY+CLIPBOARD selections - Fix tray icon not updating from background threads (pyqtSignal instead of QTimer.singleShot) - Add blinking tray icon for RECORDING/DICTATING states - Fix wake word → DICTATING: save active window at wake time, play end signal on stop, start silence timer immediately - Reduce VAD trailing silence 300ms → 150ms for faster response - Redesign Settings menu: hotkey always active, wake word listening is an independent ON/OFF toggle Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
pynput's XRecord backend silently fails to receive keyboard events on this system. Switch to direct Xlib XRecord API which works reliably. - Replace pynput keyboard.Listener with Xlib XRecord context - Hotkey in listen mode now acts as manual dictation trigger: LISTENING → DICTATING on press, DICTATING → LISTENING on next press - Wake word continues to work in parallel with hotkey Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR: Add
examples/whisper.linux— Voice typing for Linux desktopSummary
Add a new example application for voice typing on Linux desktop. The app runs as a system tray icon, records speech from the microphone via
pw-record/arecord, transcribes it usingwhisper-cli, and injects the resulting text at the cursor position viaxdotool/wtype/clipboard.Features
Input / Output Modes
Two independent axes give 4 combinations:
Voice Commands
Commands use fuzzy matching (threshold 0.75), editable via tray menu.
Hallucination Filter
Two layers:
Text Injection (Wayland + X11)
Fallback chain:
wtype→ydotool(with evdev key name translation) →xdotool(via XWayland) → clipboard paste.Non-ASCII text (e.g. Cyrillic) always uses clipboard paste to avoid encoding issues.
System Tray
Full settings menu: language, model selection (with one-click download from Hugging Face), GPU device, audio device, input/output mode, wake word, silence timeout, voice commands editor.
Files
Dependencies
whisper-cli(built from this repo)xdotoolorwtype(text injection)xcliporwl-copy(clipboard fallback)arecordorpw-record(audio capture)No additional Python packages beyond PyQt5.
Test plan
python3 -m pytest tests/ -v)