DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-voice-input

y

dsh-voice-input

Manifest valid

DSH 语音输入插件:输入框麦克风按钮,录音经同源路由转发 ASR 识别,文本插入草稿可编辑后发送

UI (client)hasBundlePatchMachine translated

dsh-voice-input

DSH 桌面端语音输入插件:输入框右下角麦克风按钮,录音转文字后插入输入框草稿,可编辑再发送。

  • 录音在浏览器侧完成(getUserMedia),经 DSH 内置 webserver 的同源路由转发到 ASR 网关
  • API key 只在 host 侧解析,永不进入浏览器进程
  • 识别文本先插入草稿,可手动修改后再发送

原理

  1. 麦克风权限:DSH 桌面端主进程默认只放行剪贴板权限,浏览器侧 getUserMedia 会直接 NotAllowedError。本插件在主进程用 Electron 原生 API 重设每个窗口 session 的 permission handler,放行 media(保留原剪贴板规则,后设者生效,不改 DSH 本体)。
  2. ASR 路由:注册同源路由 POST /voice-asr/transcribe,接收 { audioBase64, mime }, host 侧解析 key 后以 OpenAI 兼容 chat/completions 调 ASR 模型 (input_audio base64 Data URL),返回 { text }。路由仅接受回环来源请求。

安装

  1. 把本仓库放到固定位置,例如 ~/.dsh/profiles/desktop/voice-input
  2. 在 ~/.dsh/profiles/desktop/package.json 中:
    • dependencies 增加 "dsh-voice-input": "link:<绝对路径,用正斜杠>"
    • dsh.profile.bundles 增加 "dsh-voice-input"
  3. 把本仓库 cordis.patch.yml 的内容追加进 ~/.dsh/profiles/desktop/cordis.patch.yml (记得把 baseURL 填成你的 ASR 网关)
  4. 在 profile 目录执行 pnpm install,重启 DSH

配置(cordis.patch.yml)

键默认说明
baseURL""OpenAI 兼容 ASR 网关地址(必填)
modelqwen3-asr-flashASR 模型名
apiKeyEnvALIYUNBAILIAN_API_KEYkey 的环境变量名(host 侧解析)
languagezh识别语言
routePath/voice-asr/transcribe同源路由路径
maxBodyBytes15728640音频大小上限(15 MB)

测试

ASR_BASE_URL=<你的网关> node scripts/test-asr.mjs

License

MIT

Comments

Loading…

Similar plugins

dsh-voice-input

by NewDaNew

DeepSeek Harness 语音输入插件:在 Web GUI 输入框添加麦克风按钮,基于浏览器 Web Speech API 的语音转文字输入,支持可选自动发送。

Tools & CapabilitiesVision & MultimodalManifest valid

★ 0

MIT

JavaScript

Aug 15, 2026

dsh plugin --profile web add @local/dsh-plugin-voice-input

by PensiveFei

DSH voice input plugin: tap Alt to talk, get text in composer. Web Speech default (zero config), optional OpenAI-compatible ASR, polish via DSH LLM.

Tools & CapabilitiesManifest valid

★ 35

MIT

JavaScript

Nov 1, 2026

dsh plugin --profile web add dsh-voice-scribe

by Nothree-code

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

Vision & MultimodalDevelopment & InfrastructureTerminal & ClientsManifest valid

★ 3

MIT

JavaScript

Sep 13, 2026

dsh plugin --profile web add voco-input-sh

by 3274375092

Voice input plugin for DeepSeek Harness: mic → local/browser speech recognition → text submitted as a normal chat message. Input-only and preset-agnostic.

UI & ExperienceManifest valid

★ 8

↓ 69/wk

MIT

TypeScript

Oct 1, 2026

dsh plugin --profile web add @nn12138/dsh-voice

by ZIye1208

DSH Web GUI 审批语音提示插件:需要审批/回答的弹窗出现时播放提示音并语音播报

Notifications & IntegrationsManifest valid

★ 3

↓ 209/wk

MIT

JavaScript

Oct 4, 2026

dsh plugin --profile web add dsh-approval-voice

by nonmean

DSH web plugin: macOS native speech-to-text composer input (Apple Speech framework, remote helper)

Manifest valid

★ 0

MIT

TypeScript

Aug 18, 2026

dsh plugin --profile web add dsh-audio-input