Windows · 預編譯
- 設 Groq key:
setx GROQ_API_KEY gsk_xxxxx - 從 Actions 抓最新
mori-ear-windows-x86_64.zip,解壓到固定路徑。 - 跑
install-autostart.ps1(會彈 UAC,點是)→ 登入後自動啟動。 - 立即啟動:
Start-Process .\mori-ear.exe
已經有 Rust + Groq API key?一行裝完跑起來。
cargo install --path . && mori-ear &
兩種路徑,挑一個:預編譯 binary(快、不用 Rust 工具鍊)或從原始碼。
setx GROQ_API_KEY gsk_xxxxxmori-ear-windows-x86_64.zip,解壓到固定路徑。install-autostart.ps1(會彈 UAC,點是)→ 登入後自動啟動。Start-Process .\mori-ear.exeexport GROQ_API_KEY=gsk_xxxxxsudo apt install xclip xdotoolmori-ear-linux-x86_64.tar.gz,tar -xzf … 後 install -m 755 mori-ear ~/.local/bin/。bash scripts/install-autostart.shmori-ear &libasound2-dev libx11-dev xclip xdotool。git clone https://github.com/yazelin/mori-ear && cd mori-earcargo install --path . — binary 進 ~/.cargo/bin/。scripts/install-autostart.{ps1,sh} 設登入自動啟動。按住 Ctrl+Alt+E
開麥克風錄音
講話
繁中、英文、混講都可
放開
Whisper STT + cleanup LLM
字貼進焦點視窗
clipboard + Ctrl+V(terminal 自動切 +Shift)
任何視窗按 Ctrl+Alt+E 就講話。可改 ~/.mori/ear.json 的 hotkey 欄位。
Win32 clipboard + SendInput,Linux 走 xclip + xdotool。Terminal 自動偵測切 Ctrl+Shift+V。
快(~1.5s for 3s 音檔)、便宜、繁中支援良好。Groq key 跟 mori-desktop 共用。
Whisper 簡體輸出 + 偶爾幻覺出 YouTube 結尾語 — cleanup LLM 二次處理,清掉雜訊、轉繁體。
~/.mori/ear.json(可選,partial merge — 沒寫的欄位從 ~/.mori/config.json / 預設補):
{
"hotkey": "Ctrl+Alt+E",
"groq_api_key": "gsk_...",
"language": "zh",
"raw": false
}
Ctrl+Shift+V / Ctrl+Alt+Y)。~/.mori/config.json 的 providers.groq.api_key,再 fallback 環境變數 GROQ_API_KEY。zh / en / 其他 ISO 639-1。true = 跳過 cleanup LLM,直接送 raw Whisper 輸出。省 ~200ms / 一輪 token,但會有錯字 / 簡體。| 環境 | hotkey | paste-back | 備註 |
|---|---|---|---|
| Windows | ✓ | ✓ | 主要驗證環境;Win32 SetClipboardData + SendInput Ctrl+V |
| Linux X11 | ✓ | ✓ | xclip + xdotool ctrl+v,Terminal 自動偵測切 +Shift |
| Linux Wayland | ⚠ 部分 | ⚠ 部分 | XWayland 兜底:只能跟 X11 視窗互動。完整支援要 ashpd + ydotool/wtype |
| macOS | ✓(理論) | ✓(理論) | 第一次跑要授權 Accessibility;paste-back 走 enigo text() 逐字 fallback |