npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@domdhi/claude-code-tts

v2.4.0

Published

Neural TTS hook system for Claude Code. Reads Claude's responses aloud as they finish.

Downloads

1,296

Readme

claude-code-tts

npm npm downloads license platform python

Claude finishes a response. Your speakers read it aloud.

Neural TTS hook system for Claude Code. Hands-free — no copy-paste, no screen-watching. Just code and listen.


Install

# Project-local (recommended)
npx @domdhi/claude-code-tts

# Global — all projects
npx @domdhi/claude-code-tts --global

Requires Node.js 16+ and Python 3.10+. The installer handles everything else: Python packages, hook scripts, the /voice skill, status line, and settings — one command, no build tools. It also offers optional setup for:

  • Offline fallback (kokoro-onnx) — local TTS when you're offline
  • Session pool — auto-assign unique voices when running multiple CC instances
  • CLAUDE.md snippet — makes Claude write spoken prose instead of markdown when voice is active

How It Works

Three Claude Code hooks wire into the response lifecycle:

| Hook | Fires when | File | |------|------------|------| | Stop | Claude finishes any response | stop.py | | PostToolUse:Task | A subagent completes | task-hook.py | | UserPromptSubmit | You type /voice commands | repeat.py |

A persistent background daemon (daemon.py) keeps the TTS model warm. Hook scripts connect to it over TCP on localhost — it starts automatically on the first response and stays running between turns.

Engine priority: Edge TTS (Microsoft neural voices, free, cloud) → kokoro-onnx (local fallback, activates automatically if Edge TTS fails or you're offline)

Status line shows TTS state and current voice at the bottom of Claude Code (e.g. TTS on | Nova).


Commands

Everything goes through /voice:

| Command | Effect | |---------|--------| | /voice | Toggle TTS on/off | | /voice on | Enable TTS | | /voice off | Disable TTS and stop playback | | /voice stop | Stop current speech | | /voice repeat | Replay last response | | /voice read <file> | Read a file or folder aloud | | /voice change <name> | Change voice (e.g. onyx, heart, nova) | | /voice <name> [faster\|slower] | Quick voice + speed change |

Simple commands (on/off/stop/repeat/toggle) are handled instantly by the hook — no LLM roundtrip. change and read use the skill for natural language processing.


Voices

21 built-in voices — 11 American + 10 accent voices. Use /voice change interactively or /voice change <name> directly:

American

| Name | Style | Gender | |------|-------|--------| | Heart | Warm, natural (default) | Female | | Bella | Polished, smooth | Female | | Sarah | Professional, clear | Female | | Sky | Friendly, conversational | Female | | Nova | Energetic, bright | Female | | Michael | Natural, authoritative | Male | | Adam | Deep, resonant | Male | | Echo | Casual, relaxed | Male | | Eric | Confident, direct | Male | | Liam | Young, energetic | Male | | Onyx | Deep, authoritative | Male |

Accents

| Name | Accent | Style | Gender | |------|--------|-------|--------| | Sonia | British | Warm, polished | Female | | Maisie | British | Young, cheerful | Female | | Ryan | British | Balanced, clear | Male | | Thomas | British | Refined, distinguished | Male | | Natasha | Australian | Friendly, natural | Female | | William | Australian | Confident, warm | Male | | Neerja | Indian | Expressive, warm | Female | | Prabhat | Indian | Clear, professional | Male | | Emily | Irish | Soft, melodic | Female | | Connor | Irish | Warm, natural | Male |

Natural language works too: /voice bubbly girl faster or /voice british male or /voice australian

Need more? Edge TTS has 48+ English voices across 14 locales. Add any Edge TTS voice directly to voices.json — see INSTALL.md for details.

Per-agent, per-project, and per-session voice routing via voices.json — see INSTALL.md for details. Running multiple CC instances? Add a session_pool and each instance gets its own voice automatically.


TTS-Optimized Responses

By default, the hooks strip markdown before reading — but code blocks become [code block] and tables turn to mush. For better results, tell Claude to write spoken prose when voice is active.

The installer ships a ready-to-paste CLAUDE.md snippet at .claude/hooks/tts/CLAUDE_SNIPPET.md. Add it to your project's CLAUDE.md:

cat .claude/hooks/tts/CLAUDE_SNIPPET.md >> CLAUDE.md

With this, Claude detects voice mode and writes flowing sentences instead of bullet-heavy markdown. Code blocks still work for actual code — only the explanatory text changes.


Offline Fallback

kokoro-onnx is an optional local engine that kicks in automatically when Edge TTS is unavailable. Models install once globally (~340MB) and are shared by all projects:

pip install kokoro-onnx

See INSTALL.md for model download steps. The daemon detects it automatically; no config change needed.


Requirements

  • Claude Code (obviously)
  • Python 3.10+ — hooks run in Python
  • Node.js 16+ — only needed for npx install
  • Internet — for Edge TTS primary engine (or install the offline fallback)
  • Python packages: edge-tts, miniaudio, sounddevice, cffi (installed automatically)

Full Docs

INSTALL.md covers manual install, all settings, voice priority rules, daemon protocol, performance tuning, and troubleshooting.

CHANGELOG.md tracks all changes.


License

MIT — see LICENSE