Agent skill

Elevenlabs Tts

by benchflow-ai in benchflow-ai/skillsbench

ElevenLabs Text-to-Speech API for high-quality speech synthesis.

Apache-2.0Auto-check passedMedia & Creative

Install Elevenlabs Tts

skills CLI
$ npx skills add benchflow-ai/skillsbench --skill elevenlabs-tts -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install benchflow-ai/skillsbench elevenlabs-tts --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/benchflow-ai/skillsbench.git skills-src && mkdir -p .claude/skills && cp -r skills-src/tasks-extra/pg-essay-to-audiobook/environment/skills/elevenlabs-tts .claude/skills/elevenlabs-tts && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
elevenlabs-tts
GitHub stars
1.8k
Token cost
~590 tokens
SKILL.md length
117 words
Files
1
Skills in repo
189
Repo updated
First seen
Licence
Apache-2.0

At a glance

ElevenLabs Text-to-Speech API for high-quality speech synthesis.

  • Works in 3 steps: Split text into chunks at sentence… → Generate audio for each chunk → Concatenate using ffmpeg or pydub
  • Tasks that involve Text to speech and voice
  • SKILL.md covers Authentication, API Endpoints, Popular Voice IDs and Python Example, plus 2 more sections
  • Calls ffmpeg; reaches api.elevenlabs.io; needs ELEVENLABS_API_KEY

What it does

Elevenlabs Tts is an agent skill from benchflow-ai/skillsbench. ElevenLabs Text-to-Speech API for high-quality speech synthesis.

Its SKILL.md is about 590 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Media & Creative, covering Text to speech and voice. It works with ElevenLabs. The repository describes itself as: SkillsBench evaluates how well skills work and how effective agents are at using them. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Text to speech and voice

Example prompts

  • “Use the elevenlabs-tts skill to elevenlab Text-to-Speech API for high-quality speech synthesis”
  • “/elevenlabs-tts”

Requirements

  • Python 3
  • A credential in ELEVENLABS_API_KEY

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Split text into chunks at sentence boundaries
  2. Generate audio for each chunk
  3. Concatenate using ffmpeg or pydub

What it can do on your machine

Read from SKILL.md and the folder at commit 9a1f4dd. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • ffmpeg

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.elevenlabs.io

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • ELEVENLABS_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Elevenlabs Tts loads about 590 tokens when it runs. Until then it costs about 20 tokens; SKILL.md has 117 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~20
When it runs · the whole SKILL.md, loaded when a task matches
~590

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from benchflow-ai/skillsbench at commit 9a1f4dd, republished under its Apache-2.0 licence (© benchflow-ai). 117 words, ~590 tokens.

Download SKILL.mdSave it as .claude/skills/elevenlabs-tts/SKILL.md (or your agent's skills folder).
name
elevenlabs-tts
description
ElevenLabs Text-to-Speech API for high-quality speech synthesis.

ElevenLabs Text-to-Speech

Generate high-quality speech audio from text using the ElevenLabs API.

Authentication

The API key is available as environment variable:

bash
ELEVENLABS_API_KEY

Include in request header:

xi-api-key: $ELEVENLABS_API_KEY

API Endpoints

Text-to-Speech
POST https://api.elevenlabs.io/v1/text-to-speech/{voice_id}

Request Body:

json
{
  "text": "Your text here",
  "model_id": "eleven_turbo_v2_5",
  "voice_settings": {
    "stability": 0.5,
    "similarity_boost": 0.5
  }
}

Response: Audio bytes (mp3 format by default)

  • 21m00Tcm4TlvDq8ikWAM - Rachel (female, calm)
  • EXAVITQu4vr4xnSDxMaL - Bella (female, soft)
  • ErXwobaYiN019PkySvjV - Antoni (male, warm)
  • TxGEqnHWrfWFTfGW9XjX - Josh (male, deep)

Python Example

python
import os
import requests

ELEVENLABS_API_KEY = os.environ.get("ELEVENLABS_API_KEY")
VOICE_ID = "21m00Tcm4TlvDq8ikWAM"  # Rachel

def text_to_speech(text, output_path):
    url = f"https://api.elevenlabs.io/v1/text-to-speech/{VOICE_ID}"

    headers = {
        "xi-api-key": ELEVENLABS_API_KEY,
        "Content-Type": "application/json"
    }

    data = {
        "text": text,
        "model_id": "eleven_turbo_v2_5",
        "voice_settings": {
            "stability": 0.5,
            "similarity_boost": 0.75
        }
    }

    response = requests.post(url, json=data, headers=headers)

    if response.status_code == 200:
        with open(output_path, "wb") as f:
            f.write(response.content)
        return True
    else:
        print(f"Error: {response.status_code} - {response.text}")
        return False

Handling Long Text

ElevenLabs has a ~5000 character limit per request. For long documents:

  1. Split text into chunks at sentence boundaries
  2. Generate audio for each chunk
  3. Concatenate using ffmpeg or pydub:
bash
# Create file list
echo "file 'chunk1.mp3'" > files.txt
echo "file 'chunk2.mp3'" >> files.txt

# Concatenate
ffmpeg -f concat -safe 0 -i files.txt -c copy output.mp3

Best Practices

  • Split at sentence boundaries to avoid cutting words
  • Check rate limits (varies by subscription tier)
  • Cache generated audio to avoid redundant API calls

© benchflow-ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in tasks-extra/pg-essay-to-audiobook/environment/skills/elevenlabs-tts of benchflow-ai/skillsbench.

Open the folder on GitHubat commit 9a1f4dd

Compare with similar skills

Elevenlabs Tts next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Elevenlabs Tts compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Elevenlabs Tts this skillbenchflow-ai/skillsbench1.8k—~590Automated safety check: PassApache-2.0
Musictadaspetra/loop2962 repos~827Automated safety check: PassMIT
Sound Effectstadaspetra/loop2962 repos~1.1kAutomated safety check: PassMIT
Elevenlabs Transcribeqdhenry/Claude-Command-Suite1.3k—~1.5kAutomated safety check: NotesNone
Dubbingelevenlabs/skills482—~3.3kAutomated safety check: PassMIT
Sagtrpc-group/trpc-agent-go1.9k15 repos~574Automated safety check: PassApache-2.0

Similar skills

  • Music

    tadaspetra/loop

    Generate music using ElevenLabs Music API. An agent skill from tadaspetra/loop.

    296 GitHub starsUsed in 2 repos~827 tokens
    Media & CreativeAuto-check passed
  • Sound Effects

    tadaspetra/loop

    Generate sound effects from text descriptions using ElevenLabs.

    296 GitHub starsUsed in 2 repos~1.1k tokens
    Media & CreativeAuto-check passed
  • Elevenlabs Transcribe

    qdhenry/Claude-Command-Suite

    Transcribes audio/video files using ElevenLabs Scribe v2 API.

    1.3k GitHub stars~1.5k tokensUpdated 7 mo ago
    Media & CreativeAuto-check: notes
  • Dubbing

    elevenlabs/skills

    Dub audio and video into other languages using the ElevenLabs Dubbing API (dubbingv2), preserving the original speakers' voices.

    482 GitHub stars~3.3k tokensUpdated yesterday
    Media & CreativeAuto-check passed
  • Sag

    trpc-group/trpc-agent-go

    ElevenLabs text-to-speech with mac-style say UX. An agent skill from trpc-group/trpc-agent-go.

    1.9k GitHub starsUsed in 15 repos~574 tokens
    Media & CreativeAuto-check passed
  • Music

    bozhouDev/video-skills-toolkit

    Generate music using ElevenLabs Music API. An agent skill from bozhouDev/video-skills-toolkit.

    150 GitHub stars~3.6k tokensUpdated 2 mo ago
    Media & CreativeAuto-check passed

More from benchflow-ai/skillsbench

All 189 skills in this repo
  • Lean4 Memories

    benchflow-ai/skillsbench

    This skill should be used when working on Lean 4 formalization projects to maintain persistent memory of successful proof patterns, failed approaches, project conventions, and user preferences…

    1.8k GitHub stars~3.2k tokensUpdated 2 mo ago
    Auto-check passed
  • Senior Data Engineer

    benchflow-ai/skillsbench

    World-class data engineering skill for building scalable data pipelines, ETL/ELT systems, real-time streaming, and data infrastructure.

    1.8k GitHub stars~5.9k tokensUpdated 2 mo ago
    Auto-check passed
  • Ac Branch Pi Model

    benchflow-ai/skillsbench

    AC branch pi-model power flow equations (P/Q and |S|) with transformer tap ratio and phase shift, matching acopf-math-model.md and MATPOWER branch fields.

    1.8k GitHub stars~1.1k tokensUpdated 2 mo ago
    Auto-check passed
  • Civ6lib

    benchflow-ai/skillsbench

    Civilization 6 district mechanics library. An agent skill from benchflow-ai/skillsbench.

    1.8k GitHub stars~1.7k tokensUpdated 2 mo ago
    Auto-check passed
  • D3 Visualization

    benchflow-ai/skillsbench

    Build deterministic, verifiable data visualizations with D3.js (v6).

    1.8k GitHub stars~1.5k tokensUpdated 2 mo ago
    Auto-check passed
  • Dc Power Flow

    benchflow-ai/skillsbench

    DC power flow analysis for power systems. An agent skill from benchflow-ai/skillsbench.

    1.8k GitHub stars~717 tokensUpdated 2 mo ago
    Auto-check passed

Works with

Questions about Elevenlabs Tts

What does Elevenlabs Tts do?

ElevenLabs Text-to-Speech API for high-quality speech synthesis. Elevenlabs Tts is an agent skill from benchflow-ai/skillsbench. ElevenLabs Text-to-Speech API for high-quality speech synthesis.

When should I use Elevenlabs Tts?

Elevenlabs Tts fits situations like: tasks that involve Text to speech and voice.

How do I install Elevenlabs Tts in Claude Code?

Run `npx skills add benchflow-ai/skillsbench --skill elevenlabs-tts -a claude-code`. Or copy the skill folder (tasks-extra/pg-essay-to-audiobook/environment/skills/elevenlabs-tts in benchflow-ai/skillsbench) into .claude/skills/elevenlabs-tts in your project. Claude Code loads it when a task matches its description.

How do I install Elevenlabs Tts in Codex?

Run `npx skills add benchflow-ai/skillsbench --skill elevenlabs-tts -a codex`. Or copy the skill folder (tasks-extra/pg-essay-to-audiobook/environment/skills/elevenlabs-tts in benchflow-ai/skillsbench) into .agents/skills/elevenlabs-tts in your project. Codex loads it when a task matches its description.

Can I use Elevenlabs Tts in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add benchflow-ai/skillsbench --skill elevenlabs-tts -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/elevenlabs-tts, .gemini/skills/elevenlabs-tts, .github/skills/elevenlabs-tts and .opencode/skills/elevenlabs-tts in your project.

What does Elevenlabs Tts need to run?

Going by SKILL.md and its folder, Elevenlabs Tts needs the command-line tools its instructions call (ffmpeg) and credentials named ELEVENLABS_API_KEY. Our summary lists: Python 3; A credential in ELEVENLABS_API_KEY.

Does Elevenlabs Tts access the network?

SKILL.md names 1 domain. In commands or code: api.elevenlabs.io; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Elevenlabs Tts safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Elevenlabs Tts use?

Elevenlabs Tts is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Elevenlabs Tts use?

About 590 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Elevenlabs Tts?

Skills that share tags, products or a category with Elevenlabs Tts: Music (tadaspetra/loop, 296 stars), Sound Effects (tadaspetra/loop, 296 stars), Elevenlabs Transcribe (qdhenry/Claude-Command-Suite, 1.3k stars) and Dubbing (elevenlabs/skills, 482 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Elevenlabs Tts?

benchflow-ai (a GitHub organization) maintains it in benchflow-ai/skillsbench, which has 1,835 GitHub stars. The repository holds 189 skills in this directory. The repository was last updated on July 23, 2026.

Source: benchflow-ai/skillsbench on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.