跳到正文
DEV Community· sunnydachs·· 46 分鐘前AI 評分51

agent-voice-notifier 用 Zundamon 通知編碼智能體完成、待批准或出錯

Let Zundamon Tell You When Your Coding Agent Needs You

AI 導讀

作者 sunnydachs 開發 agent-voice-notifier CLI,使用 VOICEVOX 的 Zundamon,為編碼智能體完成、需要批准或出錯時提供日語語音通知。

正文

Have you ever walked away from a coding task, only to come back to an approval prompt that had been waiting the whole time?

It has happened to me more than once. So I built a small CLI that lets VOICEVOX's Zundamon announce when a coding agent finishes, needs approval, or hits an error.

Voice is for the waiting part of coding, not for the entire session.

The goal is not to use voice all day. It is to make the few minutes spent waiting for a long task easier to step away from.

agent-voice-notifier

CI CodeQL gitleaks

日本語

Local Japanese voice notifications for coding agents, using a separately installed VOICEVOX engine and Zundamon Normal. Python 3.11+, standard-library-only runtime. Supported hook adapters: Codex and Claude Code.

VOICEVOX:ずんだもん — unofficial project. No engine, voice models, character art, or generated audio is bundled. Read third-party notices and the audio usage terms Keep this visible credit with applications or media using generated audio The package code is MIT licensed; third-party rights are separate.

Install and try

Install VOICEVOX separately and start its engine with Zundamon available. Install this package in a Python environment whose console scripts are on PATH:

python -m pip install .
agent-voice-notifier --version
agent-voice-notifier --event complete
agent-voice-notifier --event approval --no-play
agent-voice-notifier --demo --output-dir out

--event accepts complete, approval, and error. Completion means the turn finished; it does not claim that tests passed. Approval asks the listener to check the screen. No arguments…

What it does

agent-voice-notifier turns lifecycle hook events into Japanese voice notifications. It supports three messages: completion, approval needed, and error.

The code is MIT licensed, but it does not bundle the VOICEVOX engine, voice models, character art, or generated audio. Install the engine separately and follow its own terms.

The code is MIT; the voice has its own license.

If you publish generated Zundamon audio, include the credit VOICEVOX:ずんだもん. The repository's THIRD_PARTY_NOTICES.md documents the separation.

How it works

coding agent
  ↓ lifecycle hook
agent-voice-notifier
  ↓ local HTTP
VOICEVOX engine
  ↓ generated WAV
local playback

The engine runs locally, so the article text and audio do not need to leave your machine. Only a short sanitized project basename is spoken. Treat that name as potentially sensitive too.

The project name is the only spoken context.

events.jsonl records when a notification was received and when playback finished. It does not record the model, conversation, or command.

What I verified

On 2026-11-26, using VOICEVOX engine 0.25.2 and Zundamon Normal, I generated all three messages:

  • Complete: 6.240 seconds

  • Approval: 5.483 seconds

  • Error: 6.048 seconds

All three were 24 kHz mono WAV files. I also checked the PCM signal so a non-empty but silent file could not pass as a successful test.

The second completion notification reused the cache instead of synthesizing the same message again. Offline tests: 62 passing.

These numbers describe the audio, not a productivity improvement.

In a real coding-agent session, I verified the completion notification and an error notification triggered by a failing pytest command.

When it is useful

The best case is a task that takes minutes, not seconds. You can step away and still hear whether the agent finished or is waiting for you.

  • Long tests or builds

  • Several agents running in parallel

  • Times when your hands are occupied

  • Approval prompts you tend to miss

If a task finishes immediately, or you are already watching the terminal, voice adds little.

Honest limitations

Hands-free does not mean eyes-free. Reviewing the final diff and approving an action still belongs on the screen.

Approval notifications depend on the agent's hook configuration. The adapter example is included, but I have not yet verified that prompt firing in a real session.

Approval still belongs on the screen.

One agent's tool-result payload had no reliable exit code, so the prototype detects pytest failures from output text. A silent nonzero exit can be missed. This is not a test-status monitor.

Built-in playback currently targets Windows and WSL. Other platforms can generate audio but need their own player.

Wrap-up

Voice notifications are most useful during the waiting part of coding-agent work, not as an all-day interface.

Next, I want to run the same task with and without audio and measure time-to-notice and the number of trips back to the screen.


Audio: VOICEVOX (ずんだもん)

※個人開発のOSSのため、動作を保証するものではありません。ご利用は自己責任でお願いします。不具合や改善案はissueで教えてもらえると嬉しいです。

來源:DEV Community · dev.to