Communitygithub.com

ElevenLabs TTS

スクリプトやインラインテキストから、ローカルの音声プロファイルを使用してElevenLabsのテキスト読み上げ音声を生成します。

ElevenLabs TTS とは?

このスキルは、ElevenLabsのテキスト読み上げ(TTS)APIを活用して、人間のようなナレーション音声を生成するためのものです。主にClaude CodeなどのAIエージェント環境で使用され、開発者はスクリプトファイルやインラインテキストを元に、簡単に高品質な音声ファイルを作成できます。スキルは再利用性を重視して設計されており、APIキーや音声プロファイルなどの個人情報はスキル内部に保存せず、環境変数やローカルJSON設定ファイルから読み込みます。複数の音声プロファイルを管理でき、プロファイルごとに音声名、モデルID、出力形式、音声設定を定義可能です。音声生成時にはコマンドライン引数で動的に設定を上書きすることもでき、ドライラン機能でリクエスト内容を確認してから実行できます。出力形式はmp3で、品質や安定性などのパラメータも細かく調整可能です。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/MengTo/Skills/tree/HEAD/agent-skills/codex/elevenlabs-tts

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

ElevenLabs TTS は何をしますか?

このスキルはElevenLabsのテキスト読み上げ生成に使用します。スキルは再利用可能で個人情報を含まないように保ってください:

  • APIキー、音声名、音声ID、メールアドレス、アカウント名、顧客名、個人のデフォルト設定をスキル内に保存しないでください。
  • ELEVENLABS_API_KEYはプロセス環境または最も近い .env ファイルから読み取ってください。
  • アカウント固有の音声プロファイルは、このスキルの外部にあるローカルJSON設定から読み取ってください。
  • リクエストレベルの設定で音声を生成してください。ユーザーが明示的に要求しない限り、保存されたElevenLabsアカウントや音声設定を変更しないでください。

ローカルプロファイル

以下の設定ソースを優先的に使用し、順序に従ってください:

  1. --config /path/to/profiles.json
  2. ELEVENLABS_TTS_CONFIG=/path/to/profiles.json
  3. local/elevenlabs/profiles.json

プロジェクトローカルのプロファイルファイルも、gitignoreされている場合は問題ありません。例:config/local/elevenlabs-tts.json

ヘルパースクリプトは以下の形状を想定しています:

{
  "default_profile": "default",
  "profiles": {
    "default": {
      "voice_name": "Voice name from the local account",
      "voice_id": "optional-direct-voice-id",
      "voice_id_env": "OPTIONAL_ENV_VAR_WITH_VOICE_ID",
      "model_id": "eleven_multilingual_v2",
      "output_format": "mp3_44100_128",
      "voice_settings": {
        "stability": 0.5,
        "similarity_boost": 1.0,
        "style": 0.0,
        "speed": 1.0,
        "use_speaker_boost": true
      },
      "output_dir": "outputs/voiceovers",
      "emails": []
    }
  }
}

emails、所有者、エイリアス、メモなどのフィールドは、ローカルのルーティングやコンテキストのみに使用されます。スクリプトは未知のメタデータフィールドを無視します。

ワークフロー

  1. --profile、ELEVENLABS_TTS_PROFILE、または default_profile からプロファイルを選択します。
  2. ヘルパースクリプトを優先的に使用します: python3 <skill-root>/scripts/generate_voice.py --text-file script.txt --profile default --output output.mp3
  3. プロファイルに voice_id があればそれを使用します。voice_id_env があれば、その環境変数を読み取ります。それ以外の場合は、voice_name でElevenLabsを検索します。
  4. ユーザーが今回の生成で上書きしない限り、プロファイルの model_id、output_format、および voice_settings を使用します。
  5. 生成された音声を要求された保存先に配置します。保存先が指定されていない場合は、プロファイルの output_dir、次に outputs/voiceovers/ を使用します。
  6. 出力パスと重要な警告を報告します。シークレットは出力しないでください。

ヘルパースクリプト

バンドルされているスクリプトは以下をサポートしています:

  • --text "...":インラインテキスト用
  • --text-file path.txt:スクリプトファイル用
  • --text も --text-file も指定されていない場合は標準入力
  • --profile name:ローカルプロファイルを選択
  • --config path.json:ローカルプロファイルファイルを選択
  • --voice-id、--voice-name、--model-id、--output-format、--settings-json:一回限りの上書き用
  • --output path.mp3:出力ファイルを選択
  • --dry-run:TTSエンドポイントを呼び出さずに、解決されたリクエストペイロードを表示
  • --list-voices:音声を生成せずに、一致するElevenLabs音声を一覧表示

APIメモ

現在のElevenLabsエンドポイントを使用します:

  • 音声検索:GET https://api.elevenlabs.io/v2/voices
  • 音声生成:POST https://api.elevenlabs.io/v1/text-to-speech/:voice_id?output_format=...

APIキーは xi-api-key として送信します。

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

MengTo/Skills

Create polished 60 fps 4:3 4K browser screen-recording style videos from Codex in-app browser captures, with browser-only crop, natural macOS cursor styling, deliberate click choreography, zoom-follow framing, ffprobe/thumbnail verification, and optional native recording compatibility checks. Use when the user asks to record or re-record browser actions, show cursor clicks and zooms, make Dribbble/UI inspiration or product demo recordings, or asks whether Codex, Playwright, or an MCP can produce a natural browser demo video.

MengTo/Skills

Profile, audit, and optimize frontend page performance with emphasis on animation work, memory-leak risks, long-session slowdowns, CSS animations, canvas/WebGL requestAnimationFrame loops, marquees, skeletons, GSAP/Three/Matter effects, timers, listeners, and observers. Use when the user asks to make animations performant, pause offscreen animations, look for memory leaks, profile pages that slow the computer over time, fix janky scrolling, reduce CPU/GPU use, or repeat the "only play in view" optimization on React/Vite/Next/frontend pages using Codex Browser.

MengTo/Skills

Turn a reference video into a super detailed recreation or inspiration prompt. Use when the user provides, mentions, uploads, links, or points to a video and asks to analyze the design, UI, animations, transitions, scroll interactions, typography, colors, assets, WebGL/Three.js, storytelling, section-by-section behavior, or to create a prompt/article that recreates the page, app, interaction, or motion system.

MengTo/Skills

Create an on-scroll animation trigger using IntersectionObserver with Tailwind-friendly animation classes and keyframes. Use when asked for scroll-reveal, animate-on-scroll, or sequencing element animations when they enter the viewport.

MengTo/Skills

Use when designing or implementing product-grade web motion like Stripe, Linear, Apple, and Vercel. Covers motion principles, easing/duration defaults, choreography patterns, scroll/hover interactions, performance, accessibility (reduced motion), and implementation guidance.

MengTo/Skills

Create premium cinematic web motion systems with GSAP, ScrollTrigger, and Lenis. Use for luxury editorial websites, creative studio portfolios, Awwwards-style interactions, smooth scroll reveals, staggered text, parallax, pinned sections, magnetic hover states, custom cursors, and mouse-reactive layered movement.

MengTo/Skills

Create cinematic scroll-driven landing pages with Lenis smooth scrolling, GSAP ScrollTrigger, scroll-linked progression, staggered text reveals, sticky card stacks, parallax backgrounds, scroll-scrubbed transitions, footer reveals, and immersive preloaders. Use when analyzing or building premium editorial scroll experiences, sticky project stacks, kinetic typography, or section-by-section storytelling.

MengTo/Skills

Use when designing or rewriting a high-converting SaaS pricing page (structure, plan design, copywriting, SEO/AEO, FAQs, layout patterns, experiments). Includes checklists, templates, and common pitfalls.

MengTo/Skills

Use when creating or refining WebGL-heavy landing pages and you need to steer toward a specific visual outcome (premium, technical, playful, cinematic) while balancing conversion clarity, performance, and implementation complexity.

関連スキル