Communitygithub.com

TTS スクリプトジェネレーター

ドキュメントをインテリジェントに圧縮・書き換え、TTS読み上げ用のスクリプトを生成します。Claude AIによるコンテンツ分析、ターゲット時間への圧縮、口語スタイルへの変換、感情表現の追加、自動セグメント分割を行い、動画ナレーションに最適な出力を提供します。

TTS スクリプトジェネレーター とは?

このスキルは、長文ドキュメントをTTS(音声合成)読み上げに最適化されたスクリプトに変換する、高度なAIアシスタントです。Claude AIが文章の内容・構造を分析し、最適な動画時間(3〜8分)と挿絵スタイルを自動判断します。その後、文章を圧縮・口語化し、感情的な言葉や間を追加して自然な読み上げを実現します。さらに、10〜20秒単位で自動的にセグメント分割し、各セグメントにアニメーションスタイル(フェードイン、ライト、タイプライターなど)を割り当てます。出力はJSON形式で、TTSスクリプト(tts_script.json)と挿絵の説明(visual_config.json)の2ファイルを生成し、他のスキル(image-to-video、podcast-generator)と連携して動画制作やポッドキャスト生成を効率化します。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/huangserva/servasyy_skills/tts-script-generator

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

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

ドキュメント

TTS スクリプトジェネレーター は何をしますか?

ドキュメントをインテリジェントに圧縮・書き換え、TTS読み上げ用のスクリプトを生成します。

コア機能

  • 🤖 AI スマート分析: Claudeが記事内容を分析し、最適な動画時間と挿絵スタイルを判断します
  • ⏱️ スマート時間決定: 内容に基づいて適切な時間(3〜8分)を自動決定します
  • 🎨 スマートスタイル決定: テーマに応じて挿絵スタイル(ニューヨーカー/浮世絵/フラット/写実など)を自動選択します
  • 📉 スマート圧縮: 最適な時間にコンテンツを圧縮します(例: 19分→5分)
  • 💬 口語変換: 書き言葉→自然な話し言葉
  • 😊 感情最適化: 感情語を追加し、TTSをより生き生きとさせます
  • 🎯 自動セグメント分割: 内容に基づいて最適なセグメント数を自動判断します(各セグメント10〜20秒)
  • 📊 時間見積もり: 各セグメントの読み上げ時間を正確に計算します

動作原理

Claude対話内で実行:

  1. Claudeが元のドキュメントを読み込みます
  2. Claudeが内容を分析:
    • 記事のテーマと構造
    • コアポイントの数
    • コンテンツ密度
    • 最適な動画時間(3〜8分)を判断
    • 最も適した挿絵スタイルを判断(例: 歴史→浮世絵、テクノロジー→フラット、人文→ニューヨーカー)
  3. Claudeがスマートに書き換え:
    • コアポイントを抽出
    • 最適時間に圧縮
    • 口語表現に変換
    • 感情語と間(ポーズ)を追加
  4. Claudeが自動セグメント分割(各セグメントに1枚の挿絵を割り当て)
  5. 記事のテーマに基づいて最も適した挿絵スタイルを判断
  6. 各セグメントの挿絵説明を生成(判断されたスタイルを使用)
  7. 2つのファイルを出力:
    • tts_script.json(TTSテキストスクリプト + アニメーションマーク)
    • visual_config.json(挿絵説明、illustration-generatorスキルで使用)

tts_script.json 形式(アニメーションマーク付き):

[
  {
    "segment": 1,
    "text": "今日は唐の時代のリアルな生活について話そう。タイムスリップしたい?ちょっと待って!",
    "duration": 15,
    "animation_style": "fade_in",
    "emphasis": true
  },
  {
    "segment": 2,
    "text": "唐の時代にはトイレットペーパーがなかった。何を使っていたの?",
    "duration": 12,
    "animation_style": "none",
    "emphasis": false
  }
]

アニメーションマークルール(Claudeがスマート判定):

  • animation_style:
    • "fade_in" - タイトル、オープニング、強調したい箇所
    • "write" - コアポイント、重要な結論
    • "typewriter" - データ、事実の提示
    • "none" - 通常の内容(ASS字幕を使用)
  • emphasis: 強調セグメントかどうか(true/false)

判断原則:

  1. 第1セグメント(オープニング)→ fade_in
  2. コアポイント(各章の第1セグメント)→ write
  3. データ/事実 → typewriter
  4. その他の内容 → none(ASS字幕)
  5. 推奨: 24セグメント中、3〜5セグメントにアニメーションを使用

実行スクリプト

generate.py - TTSスクリプトを生成

python ~/.claude/skills/tts-script-generator/scripts/generate.py <markdownファイル>
  • Markdownファイルを読み込み
  • H2セクションを抽出
  • 口語に変換
  • 時間で分割
  • tts_script.jsonを出力

使用シーン

  1. 動画ナレーション: image-to-videoと連携(主な用途)
  2. ポッドキャスト生成: podcast-generatorと連携

出力説明

本スキルの出力:

  • ✅ tts_script.json - TTSテキストスクリプト
  • ✅ visual_config.json - 挿絵説明

含まれないもの:

  • ❌ TTS音声生成(image-to-videoスキルが担当)
  • ❌ 挿絵生成(illustration-generatorスキルを呼び出し)
  • ❌ 動画合成(image-to-videoスキルを呼び出し)

呼び出し方法

image-to-videoスキルから自動呼び出し:

image-to-videoが長文書を検出
  → tts-script-generatorを呼び出し
  → Claudeが対話内で書き換え
  → 圧縮されたTTSスクリプトを出力
  → image-to-videoが処理を続行

手動呼び出し(Claude対話内):

ユーザー: "この記事をtts-script-generatorで書き換えて"

Claude:
1. ドキュメントを読み込み(5947文字、19分)
2. 内容を分析:
   - テーマ:唐の生活科学(歴史人文系)
   - コアポイント:4つ(衛生、食事、統制、階級)
   - 最適時間を判断:5分(コンテンツ密度適度)
   - 挿絵スタイルを判断:浮世絵スタイル(歴史題材、東洋古典美学)
3. 1350文字に書き換え
4. 20セグメントに分割(各15秒)
5. 各セグメントに浮世絵スタイルの挿絵説明を生成
6. tts_script.json + visual_config.json を保存

出力形式

tts_script.json

[
  {
    "segment": 1,
    "text": "今日は唐の時代のリアルな生活について話そう。タイムスリップしたい?ちょっと待って!唐の時代にはトイレットペーパーがなかった……",
    "duration": 15
  }
]

visual_config.json

{
  "article_title": "唐の時代にタイムスリップする真実",
  "style": "ukiyo-e",
  "sections": [
    {
      "section": 1,
      "visual_description": "A person standing at a crossroads between modern city and ancient Tang Dynasty palace, looking confused, ukiyo-e style with traditional Japanese woodblock print aesthetics"
    }
  ]
}

挿絵スタイル判断ルール

Claudeは記事のテーマに基づいて最も適したスタイルを自動選択します:

  • 歴史/古典系 → ukiyo-e(浮世絵): 唐、宋、日本の歴史など
  • 人文/社会系 → new-yorker(ニューヨーカー): 社会観察、人物ストーリーなど
  • テクノロジー/ビジネス系 → flat(フラットスタイル): テクノロジー製品、ビジネス分析など
  • 自然/旅行系 → realistic(写実スタイル): 風景、動物、旅行など
  • アート/クリエイティブ系 → abstract(抽象スタイル): アートレビュー、クリエイティブ思考など

書き換え原則

  1. コアを保持: 最も重要なポイントとストーリーを残す
  2. 口語化:
    • "しかし" → "でもね"
    • "なぜなら…だから…" → "なぜかと言うと…だからなんだ"
    • 語気を追加: "ね"、"よ"、"さ"
  3. 感情語:
    • 強調: "本当に"、"とても"、"特に"
    • 驚き: "わあ"、"すごい"、"想像してみて"
  4. リズムコントロール:
    • 短い文を中心に
    • 適度な間(ポーズ)
    • 各セグメントに1つのコアポイント

呼び出し可能

  • image-to-videoスキル(主)
  • podcast-generatorスキル
  • その他TTSを必要とするスキル

Individual skills in this repo

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

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

関連スキル