Open
Conversation
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)