Communitygithub.com

クリーンオーディオ — 音声クリーンアップ

ロックされたカットの背景ノイズを除去し、ナチュラルな音声を保ったクリーンマスターを生成します。ノイズ診断、方法選択、A/Bテスト、本番クリーニング、パイプラインの再配線までをカバーします。

クリーンオーディオ — 音声クリーンアップ とは?

このスキルは、AIビデオエディタのパイプラインにおいて、ロックされたカットの音声背景ノイズを除去する「クリーンオーディオ」ステップです。ノイズタイプを診断し、ElevenLabs Voice Isolator(動的・広帯域ノイズ向け、クラウド、約1000クレジット/分)か、ローカルRNNoise(定常ノイズ向け、無料、ffmpeg arnndn)の適切な方法を選択します。'tools/clean_voice.py'を使用し、RMSマッチでレベルを保存(LUFSではない)、ビデオストリームはコピー(非破壊)。ユーザーと協力してA/Bサンプルで確認後、'timeline.json'のmasterフィールドをクリーンマスターに再配線します。主な対応プラットフォームはClaude Code、Cursor、Codexなどのコマンドライン/エージェントベース環境で、ffmpegとPythonツールに依存します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/raisaksham377-bot/youtube-shorts-ai-editor/tree/HEAD/.claude/skills/clean-audio

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

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

ドキュメント

clean-audio — 音声クリーンアップ

ロックされたマスターカットを取得し、その背景ノイズを除去します。結果としてクリーンマスターが生成され、音声は自然に聞こえ、映像はそのまま維持されます。カットがロックされたらすぐに(パイプラインの初期段階で)実行されるため、後続のすべての工程(TSXベイク、SFXミックス、最終アセンブル)はクリーンな音声を基に動作します。ユーザーと協力して進めます。最終的なラウドネス/リミッティングは最終ミックスステップの仕事であり、このステップは「ノイズ除去のみ、レベルは保存」です。

エンジンは**tools/clean_voice.py**です。このスキルはその判断部分を担います:診断 → 方法選択 → A/Bテスト → クリーニング → 再配線。

2つの方法(ノイズタイプによって選択 — これが中核的な判断)

方法説明使用タイミングコスト
--method elevenElevenLabs Voice Isolator(クラウドML音声/ノイズ分離)音声帯域の動的・広帯域ノイズ — 屋外の流水、風、交通、群衆、カフェ。ローカルツールでは除去不可能。約1000クレジット/分(5.5分動画で約$1)。ELEVENLABS_API_KEYが必要。
--method rnnoise --model sh (または cb)ffmpeg arnndn によるローカルRNNoise(モデルは tools/models/rnnoise/ 内)定常的/軽度なノイズ(安定したヒス音、ファン、ある程度の部屋のノイズ)。無料/オフライン。動的ノイズは部分的にしか除去できない。無料

video-1(小川のある屋外撮影)で実証済み:afftdn はほぼ効果なし、RNNoiseは水のノイズを部分的に暗くするのみ、ElevenLabsはほぼ完全に除去(ポーズ部分はほぼ無音に、声と息のみ残る)。経験則:定常ノイズ → まずローカルを試す。動的広帯域ノイズ(水/風/交通) → ElevenLabs。

入力(毎回最初に読み取り・測定)

  • マスター — videos/video-N/reference/<cut>.mp4(ロックされたカット)。オリジナルは決して変更されません。出力は新しい -clean / -clean-<model> ファイルです。
  • 合成プレビュー(存在する場合) — videos/video-N/output/video-N-preview.mp4。音声を差し替えて、状況に応じたクリーンプレビューを作成するために使用します(ビデオは同じ — 再ベイク不要)。
  • videos/video-N/work/timeline.json — その master フィールドを、承認後にクリーンマスターに再配線します。

ワークフロー

  1. 方法を選ぶ前にノイズを診断します。 測定と確認:
    • レベル:ffmpeg -i M -vn -af astats(RMS、ピーク、ノイズフロア)+ ebur128(統合LUFS、トゥルーピーク)。
    • 無音ギャップを見つけます(edited-transcript.json から最も長い単語間ギャップをgrep)。そこで純粋ノイズRMSと音声RMSを測定 → 実際のSNR。
    • スペクトログラム:ffmpeg -i M -vn -lavfi showspectrumpic=s=1500x600:legend=1:scale=log out.png で画像を確認します。ハム音 = 安定した水平ライン(50/60Hz)→ ノッチフィルタ。ランブル = 低帯域 → ハイパス。音声帯域を埋め、変動する広帯域ノイズ = 動的(水/風)→ ElevenLabs。高周波ヒス = 明るいトップバンド。
    • エクスポートがすでに圧縮/ノーマライズ/ピーク制限されているかどうかを確認します。これにより回復可能な範囲が制限されます。
  2. 診断結果に基づいて方法をユーザーと決定します(上の表を参照)。不明な場合は両方をA/Bテストします。
  3. 最初に短いサンプルでA/Bテストします(コストをかける前に確認):約15秒のポーズが多いサンプルを切り出し、各候補方法を実行し、互いにレベルマッチさせて比較します — 耳(本当のテスト)とスペクトログラム(ポーズが暗くなる = ノイズ除去)および残留レベルで比較。ユーザーに選ばせます。
  4. フルマスターをクリーンにします: python tools/clean_voice.py videos/video-N/reference/<cut>.mp4 --method <選択> [--model sh] → <cut>-clean.mp4(または -clean-<model>.mp4)。ビデオストリームはコピーされます(高速、非破壊、4K60を維持)。
  5. レベルはRMSマッチで保存されます(LUFSではありません)(ツールが行います)。統合LUFSでマッチさせないでください — ゲート処理され、除去されたノイズによって値が膨らみ、音声をクリッピングまで過剰にブーストします。クリーンファイルはノイズの多いオリジナルより低い統合LUFSを読み取ります。これは予想通りです(ノイズが数値を水増ししていたため)。音声RMSは変わりません。最終的な-14 LUFSへのラウドネス調整は最終ミックスステップの仕事です。
  6. ユーザーに状況に応じたプレビューを提供します(オプションですが推奨):クリーン音声を合成プレビューに差し替えます — ffmpeg -i preview.mp4 -i <cut>-clean.mp4 -map 0:v -map 1:a -c:v copy -c:a aac -shortest preview-clean.mp4(ビデオは同一、再ベイク不要)。完全なA/Bテストの場合は、FULL_*.mp3 スクラブファイルもエクスポートします。
  7. 承認後、パイプラインを再配線します: timeline.json の "master" をクリーンファイルにポイントし、今後のすべてのベイク/ミックスでクリーン音声が使用されるようにします。必要に応じてプレビューを再ベイクします。

ユーザーに提示すべき判断

  • 方法(診断結果に基づく) — 不明な場合はA/Bテスト。
  • 完全な無音ギャップ vs 微かなアンビエンスベッド。 ボイス分離はすべての背景を除去します。屋外ショットでは、完全に無音のギャップが真空パックのように感じられることがあります。必要に応じて、低レベルのニュートラルなアンビエンスを追加するオプションを提供します。
  • ElevenLabsのコスト(約1000クレジット/分) — フルマスターで実行する前に確認します。

原則(ハウススタイル)

  • 効果がある最小限の処理。 目標は気を散らすものを取り除くことであり、音声が加工されているように感じさせないことです。ノイズを取り除く最も穏やかな方法を優先し、クリーンなトラックを過剰に削らないでください。
  • 診断してから選択。 適切なツールはノイズタイプに依存します — ノイズリデューサーを盲目的に最大にしないでください。ローカルのスペクトル処理/RNNoiseは動的な広帯域ノイズを分離できません。それはElevenLabsの仕事です。
  • コミット(そしてコスト)の前にA/Bテスト。 サンプルで証明し、ユーザーの耳が決定します。
  • レベルを保存。ラウドネスは最終ミックスステップの仕事。 ピーク上限付きのRMSマッチ。ここでは圧縮なし。
  • 非破壊。 元のマスターはそのまま。ビデオストリームはコピー。出力は新しいファイル。

ツールクイックリファレンス

  • クリーニング:python tools/clean_voice.py IN.mp4 [--method eleven|rnnoise] [--model sh|cb] [-o OUT.mp4] [--no-preserve-loudness] [--keep]
  • 診断:ffmpeg -i M -vn -af astats -f null - · ffmpeg -i M -vn -lavfi showspectrumpic=... out.png(そしてpngを読む)。
  • RNNoiseモデル:tools/models/rnnoise/<model>.rnnn(sh、cb)。
  • スクラッチサンプル/スペクトログラムはスクラッチパッドに置き、プロジェクトには置かないでください。

完了 = ノイズが診断され、方法が選択され(必要ならA/Bテスト済み)、フルマスターがレベルを保存した状態でクリーニングされ、ユーザーが耳で承認し、承認後は timeline.json がクリーンマスターを指している状態。ノイズタイプ→方法の教訓が得られたらメモリを更新します。

Individual skills in this repo

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

raisaksham377-bot/youtube-shorts-ai-editor

Makes this repo's videos look like YOUR channel instead of the house default — interviews you for palette, fonts, wordmark, motion energy, delivery specs and SFX taste, then rewrites brand.md + remotion/src/brand.ts + remotion/src/fonts.ts together and renders a proof card so you SEE it. Use whenever the user wants to set up or change their brand, rebrand the repo, "make it my colors/fonts", change the accent color, set their wordmark, adjust the motion feel, or asks why their videos look like someone else's. Run it once before the first video. Not for per-video art direction (that is /make-tsx) and not for thumbnails, which are deliberately louder than the brand (that is /packaging).

raisaksham377-bot/youtube-shorts-ai-editor

Build a split-frame vertical Short/Reel (1080x1920) from talking-head footage — real face cropped into the bottom half throughout, bespoke motion-graphic beats + word-by-word captions in the top half. Use when the user wants a "vertical short", "reel", "9:16 video", "split-frame" format, asks to keep their face on screen the whole time while graphics play above it, wants an in-context app/UI mockup moment (like clicking a button in a browser) without cutting away from their face, or hits caption-pill-covers-my-face / no-GPU-rendering / audio-duration-mismatch problems while building one. Covers the crop-offset technique for framing the face, the caption-pill safe zone, the top-half-only UI-mockup scene pattern, the full pipeline from raw footage to final SFX mix, and the environment gotchas (no NVIDIA GPU, AAC priming gap, comp-native transcode). Topic-agnostic — this is a layout/technique skill, not tied to any one video's content. Builds on /clean-cut, /make-tsx conventions, and /suggest-sfx; doesn't rep...

raisaksham377-bot/youtube-shorts-ai-editor

Step 1 of the AI Video Editor pipeline — turn raw talking-head footage into a clean master cut. Use when the user wants to "clean cut", "cut the raw footage", "remove filler / dead air / bad takes", "tighten the pacing", produce cuts.json, run the cut editor, or render a cleaned preview/master for a video-N project in this repo. Covers audio extraction, AssemblyAI transcription, authoring cuts.json (keeps/cuts/fluff categorized), the cut policy (content-aggressive, pause-natural ~0.5s), QA + review docs, the local cut-editor UI, tight/natural previews, the final 4K60 render, and producing edited-transcript.json as the handoff to /make-tsx. Not for building TSX overlays (that is /make-tsx) or the raw TSX authoring rules (that is vidtsx-2d-generator).

raisaksham377-bot/youtube-shorts-ai-editor

Turn static SCREENSHOTS into a simulated screen recording (TSX) — a fake screencast with an animated cursor that eases to targets and clicks, a browser URL bar that updates per page, hard-cut navigations, in-page filter crossfades, smooth scroll, and a ken-burns zoom onto the payoff. Use when a beat needs to show a walkthrough of a web app / dashboard / settings page and you'd rather build it from screenshots than get (or ask for) a real screen recording — "fake a screen recording", "turn these screenshots into a screencast", "simulate clicking through the dashboard", "animate this UI walkthrough", "cursor moving through the app". Built on remotion/src/lib/screencast.tsx. This is a technique WITHIN step 2 (make-tsx): defer timeline/render/bake orchestration to make-tsx and raw crash-free TSX rules to vidtsx-2d-generator. Not for a single static page clone (use WebBrowserFrame directly) and not when the point is genuine proof of real speed/output (use a real recording).

raisaksham377-bot/youtube-shorts-ai-editor

Step 2 of the AI Video Editor pipeline — build the visual beats (Remotion TSX shots) over a project's master cut and bake a composited preview. Use when the user wants to add/edit overlays or full-screen animation segments, "make a shot / beat", implement an edit plan or a v2 update, retime a beat to the narration, re-render shots, or re-bake the video-N preview in this repo. Covers reading the plan + edited-transcript + brand + reusable kit, authoring shots library-first, syncing reveals to word times, updating timeline.json (cutaway vs overlay), rendering, verifying by screenshot, and baking with tools/bake.py. Defers raw TSX authoring rules to vidtsx-2d-generator and the cut itself to clean-cut.

raisaksham377-bot/youtube-shorts-ai-editor

Generates click-optimized YouTube packaging — 3 thumbnail bets under one fixed title, engineered for YouTube's built-in A/B/C thumbnail test, plus a value-forward description, then renders the thumbnails as real images. Use this whenever you want to package a long-form video or turn a video idea into titles and thumbnails. Triggers include how would you package this, title ideas for, thumbnail concept, package this video, A/B variations, and make this clickable. Calibrates to your channel's own CTR data if you have it. Long-form only, never Shorts. Not for non-YouTube copywriting.

raisaksham377-bot/youtube-shorts-ai-editor

Step 4 of the AI Video Editor pipeline — the SFX pass. Analyze a video's beats + narration and propose tasteful sound effects synced to them, drawing from (and growing) a shared, reusable SFX library, then render an SFX-mixed audition preview. Use when the user wants to "add SFX / sound effects", "suggest sfx", "score the transitions", "sound-design this beat", generate/source sound effects, build or extend the sfx library/catalog, author or audit a sfx-plan, or mix SFX over a video-N preview in this repo. Covers reading timeline + edited-transcript + brand §10, the library-first flow, generating misses with the ElevenLabs Sound Effects API, the per-video sfx-plan.json, the hard user-audit gate, and mixing with tools/mix_sfx.py (light voice ducking). Not the music bed (that is the final-mix step) and not the visual beats (that is /make-tsx).

raisaksham377-bot/youtube-shorts-ai-editor

Generate production-ready 2D TSX video files for VidTSX (Remotion-based) from a shot, scene, or video description. Use whenever the user wants to create or generate a VidTSX video, a 2D TSX shot or scene, an animated clip, title card, or rendered motion graphic — including when they describe a visual animation they want built, or say "make a shot", "build this scene", "generate the TSX", or "turn this into a video". Covers the mandatory file structure and composition config, dimension presets (horizontal/vertical/square), six style presets (minimalist, memphis, neo-brutalism, glassmorphism, neon, corporate), and the hard rules that keep renders from crashing, covering frame-based animation only (no useState/useEffect/setTimeout), strictly monotonic interpolate ranges, Easing.bezier not wrapper syntax, and the chroma-js and @remotion/paths import gotchas. Not for 3D/three.js compositions, general React work, or editing video files.

関連スキル