Communitygithub.com

ComeOnOliver/skillshub

口述動画の文字起こしと滑舌ミスの特定。レビュー稿の生成と削除タスクリストの作成。トリガーワード:「剪口播」「処理视频」「识别口误」

skillshub とは?

このスキルは、口述動画(口播视频)の文字起こし(音声→テキスト変換)と、その中に含まれる滑舌ミス(口误)の自動検出を目的としています。火山引擎の音声認識APIとAI解析を組み合わせ、動画から抽出した音声を高精度で文字起こしした後、口ごもり、言い間違い、話の重複、不要な沈黙などを特定します。解析結果は、自動選択された削除対象リスト(auto_selected.json)と、人間が確認しやすいレビュー用Webページ(review.html)として出力されます。ユーザーはこのWebページ上で自動提案を確認し、クリック一つで実際の編集処理(該当部分の削除)を実行できます。主にClaude Codeや同等のAIターミナルエージェント上で動作し、ffmpeg、uguu.se、VolcEngine API、Node.jsスクリプトを連携させて処理を実行します。これにより、撮影済み口述動画の編集時間を大幅に短縮できる強力なツールです。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/Ceeon/videocut-skills/%E5%89%AA%E5%8F%A3%E6%92%AD

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

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

ドキュメント

剪口播 v2(口述動画編集 v2)

火山引擎 文字起こし + AI 滑舌ミス検出 + Web レビュー

クイック使い方

ユーザー: この口述動画を編集して
ユーザー: この動画を処理して

出力ディレクトリ構造

output/
└── YYYY-MM-DD_動画名/
    ├── 剪口播/
    │   ├── 1_转写/
    │   │   ├── audio.mp3
    │   │   ├── volcengine_result.json
    │   │   └── subtitles_words.json
    │   ├── 2_分析/
    │   │   ├── readable.txt
    │   │   ├── auto_selected.json
    │   │   └── 口误分析.md
    │   └── 3_レビュー/
    │       └── review.html
    └── 字幕/
        └── ...

ルール:既存のディレクトリは再利用、なければ新規作成。

フロー

0. 出力ディレクトリを作成
    ↓
1. 音声を抽出 (ffmpeg)
    ↓
2. アップロードして公開URLを取得 (uguu.se)
    ↓
3. 火山引擎 API で文字起こし
    ↓
4. 単語レベルの字幕を生成 (subtitles_words.json)
    ↓
5. AI が滑りや無音を分析し、事前選択リストを生成 (auto_selected.json)
    ↓
6. レビュー用Webページを生成 (review.html)
    ↓
7. レビューサーバーを起動し、ユーザーがWebページで確認
    ↓
【ユーザー確認待ち】→ Webページで「編集を実行」をクリック または 手動で /クリップ

実行手順

手順 0: 出力ディレクトリを作成

# 変数設定(実際の動画に合わせて調整)
VIDEO_PATH="/path/to/動画.mp4"
VIDEO_NAME=$(basename "$VIDEO_PATH" .mp4)
DATE=$(date +%Y-%m-%d)
BASE_DIR="output/${DATE}_${VIDEO_NAME}/剪口播"

# サブディレクトリを作成
mkdir -p "$BASE_DIR/1_转写" "$BASE_DIR/2_分析" "$BASE_DIR/3_レビュー"
cd "$BASE_DIR"

手順 1-3: 文字起こし

cd 1_转写

# 1. 音声を抽出(ファイル名にコロンがある場合は file: プレフィックスを付ける)
ffmpeg -i "file:$VIDEO_PATH" -vn -acodec libmp3lame -y audio.mp3

# 2. アップロードして公開URLを取得
curl -s -F "files[][email protected]" https://uguu.se/upload
# 返却: {"success":true,"files":[{"url":"https://h.uguu.se/xxx.mp3"}]}

# 3. 火山引擎 API を呼び出す
SKILL_DIR="/Users/chengfeng/Desktop/AIos/剪辑Agent/.claude/skills/剪口播"
"$SKILL_DIR/scripts/volcengine_transcribe.sh" "https://h.uguu.se/xxx.mp3"
# 出力: volcengine_result.json

手順 4: 字幕を生成

node "$SKILL_DIR/scripts/generate_subtitles.js" volcengine_result.json
# 出力: subtitles_words.json

cd ..

手順 5: 滑舌ミスを分析(スクリプト+AI)

5.1 読みやすい形式を生成

cd 2_分析

node -e "
const data = require('../1_转写/subtitles_words.json');
let output = [];
data.forEach((w, i) => {
  if (w.isGap) {
    const dur = (w.end - w.start).toFixed(2);
    if (dur >= 0.5) output.push(i + '|[无声' + dur + 's]|' + w.start.toFixed(2) + '-' + w.end.toFixed(2));
  } else {
    output.push(i + '|' + w.text + '|' + w.start.toFixed(2) + '-' + w.end.toFixed(2));
  }
});
require('fs').writeFileSync('readable.txt', output.join('\\n'));
"

5.2 ユーザー習慣を読み込む

まず ユーザー習慣/ ディレクトリ内のすべてのルールファイルを読み込みます。

5.3 文のリストを生成(重要)

最初に文に分割してから分析する。無音を基準に文のリストに分割:

node -e "
const data = require('../1_转写/subtitles_words.json');
let sentences = [];
let curr = { text: '', startIdx: -1, endIdx: -1 };

data.forEach((w, i) => {
  const isLongGap = w.isGap && (w.end - w.start) >= 0.5;
  if (isLongGap) {
    if (curr.text.length > 0) sentences.push({...curr});
    curr = { text: '', startIdx: -1, endIdx: -1 };
  } else if (!w.isGap) {
    if (curr.startIdx === -1) curr.startIdx = i;
    curr.text += w.text;
    curr.endIdx = i;
  }
});
if (curr.text.length > 0) sentences.push(curr);

sentences.forEach((s, i) => {
  console.log(i + '|' + s.startIdx + '-' + s.endIdx + '|' + s.text);
});
" > sentences.txt

5.4 スクリプトで自動的に無音をマーク(必ず先に実行)

node -e "
const words = require('../1_转写/subtitles_words.json');
const selected = [];
words.forEach((w, i) => {
  if (w.isGap && (w.end - w.start) >= 0.5) selected.push(i);
});
require('fs').writeFileSync('auto_selected.json', JSON.stringify(selected, null, 2));
console.log('≥0.5s 無音の数:', selected.length);
"

→ auto_selected.json を出力(無音のインデックスのみ)

5.5 AI が滑舌ミスを分析(auto_selected.json に追加)

検出ルール(優先順位順):

#タイプ判定方法削除範囲
1重複文隣接する文の先頭5文字以上が同一短い方の全文
21文挟んだ重複間に不完全文がある場合、前後の文を比較前文+不完全文
3不完全文言いかけて無音不完全文全体
4文内重複A+中間+A パターン前半部分
5つっかえ語あのあの、つまりつまり前半部分
6言い直し・訂正一部重複/否定の訂正前半部分
7フィラーえー、あー、あのマークだけして自動削除はしない

核心原則:

  • 最初に文に分割し、その後に比較:sentences.txt を使って隣接する文を比較
  • 全文削除:不完全文や重複文は、異常な単語だけではなく、文全体を削除

セグメント分析(ループ実行):

1. readable.txt の offset=N から 300 行を読み込み
2. この300行を sentences.txt と照らし合わせて分析
3. 滑舌ミスの idx を auto_selected.json に追加
4. 口误分析.md に記録
5. N += 300、手順1に戻る

🚨 重要:行番号 ≠ idx

readable.txt 形式: idx|内容|時間
                   ↑ この値を使うこと

行番号1500 → "1568|[无声1.02s]|..."  ← idx は 1568。行番号1500ではない!

口误分析.md の形式:

## 第Nセグメント (行番号範囲)

| idx | 時間 | タイプ | 内容 | 処理 |
|-----|------|--------|------|------|
| 65-75 | 15.80-17.66 | 重複文 | "这是我剪出来的一个案例" | 削除 |

手順 6-7: レビュー

cd ../3_レビュー

# 6. レビュー用Webページを生成
node "$SKILL_DIR/scripts/generate_review.js" ../1_转写/subtitles_words.json ../2_分析/auto_selected.json ../1_转写/audio.mp3
# 出力: review.html

# 7. レビューサーバーを起動
node "$SKILL_DIR/scripts/review_server.js" 8899 "$VIDEO_PATH"
# ブラウザで http://localhost:8899 を開く

ユーザーがWebページで:

  • 動画の該当部分を再生して確認
  • 削除項目のチェックをON/OFF
  • 「编辑を実行」をクリック

データ形式

subtitles_words.json

[
  {"text": "大", "start": 0.12, "end": 0.2, "isGap": false},
  {"text": "", "start": 6.78, "end": 7.48, "isGap": true}
]

auto_selected.json

[72, 85, 120]  // Claude が分析して生成した事前選択インデックス

設定

火山引擎 API キー

cd /Users/chengfeng/Desktop/AIos/剪辑Agent/.claude/skills
cp .env.example .env
# .env を編集して VOLCENGINE_API_KEY=xxx を設定

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

関連スキル