Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Implements ElevenLabs text-to-speech, voice cloning from audio samples, and streaming speech generation workflows.
55% 77%+23 ptsof test cases passed
Passed 17 of 22 test cases with the skill, and 12 of 22 without it.
Write a short TypeScript code snippet showing how to instantiate the ElevenLabs API client using environment variables for authentication.
Instantiates ElevenLabsClient imported from @elevenlabs/elevenlabs-js
3 of 3 safety checks passed
The primary ElevenLabs workflows: (1) Text-to-Speech with voice settings, (2) Instant Voice Cloning from audio samples, (3) streaming TTS via WebSocket for real-time applications, and (4) voice-library management. This SKILL.md walks the full flow at a high level and carries the first TTS example inline; the deep code for cloning, streaming, and management lives in the full implementation walkthrough.
elevenlabs-install-auth setupInstantiate the client, call textToSpeech.convert(voiceId, opts), and pipe the returned stream to a file. The voice_settings block is where you tune delivery:
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(
text: string,
voiceId: string,
outputPath: string
) {
const audio = await client.textToSpeech.convert(voiceId, {
text,
model_id: "eleven_multilingual_v2",
voice_settings: {
stability: 0.5, // Lower = more expressive, higher = more consistent
similarity_boost: 0.75, // How closely to match the original voice
style: 0.3, // Amplify the speaker's style (adds latency if > 0)
speed: 1.0, // 0.7 to 1.2 range
},
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.