ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 myUdav4iik

done-sound

Claude 完成回合時播放 macOS 系統音效

myUdav4iik@myUdav4iik

myUdav4iik/claude-mods/tree/main/done-sound

已翻譯

關於這個 mod

Claude 完成回覆時會播放音效,讓你在長時間任務期間切換到其他視窗,聽到完成提示。回覆正常完成時播放 "Glass" 系統音效;回合因錯誤或拒絕而結束時播放 "Basso"。你自行停止回合或子代理程式完成時不會播放音效。指令:/sound、/sound off、/sound on、/sound test。設定:sound(Glass)、errorSound(Basso)、minSeconds(0)。透過 claude plugin configure done-sound@claude-mods 設定。Hooks:session.start、負責音效的 command.run,以及使用 afplay 的 turn.complete。需要 macOS。

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add myUdav4iik/claude-mods
claude plugin install done-sound
原文 / README

done-sound

Plays a sound when Claude finishes a reply, so you can switch to another window during a long task and hear when it's done.

  • Reply finished: plays the "Glass" system sound.
  • Turn ended on an error or a refusal: plays "Basso" instead, so you can tell the two apart.
  • No sound when you stop a turn yourself (you're already at the keyboard), or when a subagent finishes part of a larger task.

The sound plays in the background, so it never delays the end of a turn.

Usage

| Command | Does | | --- | --- | | /sound | Mutes or unmutes | | /sound off | Mutes | | /sound on | Unmutes | | /sound test | Plays the done sound now |

The command runs at once, even while Claude is working. Muting is remembered across sessions, and the status line shows sound off while muted.

Settings

| Setting | Default | Does | | --- | --- | --- | | sound | Glass | The sound for a finished reply | | errorSound | Basso | The sound for an error or a refusal | | minSeconds | 0 | Stays silent for turns shorter than this many seconds. Set it to around 15 to hear only long tasks. |

sound and errorSound take any macOS system sound: Basso, Blow, Bottle, Frog, Funk, Glass, Hero, Morse, Ping, Pop, Purr, Sosumi, Submarine or Tink.

The settings appear in Claude Code's config menu. To see or set them from the command line:

claude plugin configure done-sound@claude-mods

How it works

| Hook | What it does | | --- | --- | | session.start | Registers /sound, and shows sound off in the status line if muted. | | command.run for sound | Handles /sound. | | turn.complete | After a turn of the main conversation ends, plays the sound with afplay from /System/Library/Sounds, from a timer so the turn doesn't wait for playback. |

If afplay fails, a toast says so.

Requirements

  • macOS, because the mod uses afplay and the macOS system sounds.

更多類似作品