Nothree-code/voco-input-sh

DeepSeek Harness (dsh web) 语音输入插件:集成 VocoType 本地离线识别,识别结果自动插入聊天输入框(自动部署/防重复/持续输入)

Project Overview项目介绍

voco-input-sh is a native voice input plugin built exclusively for the DeepSeek Harness (DSH) web client. It adds a styled microphone button to the right side of DSH’s chat input bar, and connects to the local offline VocoType automatic speech recognition engine to pull recognition results and insert them directly into the DSH input draft. It handles the entire end-to-end workflow, from checking if VocoType is running, launching it if it’s stopped, auto-downloading and installing VocoType if it’s not present on the system, to parsing the recognition logs and inserting deduplicated text.

This plugin is built for DSH users who prefer to use voice input to chat with DeepSeek’s large language models, whether they are developers or general users. To start a recording session, you just click the microphone button next to the input box to bring up the floating recording panel. You then hold the right Alt key to speak, release it when you finish, and the recognized text is automatically inserted into your draft. You can speak multiple sentences in a row, and click the button again to end the session when you are done.

The plugin is released under the permissive MIT open source license, and only works on Windows with the DSH web client. You need to have the pnpm package manager installed to set up the plugin correctly. VocoType does not need to be pre-installed by the user; the first time you use the plugin, it will automatically download a 25MB VocoType installer and do a silent install, and VocoType will download its 1.6GB language model on first launch. One known limitation is that any existing reference chips in the input draft will be downgraded to plain text after insertion.

这是一款专为 DeepSeek Harness (DSH) web 版打造的原生持久语音输入插件。它会在 DSH 的聊天输入框旁新增一个麦克风按钮,调用本地离线开源 VocoType 语音识别引擎的识别结果,自动把识别文字插入输入框。插件负责完成检测 VocoType 进程、自动启动、未安装时自动下载部署、读取识别日志、去重、插入文本的完整闭环。

适合习惯用语音输入和 DeepSeek 大模型对话的开发者或普通用户。使用时点击输入框旁的麦克风按钮就能开启录音,按住右 Alt 键说话,松开后识别文字自动插入,支持连续输入多句话,再次点击按钮即可结束输入。插件自带带波形动画的悬浮录音面板,还会显示已插入的识别结果条数,状态清晰。

本插件基于 MIT 许可证开源,仅支持 Windows 系统的 DSH web 版,依赖 pnpm 包管理器安装。VocoType 无需用户提前安装,首次使用会自动下载 25MB 安装包静默部署,1.6GB 模型会在 VocoType 首次启动时自动下载。已知限制是插入文本会把输入框内原有的引用 chip 降级为纯文本,不会丢失内容但会改变显示样式。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
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 github:Nothree-code/voco-input-sh

把 Nothree-code/voco-input-sh 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

voco-input-sh

DeepSeek Harness(dsh web)持久语音输入插件:在聊天输入框旁提供麦克风按钮,弹出录音面板,把本地语音识别软件 VocoType 的识别结果自动插入输入框。

基于 VocoType(开源离线语音输入,Paraformer 中文识别 + FSMN-VAD + CT-Transformer 标点),本插件负责「检测/启动/自动部署 VocoType → 读取识别日志 → 去重 → 自动插入输入框」的完整闭环。

功能特性

  • 🎙 麦克风按钮:输入框工具行右侧,千问风格图标,hover 高亮、录音中红点呼吸
  • 🪟 录音面板:输入框上方弹出,波形动画 + 状态提示 + 累计计数(已插入 N 条)
  • 🚀 自动准备引擎:检测 VocoType 进程 → 未运行自动启动 → 未安装自动下载官方安装包(NSIS 静默安装到 %LOCALAPPDATA%\Programs\VocoType)
  • ✂️ 防重复插入:VocoType 会把文字粘贴到焦点窗口,插件插入前检查草稿是否已包含该文本,避免双份
  • 🔁 持续输入:点一次按钮开始,连续说多句全部自动插入,再点按钮结束
  • 🔧 错误重试:面板出错时提供「重试」按钮
  • ⚡ mtime 优化轮询:日志文件无变化时不重复读取
  • 🔄 日志轮转自适应:VocoType 重启或日志轮转后自动重设读取游标,不会出现「说了话却不再插入」
  • 💾 路径动态探测:日志路径基于 %LOCALAPPDATA%,exe 探测 5 个常见安装位置,换机器可用

安装

  1. 将本包放入 dsh profile 的 packages/ 目录(例如 C:\Users\<你>\.dsh\profiles\web\packages\voco-input-sh)

  2. 在 profile 根目录安装:

    cd <你的 profile 目录>          # 例如 C:\Users\<你>\.dsh\profiles\web
    pnpm add "file:./packages/voco-input-sh"
    
  3. 在 cordis.patch.yml 添加挂载行:

    - insert:
        - id: voco-input-sh
          name: 'voco-input-sh'
    
  4. 重启 dsh web,麦克风按钮自动出现在聊天输入框工具行。

依赖项:需要 pnpm。VocoType 会自动部署,无需预装(首次会自动下载约 25MB 安装包并静默安装,模型约 1.6GB 由 VocoType 首次启动时下载)。

使用

  1. 点击输入框右侧 🎙 按钮 → 弹出录音面板(波形动画 +「按住 AltRight 说话」)
  2. 按住 AltRight 说话,松开
  3. 识别文字自动插入输入框(若 VocoType 已粘贴到输入框则自动去重)
  4. 连续说多句会全部按顺序插入;再点按钮(或面板 ✕)结束

工作原理

┌─────────────┐  识别完成   ┌──────────────────┐   写日志   ┌────────────────────────┐
│  VocoType   │ ──────────► │ 剪贴板 + Ctrl+V  │ ────────► │ %LOCALAPPDATA%\VocoType\│
│ (AltRight)  │             │ (粘贴到焦点窗口)  │            │ logs\VocoType.log      │
└─────────────┘             └──────────────────┘            └───────────┬────────────┘
                                                                        │ 轮询(600ms, mtime优化)
┌─────────────────────────┐   setDraft(草稿拼接)   ┌────────────────────▼─────────┐
│ 输入框(React 受控)     │ ◄──────────────────────│ 插件 Client(slot 面板)     │
└─────────────────────────┘                        │  草稿包含→跳过(去重)       │
                                                   │  未包含→拼接插入             │
                                                   └─────────────┬───────────────┘
                                                          fetch /dsh-voco-*
                                                   ┌─────────────▼───────────────┐
                                                   │ 插件 Host(webServer 路由)  │
                                                   │ ensure / baseline / poll    │
                                                   └────────────────────────────┘

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev deepseek-vl-support 下一个 Next dsh-plugins →