dsh-voice-f9
全局「按住说话」语音输入:按住 F9 说话、松手出字,任意 Windows 程序可用;本地 SenseVoice 识别,不联网、不占显卡。Hold-to-talk voice input for any Windows app, local SenseVoice via sherpa-onnx. 利用本地模型实现不联网、低延迟的语音转文字,适合追求高效输入体验的Windows用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:uniwell9797/dsh-voice-f9README
Read the full README ↗配置
本插件不声明 Config schema,所以没有自动生成的设置表单 —— 这是刻意的取舍,
原因见下面「为什么没有设置表单」。配置写在 profile 的 cordis.patch.yml 里:
- id: dsh-voice-f9
name: dsh-voice-f9
config:
hotkey: f9 # 可写空格分隔的多个键;对讲机模式不支持组合键
indicator: true # 屏幕上跟着光标跑的小胶囊
pythonPath: 'C:\Python314\pythonw.exe'
sherpaThreads: 4
graceMs: 3000
| 字段 | 默认 | 说明 |
|---|---|---|
enabled | true | 关掉就不启动,但文件还在 |
pythonPath | 自动探测 | pythonw.exe 的绝对路径 |
dataRoot | /voice-f9 | 程序文件放哪 |
modelDir | /speech-to-text/sensevoice | 模型放哪 |
hotkey | f9 | 可写空格分隔的多个键(对讲机模式只支持单键,不支持组合键) |
indicator | true | 屏幕上跟着光标跑的小胶囊 |
sherpaThreads | 4 | 推理线程数 |
graceMs | 3000 | 要求子进程退出后的宽限期;spawn 强制要求这个字段 |
字段写错、类型不对、甚至整个 config 是 null 或字符串,都会被插件内部的
normalizeConfig() 兜回默认值,不会崩、也不会拒绝加载。