0nt-one/dsh-voice-input 预览 preview

0nt-one/dsh-voice-input

语音输入插件——在编辑器工具行中增加麦克风按钮,通过浏览器Web Speech API(Chrome/Edge)实时将语音转为文本,支持语言切换和可选的自动发送功能。零依赖。

Project Overview项目介绍

This is a native client plugin built specifically for the DeepSeek Harness Web GUI, adding a dedicated microphone button to the chat input toolbar. Once installed, you can click the button to start voice recording, and the plugin leverages the browser’s built-in Web Speech API to convert your speech to text in real time, then inserts the converted text directly into the chat input box. To install the plugin, the recommended method is running the DSH CLI command dsh plugin --profile web add dsh-voice-input-web, but you can also install it manually from source by following the instructions in the repository.

When the plugin is actively listening for your speech, the microphone button displays a red pulse animation to let you know it’s working, and a floating overlay above the button shows intermediate transcription results as you speak. After you finish speaking a segment, the final recognized text is automatically appended to your existing input draft, so you can make any edits you want before sending the message. You can also switch recognition languages with one click inside the overlay, choosing between Chinese, English, or automatic language detection.

The plugin has zero external dependencies and does not require any API keys or server-side modifications, as all speech recognition processing happens locally in your browser. It only works on browsers that support the webkitSpeechRecognition interface, which includes Chrome and Edge; Firefox currently does not support the required Web Speech API feature. The plugin is released under the open-source MIT license, and you must access the DSH web GUI via localhost or HTTPS to meet browser security requirements.

这是专为 DeepSeek Harness Web GUI 开发的原生客户端插件,它会在聊天输入框工具栏新增一个麦克风按钮。点击按钮后,插件会调用浏览器内置的 Web Speech API(Chrome、Edge 原生支持,免费无需 API 密钥),将语音实时转文字填入输入框。支持通过 DSH 命令行工具一键安装,也可以手动下载源码离线部署到 DSH 本地目录。

插件开始聆听语音时,按钮会显示红色脉冲动效,按钮上方浮层还会实时展示转写的中间结果。每段语音识别完成后,最终文本会自动追加到输入框草稿中,用户可以继续编辑内容再发送。支持一键切换识别语言,可选中文、英文或自动识别,还可以通过配置开启识别完成后自动发送消息的功能。

这个插件零依赖,不需要额外的 API 密钥或服务端改动,整个识别过程都在浏览器本地运行。它仅支持 Chrome、Edge 这类实现了 webkitSpeechRecognition 接口的浏览器,Firefox 目前暂不支持。它以 MIT 协议开源免费使用,且页面需要通过 localhost 或 HTTPS 访问才能满足浏览器安全要求。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 5 stars - very few users, little community feedback星标只有 5,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

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

npm version license GitHub stars

语音输入客户端插件(client plugin)——给 DeepSeek Harness Web GUI 的聊天输入框工具行加一个麦克风按钮:点击开始说话,浏览器 Web Speech API(Chrome / Edge 内置,免费、无需 API 密钥)把语音实时转成文字填入输入框。

dsh-voice-input-web 运行效果预览

功能

  • 麦克风按钮位于输入框工具行右侧(发送按钮左侧,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 源码)

  1. 将本包放入 web profile 的 node_modules:

    ~/.dsh/profiles/web/node_modules/dsh-voice-input-web/
    
  2. 在 ~/.dsh/profiles/web/cordis.patch.yml 追加:

    - insert:
        - id: dsh-voice-input-web
          name: 'dsh-voice-input-web'
    
  3. 重启 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

← 上一个 Prev claude-vision-mcp 下一个 Next dsh-rtk-filter →