Fcitx5 的语音输入 — 本地和云端 ASR、LLM 重写、跨分发版包
Shift_R → /asr)vinput-gui for quick setup, vinput CLI for full controlIf you use the archlinuxcn repository, install the repo-built package:
sudo pacman -S fcitx5-vinputThe AUR binary package is also available:
# Full version (with local sherpa-onnx runtime)
yay -S fcitx5-vinput-bin
# Lite version (cloud-only, zero local ONNX runtime)
yay -S fcitx5-vinput-lite-binsudo dnf copr enable xifan/fcitx5-vinput-bin
# Full version (with local sherpa-onnx runtime)
sudo dnf install fcitx5-vinput
# Lite version (cloud-only, zero local ONNX runtime)
sudo dnf install fcitx5-vinput-litesudo add-apt-repository ppa:xifan233/ppa
sudo apt update
# Full version (with local sherpa-onnx runtime)
sudo apt install fcitx5-vinput
# Lite version (cloud-only, zero local ONNX runtime)
sudo apt install fcitx5-vinput-lite# Download latest .deb from GitHub Releases
# Full version (with local sherpa-onnx runtime):
sudo dpkg -i fcitx5-vinput_*.deb
sudo apt-get install -f
# Lite version (cloud-only, zero local ONNX runtime):
sudo dpkg -i fcitx5-vinput-lite_*.deb
sudo apt-get install -fSupports x86_64-linux and aarch64-linux. Both full and lite packages are cached on Cachix.
inputs.fcitx5-vinput.url = "github:xifan2333/fcitx5-vinput";
# Full version (default):
# inputs.fcitx5-vinput.packages.${system}.default
# Lite version (cloud-only, zero local ONNX runtime):
# inputs.fcitx5-vinput.packages.${system}.fcitx5-vinput-liteBinary cache via Cachix:
nixConfig = {
extra-substituters = [ "https://fcitx5-vinput.cachix.org" ];
extra-trusted-public-keys = [ "fcitx5-vinput.cachix.org-1:XpX3AA6+dDIX4qJhb1QM7sbTwX6/qSlGvW8Z5NK6XdU=" ];
};Full Home Manager example in the install docs.
flatpak remote-add --if-not-exists xifan https://xifan2333.github.io/flatpak-auto/xifan.flatpakrepo
# Full version (with local sherpa-onnx runtime)
flatpak install https://xifan2333.github.io/flatpak-auto/refs/org.fcitx.Fcitx5.Addon.Vinput.flatpakref
# Lite version (cloud-only, zero local ONNX runtime)
flatpak install https://xifan2333.github.io/flatpak-auto/refs/org.fcitx.Fcitx5.Addon.Vinput.Lite.flatpakrefAfter installation, grant the extra permissions and restart Fcitx5:
flatpak override --user --filesystem=xdg-run/pipewire-0 org.fcitx.Fcitx5
flatpak override --user --filesystem=xdg-config/systemd:create org.fcitx.Fcitx5
flatpak override --user --filesystem=xdg-cache org.fcitx.Fcitx5
flatpak kill org.fcitx.Fcitx5Download the package for your system from GitHub Releases (both full and lite variants are provided):
.deb (fcitx5-vinput_*.deb / fcitx5-vinput-lite_*.deb).rpm (fcitx5-vinput-*.rpm / fcitx5-vinput-lite-*.rpm).pkg.tar.zst (fcitx5-vinput-*.pkg.tar.zst / fcitx5-vinput-lite-*.pkg.tar.zst).flatpak (fcitx5-vinput.flatpak / fcitx5-vinput-lite.flatpak)tar.gz (*_bundled.tar.gz / fcitx5-vinput-lite-*.tar.gz)Dependencies: cmake, fcitx5, pipewire, libcurl, nlohmann-json, CLI11, Qt6
# Full version (with local sherpa-onnx ASR runtime)
sudo bash scripts/build-sherpa-onnx.sh
cmake --preset release-clang-mold
cmake --build --preset release-clang-mold
sudo cmake --install build
# Lite version (pure cloud ASR + LLM, zero sherpa-onnx dependency)
cmake --preset release-clang-mold -DVINPUT_ENABLE_LOCAL_ASR=OFF
cmake --build --preset release-clang-mold
sudo cmake --install buildsystemctl --user enable --now vinput-daemon.service
fcitx5 -rOpen Vinput GUI → Resources → Models → download and activate a model. Then:
Alt_R — start/stop recordingAlt_R — push-to-talk| Key | Default | Function |
|---|---|---|
| Trigger Key | Alt_R |
Tap to toggle recording; hold to push-to-talk |
| Command Key | Control_R |
Hold after selecting text to modify with voice |
| Command Palette Key | Shift_R |
Open unified command palette (/model, /asr, /scene, /proc) |
All keys can be customized in Fcitx5 configuration.
For ASR configuration, scenes & LLM setup, CLI reference, and registry contribution guide, see the documentation site.
If this project has been helpful to you, feel free to support it.
暂无开放 Issues,或尚未同步最近议题。