rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:PhoenixYM0307/dsh-voice
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DeepSeek Harness(DSH)的语音插件:说话转文字,回复自动朗读。
在聊天输入框右边放一颗麦克风,按一下开始说话、再按一下把语音转成文字填进输入框(不会替你发送,说完还能改);旁边的小喇叭是自动朗读开关,打开后助手每轮回复结束会自动念出来。
语音识别和语音合成都调用 DeepSeek 官方接口:
| 能力 | 接口 | 说明 |
|---|---|---|
| 语音转文字 | POST /v1/tools/asr |
16 位 PCM WAV / Ogg Opus,≤8 MiB、≤120 秒,语种自动识别 |
| 文字转语音 | POST /v1/tools/tts |
音色 stella(女声)/ tide(男声),不支持语速调节 |
API Key 在 设置 → 语音 里填,只保存到本机
~/.dsh/storages/dsh-hervoice/config.json,不会上报、不会转发给第三方。
agent/assistant-stream 的 text-delta 帧攒正文,按 attempt 结束后推给页面,不轮询、不抓 DOM方式一:从 npm 装(推荐)
dsh plugin --profile web add dsh-hervoice
装完重启 DSH → 设置 → 语音 → 填 Key → 点「试听一句」。
方式二:从仓库源码装
把仓库放进 DSH profile 的插件目录,例如 ~/.dsh/profiles/<profile>/dsh-plugins/dsh-hervoice,然后在该 profile 的 package.json 里登记:
{
"dependencies": {
"dsh-hervoice": "link:<绝对路径>/dsh-plugins/dsh-hervoice"
},
"dsh": {
"profile": {
"bundles": ["...", "dsh-hervoice"]
}
}
}
再让 node_modules/dsh-hervoice 指向插件目录(pnpm install,或 Windows 下直接建 junction):
New-Item -ItemType Junction -Path "$HOME\.dsh\profiles\<profile>\node_modules\dsh-hervoice" `
-Target "$HOME\.dsh\profiles\<profile>\dsh-plugins\dsh-hervoice"
注意:DSH 正在运行时不要动
node_modules(Windows 会锁文件),先退出再改。
maxChars(默认 10000)截断。lib/index.js 服务端:配置读写 + /api/dsh-voice/{config,asr,tts,events}
lib/client.js 浏览器端:composer.dock 按钮条 + settings.section 设置页
cordis.patch.yml DSH 插件装载声明
服务端路由:
GET/POST /api/dsh-voice/config —— 读配置 / 改配置(Key 只回「有没有填」,不回原文)POST /api/dsh-voice/asr —— 请求体是裸 WAV,转成 multipart 转发上游POST /api/dsh-voice/tts —— JSON { "text": "..." },回 audio/wavGET /api/dsh-voice/events —— SSE,推送每轮助手正文~/.dsh/storages/dsh-hervoice/config.json,权限靠用户目录baseUrl 之外的地址MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、deepseek-harness、deepseek-harness-plugin。