Skip to content

refactor(voice): cut over to OpenWhispr - #140

Merged
CollieIsCute merged 1 commit into
masterfrom
refactor/openwhispr-cutover
Aug 31, 2026
Merged

refactor(voice): cut over to OpenWhispr#140
CollieIsCute merged 1 commit into
masterfrom
refactor/openwhispr-cutover

Conversation

@CollieIsCute

Copy link
Copy Markdown
Owner

目的

以已合併的 OpenWhispr user-local 安裝為跨平台錄音/熱鍵前端,移除重複的 VoxType 層,只保留 CrispASR 模型服務與最小切換命令。

變更

  • 移除 VoxType 套件、macOS external、設定、Fish functions/completions 與 Hyprland press/release binds。
  • 加入 asr-mode sensevoice|qwen-1.7b|off;沿用既有模型檔,不搬移或重新下載 2.76 GB。
  • Linux 使用 transient systemd user unit;macOS 使用 launchctl label。
  • off 會停止新舊 managed units/labels,並驗證 CrispASR PID 與 8080 health endpoint 都消失。
  • 保留 OpenWhispr tray/UI;OpenWhispr 連到 http://127.0.0.1:8080/v1
  • 明確維持無特權邊界:不加 input group、不裝 ydotoold、不建立 udev rule 或 system-wide service。

本機驗證

  • 隔離 destination 執行 chezmoi apply,確認新檔安裝與五個 VoxType 舊目標移除。
  • Fish syntax/help/invalid-mode contract。
  • SenseVoice:health 與 /v1/audio/transcriptions 實際請求通過。
  • Qwen3-ASR 1.7B Vulkan:health 與實際請求通過。
  • AMD VRAM:3,903,627,264 → 6,666,862,592 bytes;asr-mode off 後精確回到 3,903,627,264 bytes。
  • off 驗證 unit、PID、8080 消失,並以 transient legacy unit 測試舊服務清理。
  • OpenWhispr 實機啟動、token-protected CLI health 通過,並產生正確的 F13 Hyprland D-Bus bind。

已知上游行為

OpenWhispr 1.9.2 即使在 wlroots/Hyprland 偵測到並優先使用 wtype,仍可能顯示 ydotool setup warning;本 PR 不為了壓掉該提示擴大 input/uinput 權限。

@CollieIsCute
CollieIsCute merged commit 3d74f5d into master Aug 31, 2026
4 checks passed
@CollieIsCute
CollieIsCute deleted the refactor/openwhispr-cutover branch August 31, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant