Skip to main content
G

dsh-thinking-sound

growl-sneer/dsh-thinking-sound

Plays an audio clip of your choice while the agent thinks and works, with adjustable volume, fades and a minimum play time, while a draggable video widget that keys out its own background rides above the composer and a spectrum strip beside the conversation reacts to the audio; all of it is set up in one sidebar panel. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.

Install

dsh plugin --profile web add github:growl-sneer/dsh-thinking-sound

README

思考时歌唱 · dsh-thinking-sound

让你的智能体能够在思考与工作时唱歌!

Let your agent sing while it thinks and works.

思考时歌唱

设置面板:音频控制 / 视频挂件 / 频谱控制

在 DSH 中的实际样子

安装 · Install

在 DSH 的插件市场里搜索 Sound Set 或 思考时歌唱 一键安装; 也可以在「插件 → 添加插件」里填 https://github.com/GROWL-SNEER/dsh-thinking-sound。

Install from the DSH plugin market (search Sound Set), or add https://github.com/GROWL-SNEER/dsh-thinking-sound under Plugins → Add plugin.

设置入口 · Where

左侧栏 Sound Set(在「设置」上方),或「插件 → Sound Set → 配置」。

Sidebar Sound Set, or Plugins → Sound Set → configuration.

要点 · Notes

  • 内置音频随包发布;也可以上传自己的 MP3 / WAV(≤ 25 MB)。

  • 视频挂件默认开启。播放音频时页面上出现一个视频挂件,随声音一起淡入淡出;可以用鼠标拖动,松手即保存位置,下次打开回到原处。大小按窗口百分比缩放,位置、视频、左右/上下翻转、播放速度(0.25×–3.00×,不影响背景音频)都在设置页可调,也可以上传自己的 MP4 / WebM。

  • 对话左侧有一条随音频跳动的频谱(默认 49 根、深灰 #383838、40% 不透明度、竖向长度 91%、中段渐变),柱数、长度、振幅、颜色、渐变、圆角都可在设置页调整;常态回落,重音才冲顶。

  • 一轮结束按设置淡出或直接停止;等待你答复时默认淡出暂停、答复后淡入续播。

  • 只跟随你当前看着的那个会话:切到别的会话会平滑接续,离开会话页(比如打开插件页、设置页)会按你设置的方式淡出停止;后台会话与子代理不出声。

  • 设置与音频都保存在本机 <dsh home>/thinking-sound/,重启不丢。

  • 浏览器要求页面先产生过一次用户手势(发送消息即算),否则首次自动播放会被拦截。

  • The built-in clip ships with the plugin; upload your own MP3 / WAV (≤ 25 MB) if you prefer.

  • The video widget is on by default. It appears while the clip plays, fades with the sound, and can be dragged; the spot is saved and restored next launch. Its size is a share of the window, and position, video, both flips, and playback speed (0.25×–3.00×, audio unaffected) are adjustable in the settings page, which also accepts your own MP4 / WebM.

  • A spectrum strip beside the conversation moves with the clip: 49 bars of #383838 at 40% opacity, 91% of the column by default, with a mid-point gradient. Bar count, length, amplitude, colour, gradient and corner radii are all adjustable; bars rest low and only peaks reach the top.

  • A finished turn fades out or cuts, as configured; while the agent waits for your reply the sound pauses and fades back in afterwards.

  • Only the Session you are looking at is heard: switching to another Session continues the clip, and leaving the conversation (Plugins, Settings, …) fades it out as configured. Background Sessions and subagents stay silent.

  • Settings and audio live in <dsh home>/thinking-sound/ and survive a restart.

  • Browsers need one prior user gesture on the page (sending a message counts), otherwise the first automatic play is blocked.

自定义 · Make it yours

  • 音频:内置一段,也可换成本地 MP3 / WAV。

  • 挂件:自己的 MP4 / WebM、自动抠底、左右/上下翻转、速度、不透明度、吸附输入框。

  • 频谱:柱数 6–64、长度、振幅、颜色、渐变方向与两色、头部/尾部圆角。

  • Audio: built-in, or your own MP3 / WAV.

  • Widget: your own MP4 / WebM, auto background keying, both flips, speed, opacity, composer snap.

  • Spectrum: 6–64 bars, length, amplitude, colour, gradient direction and both stops, head/tail radii.

许可 · License

MIT © GROWL-SNEER

Related plugins