Agent skill · marketing growth · jeremylongshore
elevenlabs-performance-tuning
Optimize ElevenLabs TTS latency with model selection, streaming, caching, and audio format tuning. Use when experiencing slow TTS responses, implementing real-time voice features, or optimizing audio generation throughput. Trigger with "elevenlabs performance", "optimize elevenlabs", "elevenlabs latency", "elevenlabs slow", "fast TTS", "reduce elevenlabs latency", or "TTS streaming".
Why this skill is useful
Provides specific strategies and code snippets for optimizing ElevenLabs TTS performance that the AI wouldn't reliably generate on its own.
What it needs
Requires @elevenlabs/elevenlabs-js installed locally. Requires elevenlabs account access. About 4k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.
What this skill does
ElevenLabs Performance Tuning Overview Optimize ElevenLabs TTS latency and throughput through model selection, streaming strategies, audio format tuning, and caching. Latency ranges from ~75ms (Flash) to ~500ms (v3) depending on configuration. The two highest-leverage, lowest-effort levers — model choice (Step 1) and output format (Step 2) — are documented inline below. The four deeper integrations (HTTP streaming, WebSocket streaming, caching, parallel generation) are summarized here with copy-ready code in the full implementation walkthrough. Prerequisites ElevenLabs SDK installed (@elevenlabs/elevenlabs-js) An ElevenLabs API key exported as ELEVENLABSAPIKEY (used by the SDK and passed as xiapikey on the WebSocket handshake) Understanding of your latency requirements Audio playback infrastructure (browser, mobile, server-side) Instructions Step 1: Model Selection for Latency The single biggest performance lever is model choice: Model Avg Latency Quality Languages Use Case ------- ------------- --------- ----------- ---------- elevenflashv25 ~75ms Good 32 Real-time chat, IVR, gaming eleventurbov25 ~150ms Good 32 Balanced speed/quality elevenmultilingualv2 ~300ms High 29 Narration, content creation elevenv3 ~500ms Highest 70+ Maximum expressiveness Step 2: Output Format Optimization Smaller formats = faster transfer: Format Size/Second Quality Best For -------- ------------- --------- ---------- mp344100128 ~16 KB/s High Downloads, archival mp32205032 ~4 KB/s Medium Streaming, mobile pcm16000 ~32 KB/s Raw Server-side processing pcm44100 ~88 KB/s Raw High-quality processing ulaw8000 ~8 KB/s Phone Telephony/IVR Step 3: HTTP Streaming for Time-to-First-Byte Call client.textToSpeech.stream() instead of .convert() and write each chunk to the response as it arrives, so playback starts before generation finishes — roughly halving time-to-first-byte. Set style: 0.0 in voicesettings to shave another 10–20%. Full server handler: implementation.md § Step 3. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills jeremylongshore/elevenlabs-performance-tuning--56d3c2