Push-to-talk speech-to-text application that types transcribed text directly into any application.
Vype uses a two-process architecture:
vypeddaemon: keyboard/PTT, audio capture, transcription, typingvypecclient: sends control commands (start,stop,toggle,partial)
- Push-to-talk: Hold a key to record, release to transcribe and type
- Flexible backends: CPU works everywhere, with optional Vulkan (AMD/NVIDIA/Intel) or CUDA (NVIDIA) acceleration
- Auto-model download: Downloads the Whisper model from HuggingFace on first run
- Configurable: Custom PTT key, language, model size, and recording duration
- CPU build: Works on any x86_64 Linux system
- Vulkan build: Any GPU with Vulkan support (AMD, NVIDIA, Intel)
- CUDA build: NVIDIA GPU + CUDA Toolkit
Arch Linux:
sudo pacman -S xdotool vulkan-toolsUbuntu/Debian:
sudo apt install libxdo-dev libvulkan1Wayland sessions also need wtype (sudo apt install wtype or sudo pacman -S wtype).
curl -fsSL https://raw.githubusercontent.com/gnarus-g/vype/main/install.sh | bashOptions:
INSTALL_DIR=/path— Custom install directory (default:~/.local/bin)VERSION=v0.1.0— Install specific version (default: latest)
Download from GitHub Releases:
vype-vX.X.X-x86_64-linux-vulkan.tar.gz— For AMD, NVIDIA, or Intel GPUsvype-vX.X.X-x86_64-linux-cuda.tar.gz— For NVIDIA GPUs only (may be faster)vype-vX.X.X-x86_64-linux-cpu.tar.gz— CPU-only fallback
# Terminal 1: run daemon (default backend: cpu)
vyped -k F9
# Terminal 2: send one-shot commands
vypec toggle
vypec start
vypec stop
vypec partial- Hold configured key (default F9) to record, release to transcribe and type.
vypec togglestarts/stops recording in toggle mode.- Press Ctrl+C in daemon terminal to exit.
When WAYLAND_DISPLAY is set, vyped types with wtype and does not listen for the PTT key, because X11 key capture cannot see native Wayland windows. Bind the key in the compositor to vypec instead. For Hyprland (hyprland.conf):
bind = , F9, exec, /path/to/vypec start
bindrt = , F9, exec, /path/to/vypec stopThe release bind must be transparent (t): the keys wtype sends while F9 is held otherwise shadow it, and recording runs until the max duration.
Or with a Lua config (hyprland.lua):
hl.bind("F9", hl.dsp.exec_cmd("/path/to/vypec start"))
hl.bind("F9", hl.dsp.exec_cmd("/path/to/vypec stop"), { release = true, transparent = true })Usage: vyped [OPTIONS]
Options:
-m, --model <PATH> Custom model path (auto-downloads to ~/.config/vype/)
-s, --model-size <SIZE> Model size: tiny, base, small, medium, large, turbo (default: medium)
-k, --key <KEY> PTT key: F1-F12 (default: F9)
-l, --language <LANG> Transcription language (default: en)
-d, --max-duration <SEC> Max recording duration in seconds (default: 30)
--prompt-file <PATH> Vocabulary prompt (default: ~/.config/vype/prompt.txt if present)
-h, --help Print help
| Size | Disk Space | Quality | Speed |
|---|---|---|---|
| tiny | 75 MB | Lowest | Fastest |
| base | 142 MB | Low | Fast |
| small | 466 MB | Good | Medium |
| medium | 1.5 GB | Better | Slower |
| large | 2.9 GB | Best | Slowest |
| turbo | 874 MB | Near large | Fast (large-v3-turbo, q8_0) |
Whisper often mishears jargon and names. Put the words you use in ~/.config/vype/prompt.txt, written as a sentence, and restart vyped:
We work on Hyprland, Rust, WebSocket relays, PRs and systemd units.
The text biases transcription toward those words and their spelling. Whisper uses at most the last 224 tokens. Use --prompt-file to point at another file.
# Use a larger model for better accuracy
vyped -s large # or medium
# Use F8 as the push-to-talk key
vyped -k F8
# Transcribe in Spanish
vyped -l es
# Use a custom model path
vyped -m /path/to/ggml-small.en.bin- Rust 1.70+
- Optional for GPU acceleration: Vulkan SDK or CUDA Toolkit
- libxdo (xdotool)
Enable exactly one backend feature for vyped: cpu, vulkan, or cuda.
# Clone the repository
git clone https://github.com/gnarus-g/vype.git
cd vype
# CPU build (default backend)
cargo build --release -p vyped -p vypec
# Vulkan build (AMD, NVIDIA, Intel GPUs)
cargo build --release -p vyped -p vypec --no-default-features --features vulkan
# CUDA build (NVIDIA GPUs only, requires CUDA Toolkit)
cargo build --release -p vyped -p vypec --no-default-features --features cuda
# Binaries will be at target/release/vyped and target/release/vypec# Run tests (fast, without whisper compilation)
cargo test
# Check code without building
cargo checkGPL-2.0-only