listen
Speech-to-text via node .rulesync/scripts/listen.mjs (ffmpeg mic + local whisper.cpp, OpenAI fallback). Input only.
- License 许可
- MIT
- 所属仓库
- lovrozagar/grunt
- 最近更新
- 2026-11-04
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- listen
- description
- Speech-to-text via node .rulesync/scripts/listen.mjs (ffmpeg mic + local whisper.cpp, OpenAI fallback). Input only.
03 SKILL.md 正文
listen
When the user wants to dictate, transcribe a recording, or toggle a mic, run node .rulesync/scripts/listen.mjs. Spec: .rulesync/reference/listen.md. Input only (audio → text). Do not speak. Do not use /speak.
whoami · devices · rec [--seconds N] · start · stop · toggle · status · file --path P · latest. --clip copies the transcript. --cwd DIR when the process is not already in the repo (hotkeys). rec prints the transcript and transcript=.tmp/grunt/listen/latest.txt.
STT: local whisper-cli first (mac: brew install whisper-cpp); first listen downloads the ggml model to ~/.grunt/whisper/. Else OPENAI_API_KEY. Mic verbs need ffmpeg. Do not tell them to pip-install openai-whisper or curl the model by hand.
If the CLI exits non-zero, print its message. Lines with setup: are for the user — show that command. Tell them to run node .rulesync/scripts/setup.mjs listen (or grunt setup) in their terminal. Do not dump JSON. Do not invent a key. Spec: .rulesync/reference/listen.md .rulesync/reference/setup.md.
04 同仓库更多 Skills
write-roadmap
Write an ordered program of plans under .tmp/grunt/roadmaps/. Use for /write-roadmap. Stops for y, which locks and runs it.
write-plan
Write a local checklist under .tmp/grunt/plans/. Then /implement-plan {n}.
unslop
Cut AI tells from any writing. Use for /unslop.
typescript-best-practices
TypeScript best practices. Use when reading or editing any .ts or .tsx file, or for /typescript-best-practices.
tmp
Dump a one-off convo artifact under .tmp/grunt/.
teach
Explain a body of work plainly so a person actually understands it. Dig into how it works and why it is that way, then weave that into one clear explanation. Use for /teach, 'teach me this', 'help me really understand X', 'explain this change or subsystem to me'.