dsh-client-ui-turn-chime
DSH Web 客户端插件:AI 回复完成时播放双音提示音 (DeepSeek Harness)
- Stars
- 0
- Language
- JavaScript
- Created
- Aug 18, 2026
- Updated
- Aug 18, 2026
Introduction
dsh-client-ui-turn-chime
DSH(DeepSeek Harness)Web 客户端插件:每次 AI 回复完成时在浏览器播放一声双音"叮咚"提示音,无需盯着屏幕等待回复结束。
特性
- 双音提示音(C6→G6)由 Web Audio 实时合成,不依赖任何音频文件
- 监听会话快照
running由true变false的瞬间,仅在回复完成时响一次 - 不渲染任何可见 UI,无侵入
- 页面卸载时自动释放音频上下文
使用
安装并注册后,AI 回复完成即自动播放提示音,无其他配置。
安装
在 DSH profile 目录(例如 ~/.dsh/profiles/web/)下:
-
添加依赖:
// package.json { "dependencies": { "dsh-client-ui-turn-chime": "github:liuyun847/dsh-client-ui-turn-chime" } }然后
pnpm install(或npm install)。 -
在
cordis.patch.yml中注册插件行:- insert: - id: turn-chime name: 'dsh-client-ui-turn-chime' -
重启
dsh web,刷新页面后生效。
工作原理
- 通过
dsh.client声明(见package.json)注册为浏览器端插件。 - 在
conversation.composer.dock座位注册一个不渲染 UI 的监听组件,利用该座位 props 中实时更新的session.running字段检测回复完成。 - 双音由
AudioContext实时合成(C6 1046.5Hz → G6 1568Hz),失败时静默降级,不影响使用。
License
MIT