0nt-one/dsh-voice-input
语音输入插件——在编辑器工具行中增加麦克风按钮,通过浏览器Web Speech API(Chrome/Edge)实时将语音转为文本,支持语言切换和可选的自动发送功能。零依赖。
项目介绍Project Overview
dsh-voice-input-web 是 DeepSeek Harness Web GUI 的客户端插件,在聊天输入框工具行添加麦克风按钮。点击后通过浏览器 Web Speech API(Chrome/Edge 内置)将语音实时转写为文字填入输入框,浮层可切换中英文及自动识别,支持设置自动发送。零依赖、零密钥、识别在浏览器本地完成。注意事项:仅支持 Chrome/Edge 等支持 webkitSpeechRecognition 的浏览器,需 localhost 或 HTTPS 环境,且语音识别需联网。
dsh-voice-input-web is a client plugin for the DeepSeek Harness Web GUI that adds a microphone button to the chat input toolbar. It uses the browser's Web Speech API (built into Chrome/Edge) to transcribe speech into text in real time, with an overlay for switching between Chinese, English, and auto-detection, plus an optional auto-send setting. The plugin has zero dependencies, requires no API key, and performs recognition locally in the browser. Caveat: it only works in browsers supporting webkitSpeechRecognition (Chrome/Edge, not Firefox), requires localhost or HTTPS, and needs internet access for recognition.
请帮我了解并安装插件:【dsh-voice-input】【https://github.com/0nt-one/dsh-voice-input】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add dsh-voice-input-web
把 0nt-one/dsh-voice-input 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-voice-input-web
语音输入客户端插件(client plugin)——给 DeepSeek Harness Web GUI 的聊天输入框工具行加一个麦克风按钮:点击开始说话,浏览器 Web Speech API(Chrome / Edge 内置,免费、无需 API 密钥)把语音实时转成文字填入输入框。
功能
- 麦克风按钮位于输入框工具行右侧(发送按钮左侧,
conversation.input.right插槽) - 点击开始/停止聆听;聆听时按钮红色脉冲,上方浮层实时显示转写中间结果
- 每段识别完成的最终文本自动追加到输入框草稿,可继续编辑后发送
- 浮层内可一键切换识别语言:中文 / English / 自动
- 可选自动发送:
localStorage设置dsh-voice-input-web.autoSend = "1"后,一段语音识别完成即自动发送 - 零依赖、零密钥、无服务端改动;识别完全在浏览器本地进行
与其他方案对比
| 方案 | 转写方式 | 依赖 | 成本 |
|---|---|---|---|
| 本插件(Web Speech API) | 浏览器系统语音服务 | 无 | 免费 |
| dsh-voice | agent 工具(OpenAI 兼容 ASR) | 需 ASR API key | STT 收费 |
| dsh-voice-input(SenseVoice) | 本地离线转写 | 需模型/服务 | 免费、离线 |
安装
方式一:npm 包(推荐)
dsh plugin --profile web add dsh-voice-input-web
方式二:离线安装(GitHub 源码)
将本包放入 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 方案占用)。
配置(localStorage)
| key | 值 | 默认 | 说明 |
|---|---|---|---|
dsh-voice-input-web.lang |
zh-CN / en-US / auto |
zh-CN |
识别语言 |
dsh-voice-input-web.autoSend |
"1" / "0" |
"0" |
识别完成后自动发送 |
兼容性
- 需要 Chrome / Edge(或任何支持
webkitSpeechRecognition的浏览器);Firefox 不支持 Web Speech API,会显示提示 - 页面需在
localhost/127.0.0.1或 HTTPS 下访问(浏览器安全限制) - 语音识别需要联网(由浏览器调用系统语音服务)
License
MIT
nexu-io/open-design
ruvnet/ruflo
amruthpillai/reactive-resume
esengine/DeepSeek-Reasonix
volcengine/OpenViking
Molunerfinn/PicGo
titanwings/distilly
titanwings/colleague-skill