Communitygithub.com

clean-audio — nettoyage vocal

Étape de nettoyage vocal de la pipeline de montage vidéo IA : diagnostiquer le bruit de fond d'une vidéo, choisir la bonne méthode de débruitage et produire un master nettoyé (voix isolée, niveaux préservés, flux vidéo copié).

Qu'est-ce que clean-audio — nettoyage vocal ?

Cette compétence permet de nettoyer la piste audio d'une vidéo en supprimant le bruit de fond, tout en préservant les niveaux et la vidéo originale. Elle est conçue pour les agents d'IA de développement comme Claude Code, Cursor ou Codex, et s'intègre dans une pipeline de montage vidéo complète. Le processus commence par un diagnostic approfondi du bruit : mesure des niveaux, analyse du spectrogramme, identification du type de bruit (stationnaire, dynamique, souffle, etc.). Ensuite, l'agent choisit la méthode appropriée : ElevenLabs Voice Isolator pour les bruits dynamiques et à large bande (eau, vent, trafic), ou RNNoise local pour les bruits stationnaires (souffle, ventilateur). Un A/B sur un échantillon court permet de valider le choix avant de nettoyer l'intégralité du master. Les niveaux sont préservés par correspondance RMS (pas LUFS), et le flux vidéo est copié sans ré-encodage. Une fois approuvé, le fichier nettoyé remplace le master dans la pipeline (timeline.json). Cette compétence est utile pour tous les cas de bruit de fond : extérieur, salle, eau, souffle, ventilation, etc.

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

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

Que fait clean-audio — nettoyage vocal ?

Prenez un master verrouillé et supprimez son bruit de fond, produisant un master nettoyé dont la voix sonne naturelle et dont les visuels restent intacts. S'exécute tôt (une fois la coupe verrouillée) pour que tout ce qui suit — cuisson TSX, mixage SFX, assemblage final — repose sur une voix propre. Travaillez avec l'utilisateur ; le volume/limitation final est le travail de l'étape de mixage final, cette étape est « débruitage uniquement, niveaux préservés ».

Le moteur est tools/clean_voice.py ; cette compétence est le jugement qui l'entoure : diagnostiquer → choisir la méthode → A/B → nettoyer → reconnecter.

Les deux méthodes (choisir selon le TYPE DE BRUIT — c'est la décision centrale)

MéthodeCe que c'estQuand l'utiliserCoût
--method elevenElevenLabs Voice Isolator (séparation voix/bruit par cloud ML)Bruit dynamique et large bande dans la bande vocale — eau courante, vent, trafic, foule, café. Les outils locaux NE PEUVENT PAS supprimer ça.~1000 crédits/min (~1 $ pour une vidéo de 5,5 min) ; nécessite ELEVENLABS_API_KEY
--method rnnoise --model sh (ou cb)RNNoise local via ffmpeg arnndn (modèles dans tools/models/rnnoise/)Bruit stationnaire / léger (souffle constant, ventilateur, bruit ambiant). Gratuit/hors ligne. Ne supprime que PARTIELLEMENT le bruit dynamique.gratuit

Testé sur la vidéo-1 (tournée en extérieur avec un ruisseau) : afftdn n'a presque rien fait, RNNoise n'a que partiellement assombri le lit de l'eau, ElevenLabs l'a supprimé quasi-complètement (pauses au quasi-silence, voix + respirations intactes). Règle empirique : bruit stationnaire → essayer local d'abord ; bruit large bande dynamique (eau/vent/trafic) → ElevenLabs.

Entrées (lire/mesurer d'abord, à chaque fois)

  • Le master — videos/video-N/reference/<coupe>.mp4 (ou la coupe verrouillée). L'original n'est JAMAIS modifié ; la sortie est un nouveau fichier -clean / -clean-<modèle>.
  • L'aperçu composité (s'il existe) — videos/video-N/output/video-N-preview.mp4, pour créer un aperçu nettoyé en contexte en échangeant l'audio (sa vidéo est identique — pas besoin de re-cuisson).
  • videos/video-N/work/timeline.json — son champ master ; vous le reconnectez au master nettoyé après approbation.

Flux de travail

  1. Diagnostiquez le bruit AVANT de choisir une méthode. Mesurez et observez :
    • Niveaux : ffmpeg -i M -vn -af astats (RMS, crête, plancher de bruit) + ebur128 (LUFS intégré, crête vraie).
    • Trouvez les intervalles sans parole (grep edited-transcript.json pour les plus grands écarts entre mots) et mesurez le RMS de bruit pur là vs le RMS de parole → le vrai SNR.
    • Spectrogramme : ffmpeg -i M -vn -lavfi showspectrumpic=s=1500x600:legend=1:scale=log out.png et REGARDEZ-LE. Ronflement = lignes horizontales stables (50/60 Hz) → filtre coupe-bande. Grondement = bande basse → passe-haut. Bande large qui remplit la bande vocale et fluctue = dynamique (eau/vent) → ElevenLabs. Souffle HF = bande haute brillante.
    • Notez si l'export est déjà produit (compressé/normalisé/écrêté) — cela limite ce qui est récupérable.
  2. Décidez de la méthode avec l'utilisateur à partir du diagnostic (tableau ci-dessus). En cas de doute, faites un A/B des deux.
  3. Faites d'abord un A/B sur un court échantillon (prouvez avant de dépenser / vous engager) : découpez un échantillon d'environ 15 s riche en pauses, exécutez chaque méthode candidate, égalisez leurs niveaux, et comparez — à l'oreille (le vrai test) ET par spectrogramme (les pauses qui s'assombrissent = bruit supprimé) et niveau résiduel. Laissez l'utilisateur choisir.
  4. Nettoyez le master complet : python tools/clean_voice.py videos/video-N/reference/<coupe>.mp4 --method <choisie> [--model sh] → <coupe>-clean.mp4 (ou -clean-<modèle>.mp4). Flux vidéo COPIÉ (rapide, non destructif, conserve le 4K60).
  5. Les niveaux sont préservés par correspondance RMS, pas LUFS (l'outil le fait). Ne jamais faire correspondre le LUFS intégré — il est pondéré et gonflé par le bruit supprimé, et sur-amplifie la voix jusqu'à l'écrêtage. Le fichier nettoyé aura un LUFS intégré plus bas que l'original bruyant ; c'est normal (le bruit gonflait le nombre), le RMS vocal est inchangé. Le volume final à -14 LUFS est le travail de l'étape de mixage final.
  6. Donnez à l'utilisateur un aperçu en contexte (optionnel mais recommandé) : échangez l'audio nettoyé sur l'aperçu composité — ffmpeg -i preview.mp4 -i <coupe>-clean.mp4 -map 0:v -map 1:a -c:v copy -c:a aac -shortest preview-clean.mp4 (vidéo identique, pas de re-cuisson). Pour un A/B complet, exportez aussi des fichiers FULL_*.mp3 de défilement.
  7. Sur approbation, reconnectez la pipeline : pointez timeline.json "master" vers le fichier nettoyé pour que chaque future cuisson/mixage utilise la voix propre ; re-cuisez l'aperçu si nécessaire.

Décisions à présenter à l'utilisateur

  • Méthode (à partir du diagnostic) — et A/B en cas de doute.
  • Pauses mort-silence vs un léger fond ambiant. L'isolation vocale supprime TOUT l'arrière-plan ; sur une prise de vue en extérieur, les pauses mort-silence peuvent sembler sous vide. Proposez d'ajouter un faible niveau d'ambiance neutre si souhaité.
  • Coût pour ElevenLabs (~1000 crédits/min) — confirmez avant de lancer sur le master complet.

Principes (le style maison)

  • Le moins de traitement qui fonctionne. Le but est de supprimer la distraction, pas de donner à la voix un son transformé. Préférez la méthode la plus douce qui élimine le bruit ; ne dégradez pas une piste propre.
  • Diagnostiquez, puis choisissez. Le bon outil dépend du type de bruit — ne jamais actionner un débruitage à l'aveugle. Les spectres locaux/RNNoise ne peuvent pas séparer le bruit large bande dynamique ; c'est le travail d'ElevenLabs.
  • A/B avant de vous engager (et avant de dépenser). Prouvez sur un échantillon ; les oreilles de l'utilisateur décident.
  • Préservez les niveaux ; le volume est le travail de l'étape de mixage final. Correspondance RMS avec un plafond de crête, pas de compression ici.
  • Non destructif. Master original intact ; flux vidéo copié ; la sortie est un nouveau fichier.

Référence rapide des outils

  • Nettoyer : python tools/clean_voice.py IN.mp4 [--method eleven|rnnoise] [--model sh|cb] [-o OUT.mp4] [--no-preserve-loudness] [--keep]
  • Diagnostiquer : ffmpeg -i M -vn -af astats -f null - · ffmpeg -i M -vn -lavfi showspectrumpic=... out.png (puis Lisez le png).
  • Modèles RNNoise : tools/models/rnnoise/<modèle>.rnnn (sh, cb).
  • Échantillons/spectrogrammes de brouillon vont dans le bloc-notes, pas dans le projet.

Fait = le bruit est diagnostiqué, la méthode est choisie (A/B si nécessaire), le master complet est nettoyé avec les niveaux préservés, l'utilisateur a approuvé à l'oreille, et — sur approbation — timeline.json pointe vers le master nettoyé. Mettez à jour la mémoire si une leçon type-de-bruit → méthode émerge.

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.

Skills associés