rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:charlie-pan/dsh-voice
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DeepSeek Harness (dsh) 语音转文字插件:输入框右下角一个麦克风按钮,说完话,文字直接进输入框。
点一下说话 · 再点一下出字 · 三种识别引擎可切换 · 液态玻璃风格
webspeech(默认) | 浏览器自带语音识别,装完即用、零配置(Edge 走微软云端,国内可用;Chrome 走谷歌,国内可能不通) | 免费 |
| xfyun | 讯飞语音听写,中文效果最好、秒级返回,密钥只存在本机服务端 | 免费额度/按量 |
| whisper | 浏览器本地 Whisper(small q8),音频不出机器、可离线 | 免费 |localStorage),不再被浏览器的默认麦克风坑(Web Speech 引擎不支持指定设备,该模式下自动隐藏);--dsw-* 设计令牌 + --lg-glass-blur 毛玻璃效果,与 dsh-liquid-glass 主题一致。dsh plugin --profile web add git+https://github.com/charlie-pan/dsh-voice.git
重启 dsh web 并硬刷新,打开一个会话即可在输入框右下角看到麦克风按钮。
改 client.js 顶部的常量:
| 常量 | 默认 | 说明 |
|---|---|---|
ASR_ENGINE |
'webspeech' |
'webspeech' / 'xfyun' / 'whisper' |
WEBSpeech_LANG |
'zh-CN' |
Web Speech 引擎的语言 |
MODEL_ID |
onnx-community/whisper-small |
Whisper 引擎的模型;中文想更好可换 medium |
TRANSCRIBE_LANGUAGE |
'chinese' |
Whisper 引擎的转写语言;null = 自动检测 |
xfyun 引擎时)XFYUN_APPID / XFYUN_APIKEY / XFYUN_APISECRET;xfyun.secret.json(已被 .gitignore 忽略):{ "appId": "…", "apiKey": "…", "apiSecret": "…" }
webspeech 引擎用的是浏览器默认麦克风,需在浏览器设置里改默认设备。network 错误:国内 Chrome 走谷歌服务不可用,换 Edge(或 WebView2 内核),或改用 xfyun 引擎。TRANSCRIBE_LANGUAGE 已默认强制中文;换其他语言改它即可。dsh-voice/
├── package.json # dsh.bundle.patch + dsh.client(web)
├── cordis.patch.yml # 插入插件行
├── host.js # Node 半:/dsh-voice/asr(讯飞)+ /dsh-voice/hf(模型代理)
├── client.js # 浏览器半:按钮/下拉框/录音/转写/写回
├── README.md · LICENSE · .gitignore
# 本地迭代(改 client.js 刷新即可生效;改 host.js 需重启 dsh)
dsh plugin --profile web add link:<本目录绝对路径>
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。