elevenlabs-performance-tuning
Installation
SKILL.md
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
ELEVENLABS_API_KEY(used by the SDK and passed asxi_api_keyon 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: