dsh-web-speech-input
leozou320-ai
Voice-to-text for the DeepSeek Harness Web UI — live, editable, never auto-sends. | DeepSeek Harness 网页语音输入
PROJECT TOPICS
PROJECT README
语音输入客户端插件(client plugin)——给 DeepSeek Harness Web GUI 的聊天输入框工具行加一个麦克风按钮:点击开始说话,浏览器 Web Speech API(Chrome / Edge 内置,免费、无需 API 密钥)把语音实时转成文字填入输入框。
conversation.input.right 插槽)localStorage 设置 dsh-voice-input-web.autoSend = "1" 后,一段语音识别完成即自动发送| 方案 | 转写方式 | 依赖 | 成本 |
|---|---|---|---|
| 本插件(Web Speech API) | 浏览器系统语音服务 | 无 | 免费 |
| dsh-voice | agent 工具(OpenAI 兼容 ASR) | 需 ASR API key | STT 收费 |
| dsh-voice-input(SenseVoice) | 本地离线转写 | 需模型/服务 | 免费、离线 |
dsh plugin --profile web add dsh-voice-input-web
将本包放入 web profile 的 node_modules:
~/.dsh/profiles/web/node_modules/dsh-voice-input-web/
在 ~/.dsh/profiles/web/cordis.patch.yml 追加:
- insert:
- id: dsh-voice-input-web
name: 'dsh-voice-input-web'
重启 dsh --profile web,浏览器刷新页面。按钮出现在输入框工具行。
安装后插件 id / 包目录名 / localStorage key 统一使用
dsh-voice-input-web(dsh-voice-input在 npm 上已被同名 SenseVoice 方案占用)。
| key | 值 | 默认 | 说明 |
|---|---|---|---|
dsh-voice-input-web.lang |
zh-CN / en-US / auto |
zh-CN |
识别语言 |
dsh-voice-input-web.autoSend |
"1" / "0" |
"0" |
识别完成后自动发送 |
webkitSpeechRecognition 的浏览器);Firefox 不支持 Web Speech API,会显示提示localhost / 127.0.0.1 或 HTTPS 下访问(浏览器安全限制)MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。