### Install and Run Voxtype Source: https://voxtype.io/docs/USER_MANUAL Initial setup involves joining the 'input' group, running the setup wizard to download models and verify permissions, and then starting the Voxtype daemon. ```bash groups | grep input ``` ```bash voxtype setup --download ``` ```bash voxtype ``` -------------------------------- ### Verify Installation Source: https://voxtype.io/docs Run the built-in setup check to validate system permissions and dependencies. ```bash voxtype setup ``` -------------------------------- ### Quick Install Voxtype from Source (Arch Linux) Source: https://voxtype.io/docs Installs dependencies, builds Voxtype from source, and performs initial setup on Arch Linux. Requires logging out and back in after adding user to the 'input' group. ```bash # Install dependencies, build, and setup (Arch) sudo pacman -S --needed base-devel rust clang alsa-lib wtype wl-clipboard && \ git clone https://github.com/peteonrails/voxtype && cd voxtype && \ cargo build --release && \ sudo cp target/release/voxtype /usr/local/bin/ && \ sudo usermod -aG input $USER && \ echo "Log out and back in, then run: voxtype setup --download" ``` -------------------------------- ### Install Typing Backends Source: https://voxtype.io/docs Install wtype or ydotool based on the display environment. ```bash # Fedora: sudo dnf install wtype # Arch: sudo pacman -S wtype # Ubuntu: sudo apt install wtype ``` ```bash # Fedora: sudo dnf install ydotool # Arch: sudo pacman -S ydotool # Ubuntu: sudo apt install ydotool # Enable and start the daemon (Arch) systemctl --user enable --now ydotool ``` ```bash # Install dotool (check your distribution's package manager or AUR) # Add user to input group for uinput access sudo usermod -aG input $USER # Log out and back in ``` ```bash # Install ydotool (see commands above for your distro) # Then enable and start the daemon (required!) systemctl --user enable --now ydotool # Arch # For Fedora, see Troubleshooting guide for system service setup ``` -------------------------------- ### Download Models Source: https://voxtype.io/docs/MODEL_SELECTION_GUIDE Use the `voxtype setup model` command to browse, install, and manage speech recognition models from HuggingFace. ```bash voxtype setup model ``` -------------------------------- ### Install Recommended Display Server Packages Source: https://voxtype.io/docs Install necessary utilities for Wayland or X11 support. ```bash # For Wayland: sudo dnf install wtype wl-clipboard libnotify # For X11 or as fallback: sudo dnf install ydotool ``` -------------------------------- ### Voxtype Basic Usage Example Source: https://voxtype.io/docs/USER_MANUAL Demonstrates the typical workflow of starting the Voxtype daemon, holding a hotkey to speak, and observing the transcribed text output. ```bash voxtype [INFO] Voxtype v0.1.0 starting... [INFO] Using model: base.en [INFO] Hotkey: SCROLLLOCK [INFO] Output mode: type (fallback: clipboard) [INFO] Ready! Hold SCROLLLOCK to record. # User holds ScrollLock and says "Hello world" [INFO] Recording started... [INFO] Recording stopped (1.2s) [INFO] Transcribing... [INFO] Transcribed: "Hello world" [INFO] Typed 11 characters ``` -------------------------------- ### Install Compiled Binaries and Configs Source: https://voxtype.io/docs Manually install the built binary, configuration files, and systemd service. ```bash # Install binary sudo install -Dm755 target/release/voxtype /usr/local/bin/voxtype # Install config (optional - will be created on first run) sudo install -Dm644 config/default.toml /etc/voxtype/config.toml # Install systemd service (optional) install -Dm644 packaging/systemd/voxtype.service \ ~/.config/systemd/user/voxtype.service ``` -------------------------------- ### Install Build Dependencies by Distribution Source: https://voxtype.io/docs Install required development tools and libraries based on the OS. ```bash sudo pacman -S base-devel clang alsa-lib ``` ```bash sudo apt install build-essential libclang-dev libasound2-dev pkg-config ``` ```bash sudo dnf install @development-tools clang-devel alsa-lib-devel ``` -------------------------------- ### Install Wayland Input Support Source: https://voxtype.io/docs Install wtype to enable text injection on Wayland compositors. ```bash # Install wtype sudo pacman -S wtype # or apt/dnf ``` -------------------------------- ### Install eitype Source: https://voxtype.io/docs/USER_MANUAL Installs the eitype tool via cargo, recommended for GNOME and KDE environments. ```bash cargo install eitype ``` -------------------------------- ### Start Voxtype Recording with a Profile Source: https://voxtype.io/docs/USER_MANUAL Specify a profile when starting a recording using the `voxtype record start` command to apply custom settings. ```bash # Use the slack profile for this recording voxtype record start --profile slack voxtype record stop # Or with toggle mode voxtype record toggle --profile code ``` -------------------------------- ### Configure Speed vs Accuracy Example Source: https://voxtype.io/docs/USER_MANUAL Example configuration for switching between a fast model and a high-accuracy model. ```toml [hotkey] key = "SCROLLLOCK" model_modifier = "LEFTSHIFT" [whisper] model = "tiny.en" # Lightning fast for quick notes secondary_model = "large-v3-turbo" # High accuracy when needed [audio.feedback] enabled = true # Helpful audio cues when switching models ``` -------------------------------- ### Install Rust Toolchain Source: https://voxtype.io/docs Set up the Rust environment required for building from source. ```bash curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh source ~/.cargo/env ``` -------------------------------- ### Enable and Start ydotool User Service (Arch Linux) Source: https://voxtype.io/docs/TROUBLESHOOTING Enable and start the `ydotool` user service on Arch Linux using `systemctl --user`. Verify its status afterwards. ```bash # Enable and start ydotool as a user service systemctl --user enable --now ydotool # Verify it's running systemctl --user status ydotool ``` -------------------------------- ### Setup whisper.cpp server Source: https://voxtype.io/docs/USER_MANUAL Commands to clone, build, and prepare a model for a self-hosted whisper.cpp server. ```bash # Clone whisper.cpp git clone https://github.com/ggerganov/whisper.cpp cd whisper.cpp # Build the server make server # Download a model ./models/download-ggml-model.sh large-v3-turbo ``` -------------------------------- ### Install wl-clipboard Source: https://voxtype.io/docs/TROUBLESHOOTING Install the `wl-clipboard` package, which provides `wl-copy` and `wl-paste`, on Arch, Debian, or Fedora systems. ```bash # Install wl-clipboard # Arch: sudo pacman -S wl-clipboard # Debian: sudo apt install wl-clipboard # Fedora: sudo dnf install wl-clipboard # Test it works echo "test" | wl-copy wl-paste ``` -------------------------------- ### Enable and Start ydotool System Service (Fedora) Source: https://voxtype.io/docs/TROUBLESHOOTING Enable and start the `ydotool` system service on Fedora using `sudo systemctl`. This requires editing the service file to allow user access. ```bash # 1. Enable and start the system service sudo systemctl enable --now ydotool # 2. Edit the service to allow your user to access the socket sudo systemctl edit ydotool ``` -------------------------------- ### Voxtype Setup and Model Management Source: https://voxtype.io/docs/USER_MANUAL The `voxtype setup` command is used for initial configuration, downloading default or specific models, and managing transcription engines like ONNX. ```bash voxtype setup ``` ```bash voxtype setup --download ``` ```bash voxtype setup model ``` ```bash voxtype setup vad ``` ```bash voxtype setup onnx ``` -------------------------------- ### Verify Audio Setup Source: https://voxtype.io/docs Check audio sources and perform a recording test. ```bash # List audio sources pactl list sources short # Test recording (speak and listen) arecord -d 3 -f S16_LE -r 16000 test.wav && aplay test.wav && rm test.wav ``` -------------------------------- ### Install Parakeet ONNX Binary Source: https://voxtype.io/docs/PARAKEET Download and install the ONNX-enabled voxtype binary for your CPU architecture. This step is necessary to use Parakeet. Remember to restart the daemon after installation. ```bash # Download the Parakeet binary for your CPU # Example: AVX-512 capable CPU curl -L https://github.com/peteonrails/voxtype/releases/download/v0.6.3/voxtype-0.6.3-linux-x86_64-onnx-avx512 \ -o /tmp/voxtype-onnx # Make executable and install chmod +x /tmp/voxtype-onnx sudo mv /tmp/voxtype-onnx /usr/local/bin/voxtype # Restart the daemon systemctl --user restart voxtype # Verify voxtype --version ``` -------------------------------- ### Build and Install .deb package for Voxtype (Debian/Ubuntu) Source: https://voxtype.io/docs Builds the Voxtype .deb package from source and installs it on Debian/Ubuntu systems. Requires build dependencies to be installed first. ```bash # Install build dependencies sudo apt install build-essential cargo rustc libclang-dev libasound2-dev \ pkg-config debhelper devscripts # Clone and build git clone https://github.com/peteonrails/voxtype cd voxtype # Build the package dpkg-buildpackage -us -uc -b # Install sudo dpkg -i ../voxtype_0.1.0-1_*.deb ``` -------------------------------- ### Sway Keybinding Example Source: https://voxtype.io/docs/CONFIGURATION Example of binding `voxtype record` commands in Sway. Ensure `enabled = false` in your voxtype config for this to work. ```bash bindsym $mod+v exec voxtype record start bindsym --release $mod+v exec voxtype record stop ``` -------------------------------- ### Configure Polybar Module Source: https://voxtype.io/docs/WAYBAR Integration example for Polybar users. ```ini [module/voxtype] type = custom/script exec = voxtype status --format text interval = 1 format =