The lightning-fast Windows + H voice typing alternative for Wayland desktops.
WayType is a modular, high-performance voice dictation engine designed for modern Linux desktops running Wayland. It leverages the blazingly fast Groq Whisper API to transcribe your speech, formats it using Llama, and securely injects the text directly into the application you're focused on using native Wayland-compatible input methods.
It brings a seamless, keyboard-shortcut-driven voice typing experience to Linux, complete with a lightweight background system tray daemon and non-intrusive 3-state audio feedback.
- Native Wayland Support: Safely uses
wl-copyandevdevto paste text directly, bypassing the limitations of traditional X11 macro tools on Wayland. - Ultra-Low Latency: Powered by Groq's incredibly fast Whisper API. Dictation typically appears almost instantly after you finish speaking.
- Auto-Formatting: Uses Llama to intelligently add punctuation and capitalization to your raw speech before pasting.
- Background Daemon: A lightweight GTK3 system tray indicator that visually shows whether WayType is idle, listening, or processing.
- Asynchronous Audio Feedback: Plays built-in Ubuntu system sounds (
bell,message,complete) to guide you without stealing focus.
Ensure you have the following system dependencies installed:
# Core Wayland and Audio tools
sudo apt install wl-clipboard pulseaudio-utils
# GTK dependencies for the System Tray daemon
sudo apt install python3-gi gir1.2-gtk-3.0 gir1.2-ayatanaappindicator3-0.1Tested on Python 3.10. Other Python versions may work but have not been officially tested.
- Clone the repository:
git clone https://github.com/prakhar-thecoder/WayType.git
cd WayType- Set up the Python virtual environment:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt- Configure your API key:
cp .env.example .env
# Edit .env and insert your Groq API Key
nano .envTo get the system tray icon and audio feedback, run the daemon as a systemd user service so it starts automatically in the background.
- Copy the provided service file:
mkdir -p ~/.config/systemd/user/
cp systemd/waytype-daemon.service ~/.config/systemd/user/- Update the service file paths.
Important: The provided
waytype-daemon.servicefile contains the development paths from my machine (/home/prakhar/Projects/WayType). Before enabling the service, you must update both theExecStartandWorkingDirectoryentries to match the location where you cloned WayType.
- Enable and start the service:
systemctl --user daemon-reload
systemctl --user enable --now waytype-daemon.serviceTo make it behave just like Win + H:
- Open Settings → Keyboard → View and Customize Shortcuts → Custom Shortcuts.
- Click Add Shortcut.
- Name:
WayType Voice Dictation - Command:
/absolute/path/to/WayType/run.sh(replace this with the actual path where you cloned the repository). - Shortcut: Press
Super + H(or any shortcut you prefer). - Click Add.
You're done! Press your shortcut anywhere in your desktop to trigger the microphone. You'll hear a bell, the tray icon will change state, and you can start speaking.
WayType features an easy-to-use GTK GUI for configuring your experience. Just click the system tray icon and open Settings to access:
- Format Text: Toggle whether you want LLaMA to add punctuation and capitalization to your dictation, or just paste the raw Whisper output instantly.
- Listen Indefinitely: Toggle whether WayType should automatically stop recording when you stop speaking. If turned on, you can speak as slowly as you like—simply press your global shortcut (
Super + H) a second time to instantly stop recording and paste! - Silence Cutoff: If you prefer automatic cutoff, use this spinner to adjust exactly how many seconds of silence it takes to trigger the paste (from 0.5s to 10s).
- Audio/Visual Feedback: Toggle the playback of Ubuntu system sounds and native desktop notifications.
For advanced technical settings:
- Audio Alerts: Use your own
.wavfiles by editing the paths ingui_daemon.pyor placing your sounds inside anassets/folder. - Paste Delay: Adjust
PASTE_DELAY_SECONDSinconfig.pyif your editor occasionally drops characters or misses the paste event.
After switching from Windows to Ubuntu, I found myself constantly missing the simplicity of the built-in Win + H voice typing experience.
WayType was built to bring that same keyboard-first workflow to modern Wayland desktops while keeping the experience lightweight, responsive, and privacy-conscious by only sending audio to the configured transcription service when you explicitly trigger it.