yprimakov

Local Tts For AI Agents — AI skill for Claude Code

AI community

Offline Kokoro-82M TTS with Claude Code voice responses, playback controller, and global hotkeys.

How to install Local Tts For AI Agents

This entry records only its repository, not the path inside it, so there is no exact command to give. Open yprimakov/local-tts-for-ai-agents and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Local Tts For AI Agents does

Offline Kokoro-82M TTS with Claude Code voice responses, playback controller, and global hotkeys.

Alternatives in AI

  • Whiteboard AI Tutor — Open-source whiteboard AI tutor with animated lessons and interactive playback 587 ★
  • Memory Forge Rs — Stop resetting satisfying AI chats — edit the memory instead 474 ★
  • Investment News — 为 A股投资者打造的全球产业链资讯看板 · 12 大赛道一一对应 A股板块(半导体/AI/机器人/新能源车…),覆盖 100+ 权威源,用你自己的大模型每日提炼中文「今日要点」+ 翻译 · 全程本地、零 API key 447 ★

README

Local TTS for AI Agents

Offline, GPU-accelerated text-to-speech powered by [Kokoro-82M](https://huggingface.co/hexgrad/Kokoro-82M).

Designed to be installed and operated by AI agents. Works as a standalone CLI tool, a Claude Code voice service, or a general-purpose TTS backend.


What it does

  • Voice responses for Claude Code — a Stop hook reads a short summary of every response aloud
  • On-demand TTS — read any selected text via a global hotkey (Ctrl+Alt+R on Windows)
  • Playback controller — compact dark-glass floating window with pause, seek, and ±10s skip
  • Fully offline — no API keys, no cloud calls; model runs locally at ~6× real-time on CPU
  • All platforms — Windows, macOS, Linux

Using this as a TTS service for AI agents

Claude Code voice responses

After installation, Claude Code will automatically speak a short voice summary at the end of every response. The hook fires on the built-in `Stop` event and requires no configuration beyond the initial setup.

Enable or disable voice responses at any time:

/voice          ← toggle on/off
/voice on
/voice off

Or toggle the flag file directly:

Platform Enable Disable
Windows type nul > "%USERPROFILE%\.claude\voice_enabled" del "%USERPROFILE%\.claude\voice_enabled"
macOS / Linux touch ~/.claude/voice_enabled rm ~/.claude/voice_enabled

Using from any AI agent or script

Any agent can invoke the TTS engine directly:

# Speak text silently (no window, blocks until audio finishes)
venv/bin/python tts.py "Your message here" --autoplay

# Show the interactive playback controller
venv/bin/python tts.py "Your message here" --play

# Save to WAV file
venv/bin/python tts.py "Your message here" --out output.wav

Windows uses `venv\Scripts\python.exe` instead of `venv/bin/python`.


Installation

Prerequisites by platform

**Windows 10/11**

Requirement Notes
Python 3.10+ [python.