Files
nix-config/home/linux/gui/base/vinput/README.md
T
ryan4yin | 二花 6b8c5bfae4 feat(vinput): drop NPU/OpenVINO support (#384)
Vinput's streaming Zipformer models have unbounded dynamic shapes, so
OpenVINO cannot compile them for the GPU or the NPU; the `openvino`
provider and ai's Intel NPU enablement could never run on the NPU (noted
as unverified in WORKAROUNDS WA-017). Remove the backend option, the
daemon's OpenVINO library path, and the intel-npu module enable, and
update the eval test, README and WORKAROUNDS (drop WA-016 and WA-017).

Keep Vinput's stock package and its bundled sherpa-onnx (1.13.4): the
fork-based and nixpkgs-master sherpa overrides existed only to provide the
`openvino` provider, so drop package.nix with them.

Assisted-by: opencode (DeepSeek V4.1 Flash)
2026-10-05 15:42:48 +08:00

1.3 KiB

Fcitx5 Vinput

On ai and shoukei, install a Sherpa-ONNX model, then hold and release right Alt to dictate. Right Shift toggles Chinese/English; left Shift remains a normal modifier. Open Vinput from the application launcher for settings.

One-time setup (CLI)

The GUI path is Resources → Models (download and activate), then Control → ASR Providers. The equivalent non-interactive commands are:

vinput model add onnx-xasr-zh-en-960ms-punct-stream   # download (~130 MB, sha256-verified)
vinput model use onnx-xasr-zh-en-960ms-punct-stream   # set as active model
systemctl --user restart vinput-daemon

vinput model list -a lists the available registry models.

Persistence

Models are stored in ~/.local/share/vinput/models/sherpa-onnx/ and the core config lives in ~/.config/vinput/config.json. Both directories are bind-mounted from /persistent on the tmpfs-root hosts (see hosts/idols-ai/preservation.nix); without that they are wiped on every reboot and the daemon logs Local ASR provider model is not configured. Review model source and license before installing.

Diagnostics

journalctl --user -b -u vinput-daemon

Check the daemon logs for the selected provider, model load, and transcription errors.