| name | elevenlabs-hello-world |
| description | Generate your first ElevenLabs text-to-speech audio file.
Use when starting a new ElevenLabs integration, testing your setup,
or learning basic TTS API patterns.
Trigger: "elevenlabs hello world", "elevenlabs example",
"elevenlabs quick start", "first elevenlabs TTS", "text to speech demo".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(node:*) |
| version | 1.0.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","voice","ai","elevenlabs","tts","audio"] |
| compatible-with | claude-code |
ElevenLabs Hello World
Overview
Generate speech from text using the ElevenLabs TTS API. This skill covers the core POST /v1/text-to-speech/{voice_id} endpoint with real voice IDs, model selection, and audio output.
Prerequisites
- Completed
elevenlabs-install-auth setup
- Valid API key in
ELEVENLABS_API_KEY
Instructions
Step 1: Text-to-Speech with the SDK
TypeScript (recommended):
import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
import { createWriteStream } from "fs";
import { Readable } from "stream";
import { pipeline } from "stream/promises";
const client = new ElevenLabsClient();
async function generateSpeech() {
const audio = await client.textToSpeech.convert("21m00Tcm4TlvDq8ikWAM", {
text: "Hello! This is your first ElevenLabs text-to-speech generation.",
model_id: "eleven_multilingual_v2",
voice_settings: {
stability: 0.5,
: ,
: ,
: ,
},
});
(
.(audio ),
()
);
.();
}
().(.);