Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/elevenlabs-core-workflow-a

@0d57af8
Run it yourself

Implement ElevenLabs text-to-speech and voice cloning workflows. Use when building TTS features, cloning voices from audio samples, streaming speech to a chatbot, or implementing the primary ElevenLabs money-path: voice generation. Trigger with "elevenlabs TTS", "text to speech", "voice cloning elevenlabs", "clone a voice", "generate speech", "elevenlabs voice".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/elevenlabs-core-workflow-a

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesexamples.md

≈752 tokens on demand. Your agent reads this file only when SKILL.md points to it.

ElevenLabs Core Workflow A — Worked Examples

End-to-end scenarios that combine the steps from SKILL.md and implementation.md. Each example is a complete, copy-pasteable path from input to generated audio.

Example 1: Generate narration from a script

Batch a marketing script into a single MP3 using a premade voice and the narration-tuned settings (stability=0.5, similarity=0.75, style=0.0).

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: "Welcome to our platform. Let's get you set up in three quick steps.",
  model_id: "eleven_multilingual_v2",
  voice_settings: { stability: 0.5, similarity_boost: 0.75, style: 0.0 },
});

await pipeline(Readable.fromWeb(audio as any), createWriteStream("narration.mp3"));

Expected result: narration.mp3 written to disk; console prints Generated: narration.mp3.

Example 2: Clone a narrator voice and speak with it

Clone from two clean samples, then immediately synthesize with the returned voice_id using the cloned-voice settings (similarity_boost=0.85).

const { voiceId, audio } = await cloneVoice(
  "My Custom Voice",
  "Professional narrator voice",
  ["sample1.mp3", "sample2.mp3"]
);
// voiceId now usable in any textToSpeech.convert call

Expected result: console prints Cloned voice created: <voice_id>; the returned audio stream speaks "This is my cloned voice speaking!" in the cloned timbre. See implementation.md Step 2 for the full cloneVoice body and the Voice Cloning Requirements table (30s+ clean audio, 1-25 samples, paid plan).

Example 3: Stream an LLM response as speech in real time

Pipe chatbot output through the WebSocket endpoint with the low-latency eleven_flash_v2_5 model so audio starts before the full text is ready.

const chunks = ["Hello, ", "this is ", "streamed ", "speech!"];
const audio = await streamTTSWebSocket("21m00Tcm4TlvDq8ikWAM", chunks);

Expected result: a concatenated Buffer of base64-decoded audio chunks, assembled as they arrive. Full streamTTSWebSocket body (BOS/EOS framing, chunk_length_schedule, isFinal handling) is in implementation.md Step 3.

Example 4: Audit and prune your voice library

List every voice with its category, then delete a stale cloned voice.

await listVoices();               // prints name, voice_id, category per voice
await deleteVoice("<old_voice_id>");

Expected result: each voice printed as name (voice_id) — category (premade | cloned | generated); the target voice removed and Voice <voice_id> deleted. logged. See implementation.md Step 4 for listVoices, getVoiceSettings, updateVoiceSettings, and deleteVoice.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides standard workflows for ElevenLabs Text-to-Speech and voice cloning using official libraries and API endpoints. No malicious code was detected. A minor surface for indirect prompt injection is present as user-supplied text and file paths are processed without explicit sanitization.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 4 months ago
What it can do
Reads files Edits files Runs commands
version
1.6.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
[
  "saas",
  "voice",
  "ai",
  "elevenlabs",
  "tts",
  "voice-cloning"
]
All 4 allowed tools
ReadWriteBash(npm:*)Bash(curl:*)
Other metadata
compatibility
Designed for Claude Code

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/elevenlabs-core-workflow-a