elevenlabs-tts

elevenlabs-tts is a skill for Claude Code, Codex from xuansenpa1/skillrevise. It costs 20 tokens per session (685 once invoked), scanned A, a copy of elevenlabs-tts, MIT.

A text-to-speech integration that converts written text into MP3 audio through the ElevenLabs API. It uses a selected voice and supports voice settings such as stability and similarity.

In plain words
What is it for?
It helps create narration, spoken content, voice interfaces, and other applications that need generated speech.
Why use it?
It avoids manual recording and the work of connecting an application to a speech service. Text can be turned into audio through a simple API request.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps create narration, spoken content, voice interfaces, and other applications that need generated speech.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xuansenpa1/skillrevise/elevenlabs-tts
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add xuansenpa1/skillrevise --skill elevenlabs-tts
Clone the repo
git clone --depth 1 https://github.com/xuansenpa1/skillrevise

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for elevenlabs-tts

README.md
[![agentmods](https://agentmods.dev/badge/skills/xuansenpa1/skillrevise/elevenlabs-tts/github.svg)](https://agentmods.dev/skills/xuansenpa1/skillrevise/elevenlabs-tts)
Your own site
<a href="https://agentmods.dev/skills/xuansenpa1/skillrevise/elevenlabs-tts"><img src="https://agentmods.dev/badge/skills/xuansenpa1/skillrevise/elevenlabs-tts/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for elevenlabs-tts

Your own site · 80×15
<a href="https://agentmods.dev/skills/xuansenpa1/skillrevise/elevenlabs-tts"><img src="https://agentmods.dev/badge/skills/xuansenpa1/skillrevise/elevenlabs-tts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 685 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.00685
Opus 5.5 $0.00008 $0.00274
Sonnet 5.5 $0.00004 $0.00137
Haiku 4.5 $0.00002 $0.00068

Measured 2mo ago against content hash b06eb58aeaf4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

elevenlabs-tts scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

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

This is a copy

100% identical to elevenlabs-tts — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

data/skillsbench/tasks/pg-essay-to-audiobook/environment/skills/elevenlabs-tts/SKILL.md · 109 lines

How it starts

The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ElevenLabs Text-to-Speech

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

Authentication

The API key is available as environment variable:

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:

{
  "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

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:
# 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

Read the full file on GitHub · 109 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 109 lines · 20 tokens per session scan A b06eb58aeaf4

Subscribe to this mod's changes

elevenlabs-tts is a skill published in the GitHub repository xuansenpa1/skillrevise (58 stars, last pushed 2mo ago), licensed MIT. It adds 20 tokens to every session and 685 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to elevenlabs-tts, differing in 0 lines, and is treated as a copy.

Related

elevenlabs-tts compared with skills from other repositories

elevenlabs-tts next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
elevenlabs-ttsxuansenpa1/skillreviseSkill582mo agoMITA20Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code