Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generates first ElevenLabs text-to-speech audio file via the TTS API using TypeScript or Python SDKs.
55% 86%+32 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 12 of 22 without it.
When setting up environment requirements for ElevenLabs SDK integrations, what are the minimum required major versions for Node.js and Python environments?
Requires Node.js version 20 or higher.
3 of 3 safety checks passed
Deep walkthrough for every generation path: the SDK (TypeScript and Python), the raw REST API via cURL, and low-latency streaming. Each block is standalone — copy the one that matches your stack.
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() {
// Use a pre-made voice — "Rachel" is a default voice available on all accounts
// Find voice IDs via: GET /v1/voices
const audio = await client.textToSpeech.convert("21m00Tcm4TlvDq8ikWAM", {
text: "Hello! This is your first ElevenLabs text-to-speech generation.",
model_id: "eleven_multilingual_v2", // Best quality, 29 languages
voice_settings: {
stability: 0.5, // 0-1: lower = more expressive
similarity_boost: 0.75, // 0-1: higher = closer to original voice
style: 0.0, // 0-1: higher = more dramatic (costs more latency)
speed: 1.0, // 0.7-1.2: speech speed multiplier
},
});
// audio is a ReadableStream — pipe to file
await pipeline(
Readable.fromWeb(audio as any),
createWriteStream("output.mp3")
);
console.log("Audio saved to output.mp3");
}
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.