Community Tool: agent-code-tts โ€” Automatic TTS voice for Claude Code

Resolved ๐Ÿ’ฌ 2 comments Opened Mar 19, 2026 by niguerrac Closed Apr 17, 2026

agent-code-tts

Hey @anthropics team! ๐Ÿ‘‹

I built a tool that makes Claude Code speak its responses aloud in real time, including the short messages written between tool calls โ€” not just the final response.

๐Ÿ”— Repo: https://github.com/delpyx-digital/agent-code-tts

How it works

Uses two Claude Code hooks:

  • PreToolUse โ€” speaks intermediate messages before each tool call
  • Stop โ€” speaks the final response after all tools finish

A queue-based background worker (tts_worker.py) ensures messages are spoken in order with no overlap, even when multiple tool calls fire rapidly.

Features

  • ๐Ÿ—ฃ๏ธ Real-time voice using Microsoft Edge TTS (free, no API key)
  • 40+ neural voices in Spanish, English, and more
  • One-command install: python install.py
  • Toggle on/off via /tts skill command
  • Windows native (10/11)

Settings snippet

{
  "hooks": {
    "PreToolUse": [{"hooks": [{"type": "command", "command": "~/.claude/hooks/tts_pretools.sh", "async": false}]}],
    "Stop":       [{"hooks": [{"type": "command", "command": "~/.claude/hooks/tts.sh",          "async": false}]}]
  }
}

Sharing in case it's useful for the community or inspires native TTS support in a future release. ๐Ÿ™Œ

โ€” Nilson Guerra / @niguerrac / delpyx-digital

View original on GitHub โ†—

This issue has 2 comments on GitHub. Read the full discussion on GitHub โ†—