sutanna233/dsh-voice-input

sutanna233★ 1JavaScriptLast synced: 2026-08-15

Open on GitHub

README excerpt

DSH 插件:语音输入(dsh-voice-input) 在 dsh web 界面里 按住快捷键说话 ,语音识别成文本后 自动作为用户消息发送 给 agent,实现不用打字操控 DeepSeek Harness。 给 Agent 的部署指南 这一节写给负责安装/维护本插件的 agent:照步骤执行即可,每步都标了文件路径、要插入的确切内容和幂等注意。 指用户主目录(Windows 下即 C:\Users\ )。 前置条件 - 已能运行 npx @deepseek-ai/dsh web (dsh CLI 可用)。 - 存在 web profile 目录 /.dsh/profiles/web/ ,里面有 package.json 和 cordis.patch.yml 。 - 本仓库源码。 步骤 1:放置插件源码 把仓库内容复制到 /.dsh/plugins/dsh-voice-input/ ,最终结构必须是: 不要 带 node modules/ 、 .git/ ,也 不要 复制运行时才生成的 /.dsh/voice-input.config.json (里面有 apiKey)。 步骤 2:注册 file: 依赖 编辑 /.dsh/profiles/web/package.json ,在 dependencies 里加一行(已存在则跳过): 路径是 profile 目录的相对路径( profiles/web → 上两级 → plugins/dsh-voice-input )。加完在 profile 目录跑一次安装让 symlink 生效( npm install ,或由 dsh 启动时自动处理)。 步骤 3:注册 loader entry 编辑 /.dsh/profiles/web/cordis.patch.yml ,在顶层数组里 insert: 列表中追加(同一个 id 不要重复): id 是 loader 内部标识(其它配置可用它定位), name 必须等于 package.json 的包名。 config: 段可省略——它只是默认值/base 层,前端填的会覆盖。 步骤 4:重启 dsh 若报 EADDRINUSE: address already in use 127.0.0.1:3080 :说明已有一个实例在跑, 这不是插件问题 。要么直接用它,要么先停掉旧的(Windows: netstat -ano findstr :3080 找到 LISTENING 的 PID,再 taskkill /PID /F )。 验证(agent 可 CLI 自检,无需浏览器) 两个都 HTTP 200 即装配成功。再让人在浏览器打开 http://127.0.0.1:3080,输入框右侧应出现🎤和⚙。 配置(agent 可代填) 推荐让人在浏览器点⚙填。agent …

View full README on GitHub →
Tools / Devdsh-pluginagent

Category