Community Tool: agent-code-tts — Automatic TTS voice for Claude Code

Status Closed — not planned
Maintainer reply None cached
Activity 2 comments · opened Mar 19, 2026 · 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 ↗