[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FA41Y7EE00M3C48PZ9Z46Z":3,"skill-same:01M6FA41Y7EE00M3C48PZ9Z46Z":77},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":57,"repositoryHtmlUrl":58,"repositoryHomepageUrl":59,"ownerHtmlUrl":60,"ownerBlogUrl":6,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M6FA41Y7EE00M3C48PZ9Z46Z","elevenlabs-performance-tuning",null,"Optimize ElevenLabs TTS latency with model selection, streaming, caching, and audio format tuning.\nUse when experiencing slow TTS responses, implementing real-time voice features,\nor optimizing audio generation throughput.\nTrigger: \"elevenlabs performance\", \"optimize elevenlabs\", \"elevenlabs latency\",\n\"elevenlabs slow\", \"fast TTS\", \"reduce elevenlabs latency\", \"TTS streaming\".","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Felevenlabs-performance-tuning\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"elevenlabs","elevenlabs performance tuning","performance tuning","performance","tuning","Audio","model","read","write","edit","streaming","selection","optimize","time","elevenlabs tts","caching","io","Audio Generation","code","model selection","2026-11-10 10:12:30",false,"---\nname: elevenlabs-performance-tuning\ndescription: |\n  Optimize ElevenLabs TTS latency with model selection, streaming, caching, and audio format tuning.\n  Use when experiencing slow TTS responses, implementing real-time voice features,\n  or optimizing audio generation throughput.\n  Trigger: \"elevenlabs performance\", \"optimize elevenlabs\", \"elevenlabs latency\",\n  \"elevenlabs slow\", \"fast TTS\", \"reduce elevenlabs latency\", \"TTS streaming\".\nallowed-tools: Read, Write, Edit\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ntags: [saas, voice, ai, elevenlabs, performance, optimization]\ncompatible-with: claude-code\n---\n\n# ElevenLabs Performance Tuning\n\n## Overview\n\nOptimize 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.\n\n## Prerequisites\n\n- ElevenLabs SDK installed\n- Understanding of your latency requirements\n- Audio playback infrastructure (browser, mobile, server-side)\n\n## Instructions\n\n### Step 1: Model Selection for Latency\n\nThe single biggest performance lever is model choice:\n\n| Model | Avg Latency | Quality | Languages | Use Case |\n|-------|-------------|---------|-----------|----------|\n| `eleven_flash_v2_5` | ~75ms | Good | 32 | Real-time chat, IVR, gaming |\n| `eleven_turbo_v2_5` | ~150ms | Good | 32 | Balanced speed\u002Fquality |\n| `eleven_multilingual_v2` | ~300ms | High | 29 | Narration, content creation |\n| `eleven_v3` | ~500ms | Highest | 70+ | Maximum expressiveness |\n\n```typescript\n\u002F\u002F Select model based on use case\nfunction selectModel(useCase: \"realtime\" | \"balanced\" | \"quality\" | \"max_quality\"): string {\n  const models = {\n    realtime:    \"eleven_flash_v2_5\",\n    balanced:    \"eleven_turbo_v2_5\",\n    quality:     \"eleven_multilingual_v2\",\n    max_quality: \"eleven_v3\",\n  };\n  return models[useCase];\n}\n```\n\n### Step 2: Output Format Optimization\n\nSmaller formats = faster transfer:\n\n| Format | Size\u002FSecond | Quality | Best For |\n|--------|-------------|---------|----------|\n| `mp3_44100_128` | ~16 KB\u002Fs | High | Downloads, archival |\n| `mp3_22050_32` | ~4 KB\u002Fs | Medium | Streaming, mobile |\n| `pcm_16000` | ~32 KB\u002Fs | Raw | Server-side processing |\n| `pcm_44100` | ~88 KB\u002Fs | Raw | High-quality processing |\n| `ulaw_8000` | ~8 KB\u002Fs | Phone | Telephony\u002FIVR |\n\n```typescript\n\u002F\u002F Use smaller format for streaming, higher quality for downloads\nconst streamingConfig = {\n  output_format: \"mp3_22050_32\",  \u002F\u002F 4 KB\u002Fs — fast streaming\n  model_id: \"eleven_flash_v2_5\",   \u002F\u002F ~75ms first byte\n};\n\nconst downloadConfig = {\n  output_format: \"mp3_44100_128\", \u002F\u002F 16 KB\u002Fs — high quality\n  model_id: \"eleven_multilingual_v2\",\n};\n```\n\n### Step 3: HTTP Streaming for Time-to-First-Byte\n\nUse the streaming endpoint to start playback before full generation completes:\n\n```typescript\nimport { ElevenLabsClient } from \"@elevenlabs\u002Felevenlabs-js\";\n\nconst client = new ElevenLabsClient();\n\nasync function streamToResponse(\n  text: string,\n  voiceId: string,\n  res: Response | import(\"express\").Response\n) {\n  const startTime = performance.now();\n\n  const stream = await client.textToSpeech.stream(voiceId, {\n    text,\n    model_id: \"eleven_flash_v2_5\",\n    output_format: \"mp3_22050_32\",\n    voice_settings: {\n      stability: 0.5,\n      similarity_boost: 0.75,\n      style: 0.0,        \u002F\u002F style=0 reduces latency\n    },\n  });\n\n  let firstChunk = true;\n  for await (const chunk of stream) {\n    if (firstChunk) {\n      const ttfb = performance.now() - startTime;\n      console.log(`Time to first byte: ${ttfb.toFixed(0)}ms`);\n      firstChunk = false;\n    }\n    \u002F\u002F Write chunk to response or audio player\n    (res as any).write(chunk);\n  }\n  (res as any).end();\n}\n```\n\n### Step 4: WebSocket Streaming for Lowest Latency\n\nFor interactive applications where text arrives in chunks (e.g., from an LLM):\n\n```typescript\nimport WebSocket from \"ws\";\n\ninterface WSStreamConfig {\n  voiceId: string;\n  modelId?: string;\n  chunkLengthSchedule?: number[];\n}\n\nasync function createTTSStream(config: WSStreamConfig) {\n  const model = config.modelId || \"eleven_flash_v2_5\";\n  const url = `wss:\u002F\u002Fapi.elevenlabs.io\u002Fv1\u002Ftext-to-speech\u002F${config.voiceId}\u002Fstream-input?model_id=${model}`;\n\n  const ws = new WebSocket(url);\n  const audioChunks: Buffer[] = [];\n  let totalLatency = 0;\n  let firstAudioTime = 0;\n\n  await new Promise\u003Cvoid>((resolve, reject) => {\n    ws.on(\"open\", resolve);\n    ws.on(\"error\", reject);\n  });\n\n  \u002F\u002F Initialize stream\n  ws.send(JSON.stringify({\n    text: \" \",\n    xi_api_key: process.env.ELEVENLABS_API_KEY,\n    voice_settings: { stability: 0.5, similarity_boost: 0.75 },\n    \u002F\u002F Control buffering: fewer chars = lower latency, more = better prosody\n    chunk_length_schedule: config.chunkLengthSchedule || [50, 120, 200],\n  }));\n\n  return {\n    \u002F\u002F Send text chunks as they arrive (e.g., from LLM stream)\n    sendText(text: string) {\n      ws.send(JSON.stringify({ text }));\n    },\n\n    \u002F\u002F Signal end of input\n    finish(): Promise\u003CBuffer> {\n      return new Promise((resolve) => {\n        const sendTime = Date.now();\n\n        ws.on(\"message\", (data: Buffer) => {\n          const msg = JSON.parse(data.toString());\n          if (msg.audio) {\n            if (!firstAudioTime) {\n              firstAudioTime = Date.now();\n              totalLatency = firstAudioTime - sendTime;\n            }\n            audioChunks.push(Buffer.from(msg.audio, \"base64\"));\n          }\n          if (msg.isFinal) {\n            console.log(`WebSocket TTFB: ${totalLatency}ms`);\n            ws.close();\n            resolve(Buffer.concat(audioChunks));\n          }\n        });\n\n        ws.send(JSON.stringify({ text: \"\" })); \u002F\u002F EOS signal\n      });\n    },\n  };\n}\n\n\u002F\u002F Usage with LLM streaming\nconst stream = await createTTSStream({\n  voiceId: \"21m00Tcm4TlvDq8ikWAM\",\n  chunkLengthSchedule: [50, 100, 150],  \u002F\u002F Aggressive buffering for speed\n});\n\n\u002F\u002F As LLM tokens arrive:\nstream.sendText(\"Hello, \");\nstream.sendText(\"how are \");\nstream.sendText(\"you today?\");\n\nconst audio = await stream.finish();\n```\n\n### Step 5: Audio Caching\n\nCache generated audio for repeated content (greetings, prompts, errors):\n\n```typescript\nimport { LRUCache } from \"lru-cache\";\nimport crypto from \"crypto\";\n\nconst audioCache = new LRUCache\u003Cstring, Buffer>({\n  max: 500,                    \u002F\u002F Max cached audio files\n  maxSize: 100 * 1024 * 1024,  \u002F\u002F 100MB total\n  sizeCalculation: (value) => value.length,\n  ttl: 24 * 60 * 60 * 1000,    \u002F\u002F 24 hours\n});\n\nfunction cacheKey(text: string, voiceId: string, modelId: string): string {\n  return crypto.createHash(\"sha256\")\n    .update(`${voiceId}:${modelId}:${text}`)\n    .digest(\"hex\");\n}\n\nasync function cachedTTS(\n  text: string,\n  voiceId: string,\n  modelId = \"eleven_multilingual_v2\"\n): Promise\u003CBuffer> {\n  const key = cacheKey(text, voiceId, modelId);\n\n  const cached = audioCache.get(key);\n  if (cached) {\n    console.log(\"[Cache HIT]\", key.substring(0, 8));\n    return cached;\n  }\n\n  const stream = await client.textToSpeech.convert(voiceId, {\n    text,\n    model_id: modelId,\n  });\n\n  const chunks: Buffer[] = [];\n  for await (const chunk of stream as any) {\n    chunks.push(Buffer.from(chunk));\n  }\n  const audio = Buffer.concat(chunks);\n\n  audioCache.set(key, audio);\n  console.log(\"[Cache MISS]\", key.substring(0, 8), `${audio.length} bytes`);\n  return audio;\n}\n```\n\n### Step 6: Parallel Generation\n\nGenerate multiple audio segments concurrently:\n\n```typescript\nimport PQueue from \"p-queue\";\n\nconst queue = new PQueue({ concurrency: 5 }); \u002F\u002F Match plan limit\n\nasync function generateChapters(\n  chapters: { title: string; text: string }[],\n  voiceId: string\n): Promise\u003CBuffer[]> {\n  const results = await Promise.all(\n    chapters.map(chapter =>\n      queue.add(async () => {\n        const start = performance.now();\n        const audio = await cachedTTS(chapter.text, voiceId);\n        const duration = performance.now() - start;\n        console.log(`${chapter.title}: ${duration.toFixed(0)}ms`);\n        return audio;\n      })\n    )\n  );\n\n  return results as Buffer[];\n}\n```\n\n## Performance Optimization Checklist\n\n| Optimization | Latency Impact | Implementation |\n|-------------|----------------|----------------|\n| Flash model | -60% vs v2, -85% vs v3 | Change `model_id` |\n| Streaming endpoint | -50% time-to-first-byte | Use `.stream()` instead of `.convert()` |\n| WebSocket streaming | Best for LLM integration | See Step 4 |\n| Smaller output format | -30% transfer time | `mp3_22050_32` vs `mp3_44100_128` |\n| Audio caching | -99% for repeated content | LRU cache with SHA-256 keys |\n| `style: 0` | -10-20% latency | Remove style exaggeration |\n| Concurrency queue | Maximize throughput | p-queue matching plan limit |\n\n## Error Handling\n\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| High TTFB | Wrong model | Switch to `eleven_flash_v2_5` |\n| Choppy streaming | Network buffering | Use `pcm_16000` for direct playback |\n| Cache miss storm | TTL expired for popular content | Use stale-while-revalidate pattern |\n| WebSocket drops | Network instability | Reconnect with buffered text |\n| Memory pressure | Audio cache too large | Set `maxSize` limit on LRU cache |\n\n## Resources\n\n- [ElevenLabs Streaming API](https:\u002F\u002Felevenlabs.io\u002Fdocs\u002Fapi-reference\u002Ftext-to-speech\u002Fstream)\n- [WebSocket API Reference](https:\u002F\u002Felevenlabs.io\u002Fdocs\u002Fapi-reference\u002Ftext-to-speech\u002Fv-1-text-to-speech-voice-id-stream-input)\n- [ElevenLabs Models](https:\u002F\u002Felevenlabs.io\u002Fdocs\u002Foverview\u002Fmodels)\n- [LRU Cache](https:\u002F\u002Fgithub.com\u002Fisaacs\u002Fnode-lru-cache)\n\n## Next Steps\n\nFor cost optimization, see `elevenlabs-cost-tuning`.\n\n","# ElevenLabs Performance Tuning\n\n## Overview\n\nOptimize 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.\n\n## Prerequisites\n\n- ElevenLabs SDK installed\n- Understanding of your latency requirements\n- Audio playback infrastructure (browser, mobile, server-side)\n\n## Instructions\n\n### Step 1: Model Selection for Latency\n\nThe single biggest performance lever is model choice:\n\n| Model | Avg Latency | Quality | Languages | Use Case |\n|-------|-------------|---------|-----------|----------|\n| `eleven_flash_v2_5` | ~75ms | Good | 32 | Real-time chat, IVR, gaming |\n| `eleven_turbo_v2_5` | ~150ms | Good | 32 | Balanced speed\u002Fquality |\n| `eleven_multilingual_v2` | ~300ms | High | 29 | Narration, content creation |\n| `eleven_v3` | ~500ms | Highest | 70+ | Maximum expressiveness |\n\n```typescript\n\u002F\u002F Select model based on use case\nfunction selectModel(useCase: \"realtime\" | \"balanced\" | \"quality\" | \"max_quality\"): string {\n  const models = {\n    realtime:    \"eleven_flash_v2_5\",\n    balanced:    \"eleven_turbo_v2_5\",\n    quality:     \"eleven_multilingual_v2\",\n    max_quality: \"eleven_v3\",\n  };\n  return models[useCase];\n}\n```\n\n### Step 2: Output Format Optimization\n\nSmaller formats = faster transfer:\n\n| Format | Size\u002FSecond | Quality | Best For |\n|--------|-------------|---------|----------|\n| `mp3_44100_128` | ~16 KB\u002Fs | High | Downloads, archival |\n| `mp3_22050_32` | ~4 KB\u002Fs | Medium | Streaming, mobile |\n| `pcm_16000` | ~32 KB\u002Fs | Raw | Server-side processing |\n| `pcm_44100` | ~88 KB\u002Fs | Raw | High-quality processing |\n| `ulaw_8000` | ~8 KB\u002Fs | Phone | Telephony\u002FIVR |\n\n```typescript\n\u002F\u002F Use smaller format for streaming, higher quality for downloads\nconst streamingConfig = {\n  output_format: \"mp3_22050_32\",  \u002F\u002F 4 KB\u002Fs — fast streaming\n  model_id: \"eleven_flash_v2_5\",   \u002F\u002F ~75ms first byte\n};\n\nconst downloadConfig = {\n  output_format: \"mp3_44100_128\", \u002F\u002F 16 KB\u002Fs — high quality\n  model_id: \"eleven_multilingual_v2\",\n};\n```\n\n### Step 3: HTTP Streaming for Time-to-First-Byte\n\nUse the streaming endpoint to start playback before full generation completes:\n\n```typescript\nimport { ElevenLabsClient } from \"@elevenlabs\u002Felevenlabs-js\";\n\nconst client = new ElevenLabsClient();\n\nasync function streamToResponse(\n  text: string,\n  voiceId: string,\n  res: Response | import(\"express\").Response\n) {\n  const startTime = performance.now();\n\n  const stream = await client.textToSpeech.stream(voiceId, {\n    text,\n    model_id: \"eleven_flash_v2_5\",\n    output_format: \"mp3_22050_32\",\n    voice_settings: {\n      stability: 0.5,\n      similarity_boost: 0.75,\n      style: 0.0,        \u002F\u002F style=0 reduces latency\n    },\n  });\n\n  let firstChunk = true;\n  for await (const chunk of stream) {\n    if (firstChunk) {\n      const ttfb = performance.now() - startTime;\n      console.log(`Time to first byte: ${ttfb.toFixed(0)}ms`);\n      firstChunk = false;\n    }\n    \u002F\u002F Write chunk to response or audio player\n    (res as any).write(chunk);\n  }\n  (res as any).end();\n}\n```\n\n### Step 4: WebSocket Streaming for Lowest Latency\n\nFor interactive applications where text arrives in chunks (e.g., from an LLM):\n\n```typescript\nimport WebSocket from \"ws\";\n\ninterface WSStreamConfig {\n  voiceId: string;\n  modelId?: string;\n  chunkLengthSchedule?: number[];\n}\n\nasync function createTTSStream(config: WSStreamConfig) {\n  const model = config.modelId || \"eleven_flash_v2_5\";\n  const url = `wss:\u002F\u002Fapi.elevenlabs.io\u002Fv1\u002Ftext-to-speech\u002F${config.voiceId}\u002Fstream-input?model_id=${model}`;\n\n  const ws = new WebSocket(url);\n  const audioChunks: Buffer[] = [];\n  let totalLatency = 0;\n  let firstAudioTime = 0;\n\n  await new Promise\u003Cvoid>((resolve, reject) => {\n    ws.on(\"open\", resolve);\n    ws.on(\"error\", reject);\n  });\n\n  \u002F\u002F Initialize stream\n  ws.send(JSON.stringify({\n    text: \" \",\n    xi_api_key: process.env.ELEVENLABS_API_KEY,\n    voice_settings: { stability: 0.5, similarity_boost: 0.75 },\n    \u002F\u002F Control buffering: fewer chars = lower latency, more = better prosody\n    chunk_length_schedule: config.chunkLengthSchedule || [50, 120, 200],\n  }));\n\n  return {\n    \u002F\u002F Send text chunks as they arrive (e.g., from LLM stream)\n    sendText(text: string) {\n      ws.send(JSON.stringify({ text }));\n    },\n\n    \u002F\u002F Signal end of input\n    finish(): Promise\u003CBuffer> {\n      return new Promise((resolve) => {\n        const sendTime = Date.now();\n\n        ws.on(\"message\", (data: Buffer) => {\n          const msg = JSON.parse(data.toString());\n          if (msg.audio) {\n            if (!firstAudioTime) {\n              firstAudioTime = Date.now();\n              totalLatency = firstAudioTime - sendTime;\n            }\n            audioChunks.push(Buffer.from(msg.audio, \"base64\"));\n          }\n          if (msg.isFinal) {\n            console.log(`WebSocket TTFB: ${totalLatency}ms`);\n            ws.close();\n            resolve(Buffer.concat(audioChunks));\n          }\n        });\n\n        ws.send(JSON.stringify({ text: \"\" })); \u002F\u002F EOS signal\n      });\n    },\n  };\n}\n\n\u002F\u002F Usage with LLM streaming\nconst stream = await createTTSStream({\n  voiceId: \"21m00Tcm4TlvDq8ikWAM\",\n  chunkLengthSchedule: [50, 100, 150],  \u002F\u002F Aggressive buffering for speed\n});\n\n\u002F\u002F As LLM tokens arrive:\nstream.sendText(\"Hello, \");\nstream.sendText(\"how are \");\nstream.sendText(\"you today?\");\n\nconst audio = await stream.finish();\n```\n\n### Step 5: Audio Caching\n\nCache generated audio for repeated content (greetings, prompts, errors):\n\n```typescript\nimport { LRUCache } from \"lru-cache\";\nimport crypto from \"crypto\";\n\nconst audioCache = new LRUCache\u003Cstring, Buffer>({\n  max: 500,                    \u002F\u002F Max cached audio files\n  maxSize: 100 * 1024 * 1024,  \u002F\u002F 100MB total\n  sizeCalculation: (value) => value.length,\n  ttl: 24 * 60 * 60 * 1000,    \u002F\u002F 24 hours\n});\n\nfunction cacheKey(text: string, voiceId: string, modelId: string): string {\n  return crypto.createHash(\"sha256\")\n    .update(`${voiceId}:${modelId}:${text}`)\n    .digest(\"hex\");\n}\n\nasync function cachedTTS(\n  text: string,\n  voiceId: string,\n  modelId = \"eleven_multilingual_v2\"\n): Promise\u003CBuffer> {\n  const key = cacheKey(text, voiceId, modelId);\n\n  const cached = audioCache.get(key);\n  if (cached) {\n    console.log(\"[Cache HIT]\", key.substring(0, 8));\n    return cached;\n  }\n\n  const stream = await client.textToSpeech.convert(voiceId, {\n    text,\n    model_id: modelId,\n  });\n\n  const chunks: Buffer[] = [];\n  for await (const chunk of stream as any) {\n    chunks.push(Buffer.from(chunk));\n  }\n  const audio = Buffer.concat(chunks);\n\n  audioCache.set(key, audio);\n  console.log(\"[Cache MISS]\", key.substring(0, 8), `${audio.length} bytes`);\n  return audio;\n}\n```\n\n### Step 6: Parallel Generation\n\nGenerate multiple audio segments concurrently:\n\n```typescript\nimport PQueue from \"p-queue\";\n\nconst queue = new PQueue({ concurrency: 5 }); \u002F\u002F Match plan limit\n\nasync function generateChapters(\n  chapters: { title: string; text: string }[],\n  voiceId: string\n): Promise\u003CBuffer[]> {\n  const results = await Promise.all(\n    chapters.map(chapter =>\n      queue.add(async () => {\n        const start = performance.now();\n        const audio = await cachedTTS(chapter.text, voiceId);\n        const duration = performance.now() - start;\n        console.log(`${chapter.title}: ${duration.toFixed(0)}ms`);\n        return audio;\n      })\n    )\n  );\n\n  return results as Buffer[];\n}\n```\n\n## Performance Optimization Checklist\n\n| Optimization | Latency Impact | Implementation |\n|-------------|----------------|----------------|\n| Flash model | -60% vs v2, -85% vs v3 | Change `model_id` |\n| Streaming endpoint | -50% time-to-first-byte | Use `.stream()` instead of `.convert()` |\n| WebSocket streaming | Best for LLM integration | See Step 4 |\n| Smaller output format | -30% transfer time | `mp3_22050_32` vs `mp3_44100_128` |\n| Audio caching | -99% for repeated content | LRU cache with SHA-256 keys |\n| `style: 0` | -10-20% latency | Remove style exaggeration |\n| Concurrency queue | Maximize throughput | p-queue matching plan limit |\n\n## Error Handling\n\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| High TTFB | Wrong model | Switch to `eleven_flash_v2_5` |\n| Choppy streaming | Network buffering | Use `pcm_16000` for direct playback |\n| Cache miss storm | TTL expired for popular content | Use stale-while-revalidate pattern |\n| WebSocket drops | Network instability | Reconnect with buffered text |\n| Memory pressure | Audio cache too large | Set `maxSize` limit on LRU cache |\n\n## Resources\n\n- [ElevenLabs Streaming API](https:\u002F\u002Felevenlabs.io\u002Fdocs\u002Fapi-reference\u002Ftext-to-speech\u002Fstream)\n- [WebSocket API Reference](https:\u002F\u002Felevenlabs.io\u002Fdocs\u002Fapi-reference\u002Ftext-to-speech\u002Fv-1-text-to-speech-voice-id-stream-input)\n- [ElevenLabs Models](https:\u002F\u002Felevenlabs.io\u002Fdocs\u002Foverview\u002Fmodels)\n- [LRU Cache](https:\u002F\u002Fgithub.com\u002Fisaacs\u002Fnode-lru-cache)\n\n## Next Steps\n\nFor cost optimization, see `elevenlabs-cost-tuning`.\n\n",{"name":5,"tags":44,"author":49,"license":15,"version":50,"description":51,"allowed-tools":52,"compatible-with":53},[45,46,47,19,22,48],"saas","voice","ai","optimization","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Optimize ElevenLabs TTS latency with model selection, streaming, caching, and audio format tuning.\nUse when experiencing slow TTS responses, implementing real-time voice features,\nor optimizing audio generation throughput.\nTrigger: \"elevenlabs performance\", \"optimize elevenlabs\", \"elevenlabs latency\",\n\"elevenlabs slow\", \"fast TTS\", \"reduce elevenlabs latency\", \"TTS streaming\".\n","Read, Write, Edit","claude-code","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Felevenlabs-performance-tuning",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill elevenlabs-performance-tuning",{"tool":69,"command":70},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill elevenlabs-performance-tuning",{"tool":72,"command":73},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill elevenlabs-performance-tuning","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Felevenlabs-performance-tuning\u002FSKILL.md",true,[],[78,86,95,104,110,116],{"skillNo":79,"name":80,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[25,84,85],"model hierarchy","model hierarchy skill",{"skillNo":87,"name":88,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[92,93,94],"MCP","zoom","zoom mcp",{"skillNo":96,"name":97,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[101,102,103,93],"sdk","zoom apps sdk","apps",{"skillNo":105,"name":106,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[106],{"skillNo":111,"name":112,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[112],{"skillNo":117,"name":118,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[118]]