forrestahha/dsh-voice-input

Plugin插件 Native原生 ⭐ 2 MIT Vision & Media视觉与多媒体

DeepSeek Harness Web UI 的语音转文字输入插件

Project Overview项目介绍

This is a native voice input plugin built exclusively for the DeepSeek Harness (DSH) Web UI. To install it, users can run the command dsh plugin --profile web add github:forrestahha/dsh-voice-input via the DSH CLI, then start DSH Web with the dsh web command to access the plugin. Once installed, it adds a clickable microphone button directly before the send button in the conversation composer, using the browser’s built-in Web Speech API to stream real-time recognition results directly into the current input draft. It never automatically submits the generated text, requiring users to manually send after reviewing.

The plugin is designed for DSH users who prefer voice input over typing to speed up their workflow. After installation, users just open the DSH Web UI, select a workspace, and click the microphone button to start recording. To stop recording, users click the microphone button a second time, and recording aborts automatically if the input component unloads for any reason. It preserves natural spacing across Chinese, Japanese, Korean, and Latin text for a cleaner output that requires less manual editing after recognition completes. It integrates into the official conversation.input.right extension slot to match DSH’s native UI.

This plugin is released under the open source MIT license, and it requires no external API keys or additional backend services to work. It supports both standard and WebKit-prefixed SpeechRecognition implementations, with broadest support on Chromium-based browsers. If you are running DSH Web from a remote host instead of localhost, you need to enable HTTPS for the browser to grant microphone access. On first use, your browser will prompt you to approve microphone access for the DSH Web UI. The plugin does not store audio or make its own network calls, so privacy risk is minimized.

这个仓库是专为 DeepSeek Harness(DSH)Web UI 开发的原生语音输入插件,安装后会在官方对话输入框的发送按钮左侧新增一个可点击的麦克风按钮,依托浏览器内置的 Web Speech API 实现流式语音转文字,识别结果直接插入当前输入草稿,不会自动提交消息,也不需要额外申请 API 密钥或部署第三方后端服务。

目标用户是习惯使用语音输入、希望减少打字量、提升输入效率的 DSH 用户,使用流程十分简单:安装插件后启动 DSH Web UI,进入工作区后点击麦克风按钮即可开始录制,再次点击麦克风即可停止录制,识别过程中可以正常编辑输入草稿,完全不影响原有的输入和对话流程。

插件遵循 MIT 许可开源,开发需要 Node.js 22.19.0 以上版本和 pnpm 11 包管理器,首次使用时浏览器会请求麦克风权限,若 DSH 部署在非本地主机,需要启用 HTTPS 才能正常访问麦克风,不支持语音识别的浏览器会显示禁用的按钮,不会导致启动失败。

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

把 forrestahha/dsh-voice-input 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-voice-input

English | 简体中文

Voice-to-text input for the DeepSeek Harness Web UI.

The plugin adds a microphone button immediately before the composer send button. It uses the browser's Web Speech API, streams recognition results into the current draft, and never submits the message automatically.

Features

  • Adds to the official conversation.input.right extension slot.
  • Supports standard and WebKit-prefixed SpeechRecognition implementations.
  • Uses the browser language, falling back to zh-CN.
  • Preserves natural spacing for Chinese, Japanese, Korean, and Latin text.
  • Stops recording when clicked again and aborts when the component unloads.
  • Requires no additional API key or host-side service.

Install

Install directly from GitHub into the Web profile:

dsh plugin --profile web add github:forrestahha/dsh-voice-input
dsh web

For a pinned installation:

dsh plugin --profile web add github:forrestahha/dsh-voice-input#v0.1.1

Open the Web UI, select a workspace, and click the microphone button. The browser asks for microphone access on first use.

Browser support

The plugin requires SpeechRecognition or webkitSpeechRecognition. Chromium-based browsers provide the broadest support. Unsupported browsers show a disabled microphone button instead of failing at startup.

localhost is treated as a secure context by modern browsers. If Harness is served from another machine, use HTTPS or the browser may refuse microphone access.

Privacy

The plugin does not store audio and does not add its own network calls. The Web Speech API implementation is controlled by the browser and may send audio to the browser vendor's speech service. Review your browser's privacy policy before recording sensitive material.

Development

Requirements: Node.js ^22.19.0 || >=24.0.0 and pnpm 11.

pnpm install
pnpm check

Install a local checkout for integration testing:

dsh plugin --profile web add /absolute/path/to/dsh-voice-input
dsh web

Design

The npm package is both a Harness bundle and a client plugin:

  • cordis.patch.yml inserts the package into the selected profile.
  • The Node entry is intentionally empty; dsh.client discovers ./client.
  • The browser entry registers VoiceInputButton in conversation.input.right.
  • Harness supplies the current input state and inputActions.setDraft() through slot props.

No agent-loop, model, session-log, or Host API behavior is changed.

License

MIT

← 上一个 Prev dsh-insurance-experts 下一个 Next DSH-CLI →