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
Deep reference for the TTS & voice cloning workflows. SKILL.md carries the lean summary and the first Text-to-Speech example; this file holds the remaining steps (voice cloning, WebSocket streaming, voice management) and the tuning reference tables verbatim.
Clone a voice from audio samples using POST /v1/voices/add:
import { createReadStream } from "fs";
async function cloneVoice(
name: string,
description: string,
audioFiles: string[] // Paths to audio samples
) {
const voice = await client.voices.add({
name,
description,
files: audioFiles.map(f => createReadStream(f)),
// Optional: label the voice for organization
labels: JSON.stringify({ accent: "american", age: "young" }),
});
console.log(`Cloned voice created: ${voice.voice_id}`);
console.log(`Name: ${name}`);
// Use the cloned voice immediately
const audio = await client.textToSpeech.convert(voice.voice_id, {
text: "This is my cloned voice speaking!",
model_id: "eleven_multilingual_v2",
voice_settings: {
stability: 0.5,
similarity_boost: 0.85, // Higher for cloned voices to stay close to original
},
});
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.