让 DeepSeek Harness 开口说话——dsh-speak 语音播报插件(Windows/macOS)

发布于

最近给 DeepSeek Harness 写了个语音播报插件 [dsh-speak](https://github.com/Alan2Z/dsh-speak),分享给有同样需求的人。

### 解决什么问题
Agent 跑长任务(构建、测试、批量改代码)的时候,你没法一直盯着屏幕。dsh-speak 让 Agent 回复完成后**直接语音播报最终回复**,干完活电脑会开口告诉你结果,不用回头翻聊天记录。

### 特点
- **事件驱动**:监听 DSH 会话事件流,只播报最终回复,自动跳过 reasoning 和工具调用
- **三类播报**:最终回复、审批请求("需要你的审批")、提问(念出问题和选项)
- **零依赖**:Windows 用系统 SAPI5 + 自然语音( Win11 内置,Win10 装 NaturalVoiceSAPIAdapter ); macOS 用系统 say (可跟随 Siri 音色)
- **已发布 npm**:`dsh plugin --profile web add dsh-speak` 一行安装

### 配置( cordis.patch.yml 里配,无环境变量)
```yaml
- insert:
- id: speech-hook
name: 'dsh-speak'
config:
throttleMs: 1500 # 播报合并延迟(毫秒)
engine: '' # 引擎路径覆盖;留空自动解析
announceApprovals: true # 播报审批请求
announceQuestions: true # 播报提问内容
stripApprovalPrefix: true # 剥离审批原因里的英文模板前缀
longTextMode: message # message=超长念固定提示语 | heading=念最大字号标题
maxChars: 300 # 单次朗读字数上限
volume: 50 # 音量(仅 Windows )
rate: 0 # 语速; 0=引擎默认
```
默认配置:以上注释里的值就是默认值——**开箱即用,不配置也能跑**;想调行为再改。

### 已收录
已在 [awesome-dsh-plugin](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin) 插件列表收录。

### 地址
- GitHub: [https://github.com/Alan2Z/dsh-speak](https://github.com/Alan2Z/dsh-speak)
- npm: [https://www.npmjs.com/package/dsh-speak](https://www.npmjs.com/package/dsh-speak)
- 自定义指南: [https://github.com/Alan2Z/dsh-speak/blob/main/docs/CUSTOMIZATION.md](https://github.com/Alan2Z/dsh-speak/blob/main/docs/CUSTOMIZATION.md)

欢迎试用和反馈,也欢迎提 issue 或 PR 。

---

原文链接:[点击查看](https://www.v2ex.com/t/1235008)

评论

暂无评论。

0.037214s