ClaudeMods
☰
ZH-CN
● — 人在线 · 浏览 — 次
赞助提交作品
GitHub 仓库 · 发布者 Comprehensive_Act158

attention-sound:一个 Claude Code 模组,当 Claude 需要你时播放声音,让你可以在它工作时做其他事情。

一位 Reddit 用户分享了 attention-sound,这是一个 Claude Code 插件,当 Claude 需要你的输入时播放可配置的声音,在后台运行任务时非常有用。安装方式是通过 /plugin install attention-sounds --marketplace peeratop02/attention-sounds,仓库位于 https://github.com/peeratop02/attention-sounds。

已翻译

关于这个 mod

该用户描述经常将任务委派给 Claude,将其置于后台,然后长时间忘记它。该模组会在 Claude 需要关注时播放你选择的声音,这样你就可以同时处理其他事情。它可以通过 /plugin install attention-sounds --marketplace peeratop02/attention-sounds 在 Claude 应用或终端中安装,源代码位于 GitHub 上的 https://github.com/peeratop02/attention-sounds。

安装

请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。

claude plugin marketplace add peeratop02/attention-sounds
claude plugin install attention-sounds@peeratop02
原文 / README

attention-sounds

attention-sounds showcase: click to watch with sound

▶ Watch the 36-second showcase with sound (the preview above is silent)

A Claude Code mod that plays a sound when Claude needs you, so you can do other things while it works.

| Event | Rings when | | --- | --- | | done | Claude finished its turn | | permission | Claude waits for a permission answer | | question | Claude asks you a question | | attention | any other notification |

Each event can use its own sound, follow the default sound, or be muted. Picks are kept across sessions.

Install

At the prompt of a terminal claude session:

/plugin install attention-sounds --marketplace peeratop02/attention-sounds

Answer y to add the marketplace, then pick a scope. Installed at the user scope, it also loads in the desktop app's Code tab.

Use

/sound                      open the sound panel (or list picks)
/sound <event> <name>       use that sound for the event
/sound <event> default      follow the default sound
/sound <event> off          mute the event
/sound sound <name>         change the default sound
/sound test <name|event>    hear a sound, or what an event plays now
/sound info                 the manual and every sound name

In the desktop app, /sound opens a panel: pick an event, pick a library, click a sound to hear it and use it.

In the terminal the panel takes the keyboard:

| Key | Does | | --- | --- | | arrows / Tab | move between sounds and buttons | | Enter | hear the sound and use it | | 1-5 | choose the event to edit (default, done, permission, question, attention) | | n / b | next / previous library | | t | test what the event plays now | | d / m | follow the default / mute | | Esc | close |

Update

claude plugin update attention-sounds@peeratop02

Then /reload-plugins in a running session, or start a new one.

Sounds

Ships with 18 interface sounds from Kenney (CC0), trimmed and re-encoded.

Add your own

  1. Run /sound info. It prints the mod's sounds folder (Sounds folder: ...).
  2. Make a folder inside it, for example Mine/. Each folder shows up as a library in the panel.
  3. Drop audio files in: .m4a, .mp3, .wav, .aiff or .caf. The file name without its extension is the sound's name (Vine Boom.mp3 becomes Vine Boom).
  4. Run /sound again. No restart needed.

Good sources: /System/Library/Sounds on macOS, Kenney and freesound for free packs, any soundboard site for memes.

Short clips that start at once work best. To cut silence from both ends and even out the volume with ffmpeg:

ffmpeg -i in.mp3 -af "silenceremove=start_periods=1:start_threshold=-45dB,areverse,silenceremove=start_periods=1:start_threshold=-50dB,areverse,loudnorm" "Mine/My Sound.m4a"

A plugin update replaces the installed folder, so keep a copy of your own sounds somewhere else.

Notes

  • Tested on macOS only.
  • Subagent turns and aborted turns stay silent.

Develop

claude plugin validate .
claude plugin test .

Licence

Code: MIT. Bundled sounds: CC0, by Kenney.

更多类似作品