DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

flayteas /

dsh-sound-notify

Verified

用于DSH的对话框任务音效,以及个性化聊天背景||Dialog box sound effects for DSH, as well as personalized chat backgrounds.

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@2558c636

dsh-sound-notify

DSH web 插件:当 agent 向你提问、发起审批申请、或完成一轮任务时,在浏览器里播放提示音。支持为每个触发条件单独设置音效、音量、重复次数与间隔。

安装

方式一:一条命令(推荐,需要 pnpm)

# 在下载了 dsharness-dsh-sound-notify-0.1.0.tgz 的目录里执行
dsh plugin --profile web add .\dsharness-dsh-sound-notify-0.1.0.tgz

方式二:手动安装(没有 pnpm 时)

  1. 把 @dsharness/dsh-sound-notify 整个目录复制到 $DSH_HOME/profiles/node_modules/@dsharness/dsh-sound-notify
  2. 在 $DSH_HOME/profiles/web/cordis.patch.yml 里追加:
- insert:
    - id: sound-notify
      name: '@dsharness/dsh-sound-notify'

安装后重启 dsh web 并刷新页面即可生效。

界面

打开 设置 → 提示音:

  • 启用提示音 总开关
  • 三个触发条件各一组设置:提问 / 审批 / 任务完成
  • 每组可调:音效(上扬 / 下行 / 叮咚 / 单声 / 静音)、音量、次数(1–10)、间隔(0–5000 ms),带试听按钮
  • 改动自动保存到 $DSH_HOME/settings.yaml,实时生效,无需刷新

实现

  • host 半(lib/index.js):注册 sound-notify 设置 namespace(声明 inject: ["settings"] 等待异步初始化的设置服务)
  • 浏览器半(lib/client.js):订阅客户端会话运行时——question/requested、approval/requested 帧会变成会话的 pending 交互,任务完成表现为 running 位翻转;按设置的音效、音量、次数与间隔,用 Web Audio 合成播放(零音频资源)
—/ 5

No ratings yet

Verified DSH bundle

Commit 2558c6360f38

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout