From tts
This skill activates when users ask about text-to-speech setup, configuration, troubleshooting, voice selection, or TTS functionality. Trigger phrases include "how do I set up TTS", "configure text to speech", "TTS not working", "change TTS voice", "TTS help", "troubleshoot TTS", "TTS speed", "disable TTS", or any questions about the TTS plugin functionality.
npx claudepluginhub colings86/tts-plugin --plugin ttsThis skill uses the workspace's default tool permissions.
Provide comprehensive guidance for setting up, configuring, and troubleshooting the TTS (text-to-speech) plugin for Claude Code. This skill covers installation prerequisites, configuration options, voice selection, troubleshooting, and usage patterns.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
Provide comprehensive guidance for setting up, configuring, and troubleshooting the TTS (text-to-speech) plugin for Claude Code. This skill covers installation prerequisites, configuration options, voice selection, troubleshooting, and usage patterns.
Before using this plugin, kokoro-tts must be installed. Guide the user through verification:
Check if kokoro-tts is installed:
which kokoro-tts
If not installed, direct user to installation:
kokoro-tts --helpVerify model files exist:
~/.local/share/kokoro-tts/kokoro-v1.0.onnx~/.local/share/kokoro-tts/voices-v1.0.binThe TTS plugin should already be installed if the user is asking about it. If not:
cc --plugin-dirGuide user through quick configuration:
Run the configure command:
/tts-plugin:configure
Choose "Quick Setup" for common settings:
Save and restart Claude Code for changes to take effect
After configuration, test that it works:
/tts-plugin:test
Expected: Should hear "This is a test of the text to speech system"
Run kokoro-tts --help-voices to see all available voices.
Common voices:
Run kokoro-tts --help-languages to see all available languages.
Common languages:
Test voices without changing configuration:
/tts-plugin:test --voice af_sarah
/tts-plugin:test --voice bf_emma --speed 1.5
/tts-plugin:test "Custom message" --voice am_michael
Once you find a voice you like, save it with /tts-plugin:configure.
TTS_ENABLED (true/false)
TTS_VOICE (voice name)
TTS_LANG (language code)
TTS_SPEED (0.5-2.0)
TTS_PRETOOL_ENABLED (true/false)
TTS_USE_TTS_SECTION (true/false)
TTS_MAX_LENGTH (number)
TTS_STATE_DIR (path)
TTS_LOG_DIR (path)
All settings stored in: ~/.claude/tts-plugin.env
Edit this file directly or use /tts-plugin:configure for interactive setup.
User submits prompt (UserPromptSubmit hook):
Claude generates response:
Claude finishes responding (Stop hook):
Optional: Before each tool (PreToolUse hook, if enabled):
Session ends (SessionEnd hook):
Claude adds a "## TTS Response" section to responses when TTS is active. This section contains:
Users see both the normal response AND the TTS Response section. TTS only speaks the TTS Response section (if TTS_USE_TTS_SECTION=true).
Temporarily enable TTS without saving:
/tts-plugin:enable
Save enable setting to .env:
/tts-plugin:enable --persistent
Stop TTS for current session:
/tts-plugin:disable
Save disable setting to .env:
/tts-plugin:disable --persistent
/tts-plugin:configure
# Choose Quick Setup
# Select new voice
/tts-plugin:configure
# Choose Quick Setup
# Set new speed (1.0-2.0)
For real-time TTS during tool execution:
/tts-plugin:configure
# Choose Advanced Setup
# Set TTS_PRETOOL_ENABLED=true
Note: This can be verbose as it speaks before each tool.
Problem: TTS is enabled but nothing plays
Solutions:
which kokoro-tts/tts-plugin:test/tts-plugin:configure~/.local/state/claude-tts/logs/Problem: TTS starts but stops right away
Solutions:
Problem: TTS uses different voice than expected
Solutions:
/tts-plugin:configure → View Current Settings/tts-plugin:configure → Quick Setup/tts-plugin:testProblem: Speech speed is uncomfortable
Solutions:
/tts-plugin:test --speed 1.0 (try 0.8-1.5)/tts-plugin:configure → Quick Setup → Set TTS_SPEEDProblem: TTS speaks too much or too often
Solutions:
/tts-plugin:configure → Advanced → TTS_PRETOOL_ENABLED=false/tts-plugin:configure → Advanced → TTS_MAX_LENGTH=2000/tts-plugin:disable --persistentProblem: TTS speaks entire response instead of optimized section
Solutions:
Problem: Error about missing model or voices files
Solutions:
ls ~/.local/share/kokoro-tts/kokoro-v1.0.onnxls ~/.local/share/kokoro-tts/voices-v1.0.binProblem: Configuration changes don't work
Solutions:
/tts-plugin:test to verify settingsFor most users:
TTS_ENABLED=true
TTS_PRETOOL_ENABLED=false # Disable verbose PreToolUse
TTS_VOICE=af_bella # Or your preferred voice
TTS_LANG=en-gb # Or your preferred language
TTS_SPEED=1.3 # Faster but clear
TTS_USE_TTS_SECTION=true # Use optimized content
TTS_MAX_LENGTH=5000 # Prevent overly long TTS
Enable if you want:
Disable if you want:
/tts-plugin:test --voice VOICE_NAME/tts-plugin:configureTo quickly silence TTS without changing configuration:
/tts-plugin:disable
Re-enable when ready:
/tts-plugin:enable
TTS tracks what's been spoken in session state files:
TTS logs to:
If kokoro-tts files are in non-standard location:
/tts-plugin:configure
# Choose Advanced Setup
# Set TTS_MODEL=/custom/path/to/model.onnx
# Set TTS_VOICES=/custom/path/to/voices.bin
/tts-plugin:enable [--persistent] - Enable TTS/tts-plugin:disable [--persistent] - Disable TTS/tts-plugin:configure - Configure settings/tts-plugin:test [message] [--voice V] [--speed S] [--lang L] - Test TTS/tts-plugin:configure or edit file directly/tts-plugin:test/tts-plugin:configure → View Current Settings~/.local/state/claude-tts/logs/kokoro-tts --helpWhen helping users with TTS:
/tts-plugin:test