SkillsGrove
SkillsGrove/Production vidéo/krishagel/geoffrey/elevenlabs-tts

elevenlabs-tts

Installation

$npx skills add https://github.com/krishagel/geoffrey --skill elevenlabs-tts
$git clone --depth 1 https://github.com/krishagel/geoffrey.git /tmp/geoffrey && mkdir -p ~/.claude/skills && cp -r /tmp/geoffrey/skills/elevenlabs-tts ~/.claude/skills/elevenlabs-tts
Installe pour moi cette Agent Skill : https://github.com/krishagel/geoffrey/tree/b7e2fc8015088a3ac2e819ae8d3bd57c63c8184f/skills/elevenlabs-tts — lis d’abord son SKILL.md et ses scripts, et ne l’installe dans mon dossier de compétences qu’après avoir vérifié qu’elle est sûre.

Résumé

Description d’origine · MITGenerate high-quality audio from text using Eleven Labs API. Use for podcasts, narration, voice-overs, and audio summaries.
Le SKILL.md ci-dessous est reproduit depuis krishagel/geoffrey (commit b7e2fc8) sous licence MIT. Le texte est inchangé ; seules les métadonnées d’en-tête du fichier sont omises, les images sont affichées sous forme de liens et les fichiers très longs sont tronqués. Copyright 2024-2026 Kris Hagel. Licence : LICENSE. Seul le fichier d’instructions est affiché ; consultez le dépôt d’origine pour les éventuels scripts.

Eleven Labs Text-to-Speech

Generate high-quality audio from text using the Eleven Labs API. Ideal for podcast-style summaries, narration, and voice-overs.

Quick Start

# Generate audio with default voice (Rachel)
uv run scripts/generate_audio.py --text "Hello, this is a test."

# Generate from a text file
uv run scripts/generate_audio.py --file report.txt --output ~/Desktop/report.mp3

# Use a specific voice
uv run scripts/generate_audio.py --text "Breaking news..." --voice Josh

# List available voices
uv run scripts/list_voices.py

Scripts

generate_audio.py

Main script for TTS generation.

Arguments:

Argument Description Default
--text Text content to convert -
--file Path to text file -
--voice Voice name or ID Rachel
--model Model ID eleven_multilingual_v2
--output Output file path ~/Desktop/audio_TIMESTAMP.mp3

Features:

  • Auto-chunks text >10k characters at sentence boundaries
  • Concatenates chunks into single MP3
  • Returns JSON with metadata (file path, voice, model, char count, chunks)

list_voices.py

Fetch and display available voices.

Arguments:

Argument Description Default
--all Show all voices (not just premade) false
--json Output as JSON false

Curated Voices

Six voices selected for variety (see references/voices.md for details):

Voice Style Best For
Rachel Calm, clear Narration, podcasts (default)
Bella Soft, gentle Storytelling, meditation
Elli Young, expressive Casual content, tutorials
Josh Deep, authoritative News, professional content
Adam Middle-aged, clear Business, documentaries
Antoni Warm, versatile General purpose

Use list_voices.py to discover additional voices.

Models

Model ID Best For Char Limit
Multilingual v2 eleven_multilingual_v2 Long-form (default) 10,000
Flash v2.5 eleven_flash_v2_5 Quick, real-time 40,000
Turbo v2.5 eleven_turbo_v2_5 Balanced 40,000
Eleven v3 eleven_v3 Maximum expression 3,000

Environment Setup

Requires ELEVENLABS_API_KEY in:

~/Library/Mobile Documents/com~apple~CloudDocs/Geoffrey/secrets/.env

Examples

Daily Summary Podcast

# Generate individual segments
uv run scripts/generate_audio.py --file weather.txt --voice Rachel --output ~/Desktop/weather.mp3
uv run scripts/generate_audio.py --file news.txt --voice Josh --output ~/Desktop/news.mp3
uv run scripts/generate_audio.py --file calendar.txt --voice Bella --output ~/Desktop/calendar.mp3

Long Report

# Auto-chunks long text, concatenates into single file
uv run scripts/generate_audio.py --file quarterly_report.txt --model eleven_turbo_v2_5 --output report.mp3

Quick Test

uv run scripts/generate_audio.py --text "Testing one two three" --voice Adam

Output

Default: ~/Desktop/audio_YYYY-MM-DD_HHMMSS.mp3

Script returns JSON:

{
  "success": true,
  "file": "/Users/user/Desktop/audio_2026-01-23_143022.mp3",
  "voice": "Rachel",
  "model": "eleven_multilingual_v2",
  "characters": 1234,
  "chunks": 1
}

Limitations

  • Character limits vary by model (see table above)
  • One voice per generation (multi-voice requires separate files)
  • Output format: MP3 only
Voir le texte intégral de la licence (MIT)
MIT License

Copyright (c) 2024-2026 Kris Hagel

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.