← ClaudeAtlas

elevenlabs-text-to-speechlisted

Convert text to speech using ElevenLabs voice AI. Use when generating audio from text, creating voiceovers, building voice apps, or synthesizing speech in 90+ languages.
trku052-png/social-media-youtube-skills · ★ 1 · AI & Automation · score 68
Install: claude install-skill trku052-png/social-media-youtube-skills
# ElevenLabs Text-to-Speech Generate natural speech from text - supports 90+ languages, multiple models for quality vs latency tradeoffs. Examples default to `eleven_v4`, the latest and highest-quality model. > **Setup, before writing any code:** if `ELEVENLABS_API_KEY` isn't set for this project, run `npx -y @elevenlabs/cli@latest onboard init` from the app's folder first and follow what it prints: it signs the user in and stores a key for the project, so nobody copies one by hand. Otherwise see the [Installation Guide](references/installation.md). For JavaScript, use `@elevenlabs/*` packages only. ## Quick Start ### Python ```python from elevenlabs import ElevenLabs client = ElevenLabs() audio = client.text_to_speech.convert( text="Hello, welcome to ElevenLabs!", voice_id="JBFqnCBsd6RMkjVDRZzb", # George model_id="eleven_v4" ) with open("output.mp3", "wb") as f: for chunk in audio: f.write(chunk) ``` ### JavaScript ```javascript import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js"; import { createWriteStream } from "fs"; import { Readable } from "stream"; const client = new ElevenLabsClient(); const audio = await client.textToSpeech.convert("JBFqnCBsd6RMkjVDRZzb", { text: "Hello, welcome to ElevenLabs!", modelId: "eleven_v4", }); // convert() returns a web ReadableStream — bridge it to a Node stream to write to disk Readable.fromWeb(audio).pipe(createWriteStream("output.mp3")); ``` ### CLI Use `say` to play text immediately