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
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. Start from the minimal SDK call below, then drill
into the full implementation for the cURL,
streaming, and multi-language paths.
elevenlabs-install-auth setup skill so the SDK is installed.ELEVENLABS_API_KEY in your shell environment.The whole workflow is one API call: pick a voice ID, pick a model, send text, write the returned audio stream to a file. The minimal TypeScript path:
import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
import { createWriteStream } from "fs";
import { Readable } from "stream";
import { pipeline } from "stream/promises";
const client = new ElevenLabsClient();
const audio = await client.textToSpeech.convert("21m00Tcm4TlvDq8ikWAM", {
text: "Hello! This is your first ElevenLabs text-to-speech generation.",
model_id: "eleven_multilingual_v2",
});
await pipeline(Readable.fromWeb(audio as any), createWriteStream("output.mp3"));
The four generation paths, with full copy-paste code and inline commentary on
every voice_settings field, live in
references/implementation.md:
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.