text-to-speech
Installation
SKILL.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.
Project defaults — load .env FIRST
Before any TTS call in this repo, load .env and use the project defaults defined there. Pull voice_id, model_id, and all voice_settings from environment variables — do not hardcode them, even in throwaway scripts.
| Env var | Maps to | Notes |
|---|---|---|
ELEVENLABS_API_KEY |
client auth | required |
ELEVENLABS_VOICE_ID |
voice_id |
project's chosen voice |
ELEVENLABS_MODEL_ID |
model_id |
project's chosen model |
ELEVENLABS_STABILITY / ELEVENLABS_SIMILARITY_BOOST / ELEVENLABS_STYLE / ELEVENLABS_USE_SPEAKER_BOOST |
voice_settings.* |
tone/timbre |
ELEVENLABS_SPEED / ELEVENLABS_SPEED_SHORTS |
voice_settings.speed |
use _SHORTS for vertical 1080×1920 / Shorts compositions, otherwise ELEVENLABS_SPEED |
Full snippets (Python / JS / cURL) and the speed-selection rule live in references/voice-settings.md. The Quick Start below shows hardcoded values for illustration only — every real call must read from env.