Back to home@liuyun847

dsh-client-ui-turn-chime

DSH Web 客户端插件:AI 回复完成时播放双音提示音 (DeepSeek Harness)

Stars
0
Language
JavaScript
Created
Aug 18, 2026
Updated
Aug 18, 2026
GitHub repo

Introduction

dsh-client-ui-turn-chime

License: MIT Version DSH Plugin

DSH(DeepSeek Harness)Web 客户端插件:每次 AI 回复完成时在浏览器播放一声双音"叮咚"提示音,无需盯着屏幕等待回复结束。

特性

  • 双音提示音(C6→G6)由 Web Audio 实时合成,不依赖任何音频文件
  • 监听会话快照 runningtruefalse 的瞬间,仅在回复完成时响一次
  • 不渲染任何可见 UI,无侵入
  • 页面卸载时自动释放音频上下文

使用

安装并注册后,AI 回复完成即自动播放提示音,无其他配置。

安装

在 DSH profile 目录(例如 ~/.dsh/profiles/web/)下:

  1. 添加依赖:

    // package.json
    {
      "dependencies": {
        "dsh-client-ui-turn-chime": "github:liuyun847/dsh-client-ui-turn-chime"
      }
    }
    

    然后 pnpm install(或 npm install)。

  2. cordis.patch.yml 中注册插件行:

    - insert:
        - id: turn-chime
          name: 'dsh-client-ui-turn-chime'
    
  3. 重启 dsh web,刷新页面后生效。

工作原理

  • 通过 dsh.client 声明(见 package.json)注册为浏览器端插件。
  • conversation.composer.dock 座位注册一个不渲染 UI 的监听组件,利用该座位 props 中实时更新的 session.running 字段检测回复完成。
  • 双音由 AudioContext 实时合成(C6 1046.5Hz → G6 1568Hz),失败时静默降级,不影响使用。

License

MIT