elevenlabs-performance-tuning
Skill by jeremylongshore
Optimizes ElevenLabs text-to-speech latency and throughput through model choice, streaming, caching, and audio format tuning. Built for developers building real-time voice features or batch audio generation.
Install elevenlabs-performance-tuning
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/elevenlabs-performance-tuning ~/.claude/skills/elevenlabs-performance-tuningRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install elevenlabs-performance-tuning in Claude Code
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/elevenlabs-performance-tuning ~/.gemini/antigravity-cli/skills/elevenlabs-performance-tuningAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install elevenlabs-performance-tuning in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
ElevenLabs Performance Tuning is a skill for Claude Code that helps reduce text-to-speech latency and raise audio generation throughput with ElevenLabs. It covers model selection, output format choice, HTTP and WebSocket streaming, audio caching, and concurrency-limited parallel generation. The source lists approximate latency per model, from about 75ms for Flash to about 500ms for v3.
The skill includes code examples for each step, such as a model selection helper, a streaming handler, a WebSocket client, an LRU cache keyed by SHA-256, and a p-queue batch generator. The full implementation is in a separate reference file. It is aimed at developers building real-time voice features, IVR systems, LLM voice agents, or batch audio pipelines that face slow TTS responses.
Written from the project's SKILL.md and checked against it.
What it can do
- Model selectionPicks an ElevenLabs model by use case, from Flash for realtime to v3 for maximum quality.
- Output format tuningChooses smaller audio formats for streaming and higher quality formats for downloads.
- HTTP streamingUses the stream endpoint so playback can start before generation finishes.
- WebSocket streamingSends text incrementally over a stream-input WebSocket, suited to LLM token streams.
- Audio cachingCaches generated audio in an LRU cache keyed by a SHA-256 of voice, model and text.
- Parallel generationGenerates multiple segments concurrently with a p-queue bounded by the plan's request limit.
What you need
- ElevenLabs SDK (@elevenlabs/elevenlabs-js)
- ElevenLabs API key set as ELEVENLABS_API_KEY
- Audio playback infrastructure (browser, mobile or server-side)
Try asking
- Pick the fastest ElevenLabs model for a real-time IVR greeting
- Add HTTP streaming to my ElevenLabs TTS endpoint and log time to first byte
- Add an LRU audio cache for repeated ElevenLabs prompts and errors
Good to know
- Concurrency above the plan's request limit returns HTTP 429 errors.
- Latency figures are approximate averages stated in the source.
- Full code examples are in a separate implementation walkthrough file.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/elevenlabs-performance-tuning/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEdit
Alternatives to elevenlabs-performance-tuning
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
elevenlabs-performance-tuning: common questions
Which ElevenLabs model has the lowest latency?
The source lists eleven_flash_v2_5 at about 75ms average latency, aimed at real-time chat, IVR and gaming. It is followed by eleven_turbo_v2_5 at about 150ms.
Does streaming reduce time to first byte?
The source says that using the stream endpoint instead of convert, and writing chunks as they arrive, roughly halves time to first byte.
Can cached audio become stale if the voice or model changes?
The source says the cache key includes voice ID, model ID and text, so a changed voice or model does not serve stale audio.
How do I install elevenlabs-performance-tuning?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is elevenlabs-performance-tuning free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is elevenlabs-performance-tuning safe to use?
It scores 76 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.
What are alternatives to elevenlabs-performance-tuning?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
