dmccreary/claude-skills/text-to-speech
Claude Code and agent skill by dmccreary/claude-skills
- community
Checking that the SKILL.md file is still in the repository.
Convert text to speech using ElevenLabs voice AI. Use when generating audio from text, creating voiceovers, building voice apps, or synthesizing speech in 70+ languages.
Install
npx vskill@latest install dmccreary/claude-skills/text-to-speechSKILL.md
ElevenLabs Text-to-Speech
Generate natural speech from text - supports 70+ languages, multiple models for quality vs latency tradeoffs.
Setup: See Installation Guide. For JavaScript, use@elevenlabs/*packages only.
Quick Start
Python
JavaScript
cURL
Models
| Model ID | Languages | Latency | Best For | |
|---|---|---|---|---|
eleven_v3 | 70+ | Standard | Highest quality, emotional range | |
eleven_multilingual_v2 | 29 | Standard | High quality, long-form content | |
eleven_flash_v2_5 | 32 | ~75ms | Ultra-low latency, real-time | |
eleven_flash_v2 | English | ~75ms | English-only, fastest | |
eleven_turbo_v2_5 | 32 | ~250-300ms | Balanced quality/speed | |
eleven_turbo_v2 | English | ~250-300ms | English-only, balanced |
Voice IDs
Use pre-made voices or create custom voices in the dashboard.
Popular voices:
JBFqnCBsd6RMkjVDRZzb- George (male, narrative)EXAVITQu4vr4xnSDxMaL- Sarah (female, soft)onwK4e9ZLuTAKqWW03F9- Daniel (male, authoritative)XB0fDUnXU5powFXDhCwa- Charlotte (female, conversational)
Voice Settings
Fine-tune how the voice sounds:
- Stability: How consistent the voice stays. Lower values = more emotional range and variation, but can sound unstable. Higher = steady, predictable delivery.
- Similarity boost: How closely to match the original voice sample. Higher values sound more like the original but may amplify audio artifacts.
- Style: Exaggerates the voice's unique style characteristics (only works with v2+ models).
- Speaker boost: Post-processing that enhances clarity and voice similarity.
Language Enforcement
Force specific language for pronunciation:
Text Normalization
Controls how numbers, dates, and abbreviations are converted to spoken words. For example, "01/15/2026" becomes "January fifteenth, twenty twenty-six":
"auto"(default): Model decides based on context"on": Always normalize (use when you want natural speech)"off": Speak literally (use when you want "zero one slash one five...")
Request Stitching
When generating long audio in multiple requests, the audio can have pops, unnatural pauses, or tone shifts at the boundaries. Request stitching solves this by letting each request know what comes before/after it:
Output Formats
| Format | Description | |
|---|---|---|
mp3_44100_128 | MP3 44.1kHz 128kbps (default) - compressed, good for web/apps | |
mp3_44100_192 | MP3 44.1kHz 192kbps (Creator+) - higher quality compressed | |
mp3_44100_64 | MP3 44.1kHz 64kbps - lower quality, smaller files | |
mp3_22050_32 | MP3 22.05kHz 32kbps - smallest MP3 files | |
pcm_16000 | Raw PCM 16kHz - use for real-time processing | |
pcm_22050 | Raw PCM 22.05kHz | |
pcm_24000 | Raw PCM 24kHz - good balance for streaming | |
pcm_44100 | Raw PCM 44.1kHz (Pro+) - CD quality | |
pcm_48000 | Raw PCM 48kHz (Pro+) - highest quality | |
ulaw_8000 | μ-law 8kHz - standard for phone systems (Twilio, telephony) | |
alaw_8000 | A-law 8kHz - telephony (alternative to μ-law) | |
opus_48000_64 | Opus 48kHz 64kbps - efficient streaming codec | |
wav_44100 | WAV 44.1kHz - uncompressed with headers |
Streaming
For real-time applications, use the stream method (returns audio chunks as they're generated):
See references/streaming.md for WebSocket streaming.
Error Handling
Common errors:
- 401: Invalid API key
- 422: Invalid parameters (check voice_id, model_id)
- 429: Rate limit exceeded
Tracking Costs
Monitor character usage via response headers (x-character-count, request-id):
References
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/archived/text-to-speech/SKILL.md
Popularity
- Repository stars
- 91
- Repository forks
- 12
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dmccreary/claude-skills/text-to-speech)