Communitygithub.com

limpeza-de-audio — remoção de ruído de fundo

Diagnostica o ruído de fundo de um vídeo, escolhe o método de remoção adequado e produz um master limpo (voz isolada, níveis preservados, stream de vídeo copiado). Use quando o usuário quiser "limpar o áudio/voz", "remover ruído de fundo", "isolar voz", corrigir ruídos externos/sala/água/zumbido/sibilo, rodar o ElevenLabs Voice Isolator ou RNNoise local, comparar métodos A/B, ou produzir um master limpo para um vídeo-N neste repositório.

O que é limpeza-de-audio — remoção de ruído de fundo?

Este skill é o estágio de limpeza de voz no pipeline do AI Video Editor. Ele diagnostica o tipo de ruído de fundo (estacionário vs. dinâmico/de banda larga) usando espectrograma e medições de nível, decide entre ElevenLabs Voice Isolator (cloud, ~1000 créditos/min) para ruído dinâmico como água/trafego, ou RNNoise local (gratuito) para ruído estacionário como zumbido de ventilador. O skill guia a comparação A/B em amostras curtas, preserva os níveis originais por correspondência RMS (não LUFS), e reconecta o pipeline (`timeline.json`) para usar o master limpo. Suporta todos os vídeos no repositório (estrutura `videos/video-N/`). A saída é um arquivo `-clean.mp4` com stream de vídeo copiado sem perdas. O usuário aprova por audição antes de aplicar ao master completo.

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

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

limpar-audio — limpeza de voz

Pegue um master cortado finalizado e remova o ruído de fundo, produzindo um master limpo cuja voz soe natural e cujos visuais permaneçam intocados. Executa no início (assim que o corte é finalizado) para que tudo a jusante — preparação TSX, mix de SFX, montagem final — tenha a base de voz limpa. Trabalhe com o usuário; o loudness/limiter final é responsabilidade da etapa de mix final, esta etapa é "apenas remoção de ruído, níveis preservados."

O motor é tools/clean_voice.py; este skill é o julgamento em torno dele: diagnosticar → escolher método → A/B → limpar → religar.

Os dois métodos (escolha pelo TIPO DE RUÍDO — esta é a decisão central)

MétodoO que éQuando usarCusto
--method elevenElevenLabs Voice Isolator (separação voz/ruído via cloud ML)Ruído dinâmico e de banda larga na faixa de voz — água corrente ao ar livre, vento, tráfego, multidão, café. Ferramentas locais NÃO CONSEGUEM remover isso.1000 créditos/min ($1 para um vídeo de 5,5 min); precisa de ELEVENLABS_API_KEY
--method rnnoise --model sh (ou cb)RNNoise local via ffmpeg arnndn (modelos em tools/models/rnnoise/)Ruído estacionário / suave (sibilo constante, ventilador, tom ambiente baixo). Gratuito/sem internet. Remove APENAS PARCIALMENTE ruído dinâmico.grátis

Comprovado no video-1 (gravado ao ar livre perto de um riacho): afftdn quase não fez nada, RNNoise escureceu parcialmente o leito d'água, ElevenLabs removeu quase completamente (pausas para quase silêncio, voz + respirações intactas). Regra prática: ruído estacionário → tentar local primeiro; dinâmico de banda larga (água/vento/tráfego) → ElevenLabs.

Entradas (leia/meça primeiro, sempre)

  • O master — videos/video-N/reference/<cut>.mp4 (ou o corte finalizado). O original NUNCA é modificado; a saída é um novo arquivo -clean / -clean-<model>.
  • A prévia composta (se existir) — videos/video-N/output/video-N-preview.mp4, para criar uma prévia limpa no contexto trocando o áudio (o vídeo é idêntico — não precisa de nova preparação).
  • videos/video-N/work/timeline.json — seu campo master; você o religa para o master limpo após aprovação.

Fluxo de trabalho

  1. Diagnostique o ruído ANTES de escolher um método. Meça e observe:
    • Níveis: ffmpeg -i M -vn -af astats (RMS, pico, piso de ruído) + ebur128 (LUFS integrado, pico real).
    • Encontre lacunas sem fala (grep edited-transcript.json para os maiores intervalos entre palavras) e meça o RMS do ruído puro lá vs RMS da fala → a SNR real.
    • Espectrograma: ffmpeg -i M -vn -lavfi showspectrumpic=s=1500x600:legend=1:scale=log out.png e OLHE para ele. Zumbido = linhas horizontais constantes (50/60Hz) → notch. Ruído grave = banda baixa → passa-alta. Base de banda larga que preenche a faixa de voz e flutua = dinâmico (água/vento) → ElevenLabs. Chiado HF = banda brilhante superior.
    • Observe se a exportação já foi produzida (comprimida/normalizada/pico máximo) — isso limita o que é recuperável.
  2. Decida o método com o usuário a partir do diagnóstico (tabela acima). Se estiver em dúvida, faça A/B de ambos.
  3. Faça A/B em uma amostra curta PRIMEIRO (comprove antes de gastar/comprometer): corte uma amostra de ~15s rica em pausas, execute cada método candidato, iguale os níveis entre eles e compare — pelo ouvido (o teste real) E pelo espectrograma (pausas escurecendo = ruído removido) e nível residual. Deixe o usuário escolher.
  4. Limpe o master completo: python tools/clean_voice.py videos/video-N/reference/<cut>.mp4 --method <escolhido> [--model sh] → <cut>-clean.mp4 (ou -clean-<model>.mp4). Stream de vídeo COPIADO (rápido, não destrutivo, mantém 4K60).
  5. Os níveis são preservados por correspondência RMS, não LUFS (a ferramenta faz isso). Nunca iguale LUFS integrado — ele é influenciado e inflado pelo ruído removido, e superaquece a voz causando clipping. O arquivo limpo terá um LUFS integrado menor do que o original ruidoso; isso é esperado (o ruído inflava o número), o RMS da voz não mudou. O loudness final para -14 LUFS é responsabilidade da etapa de mix final.
  6. Forneça ao usuário uma prévia no contexto (opcional, mas recomendado): troque o áudio limpo na prévia composta — ffmpeg -i preview.mp4 -i <cut>-clean.mp4 -map 0:v -map 1:a -c:v copy -c:a aac -shortest preview-clean.mp4 (vídeo idêntico, sem nova preparação). Para um A/B completo, exporte também arquivos de rastreamento FULL_*.mp3.
  7. Após aprovação, religue o pipeline: aponte "master" em timeline.json para o arquivo limpo para que toda preparação/mix futuros usem a voz limpa; re-prepare a prévia se necessário.

Decisões a apresentar ao usuário

  • Método (a partir do diagnóstico) — e A/B se estiver em dúvida.
  • Lacunas de silêncio absoluto vs. um ambiente suave. O isolamento de voz remove TODO o fundo; em uma gravação externa as lacunas de silêncio absoluto podem parecer artificiais. Ofereça adicionar um ambiente neutro de baixo nível se desejado.
  • Custo para ElevenLabs (~1000 créditos/min) — confirme antes de executar no master completo.

Princípios (o estilo da casa)

  • Menos processamento que funcione. O objetivo é remover distração, não fazer a voz soar processada. Prefira o método mais suave que elimine o ruído; não retire demais de uma faixa limpa.
  • Diagnostique, depois escolha. A ferramenta certa depende do tipo de ruído — nunca aumente cegamente um redutor de ruído. O RNNoise local/espectral não consegue separar ruído dinâmico de banda larga; esse é o trabalho do ElevenLabs.
  • A/B antes de se comprometer (e antes de gastar). Comprove em uma amostra; os ouvidos do usuário decidem.
  • Preserve níveis; loudness é responsabilidade da etapa de mix final. Correspondência RMS com teto de pico, sem compressão aqui.
  • Não destrutivo. Master original intacto; stream de vídeo copiado; saída é um novo arquivo.

Referência rápida de ferramentas

  • Limpar: python tools/clean_voice.py IN.mp4 [--method eleven|rnnoise] [--model sh|cb] [-o OUT.mp4] [--no-preserve-loudness] [--keep]
  • Diagnosticar: ffmpeg -i M -vn -af astats -f null - · ffmpeg -i M -vn -lavfi showspectrumpic=... out.png (depois Leia o png).
  • Modelos RNNoise: tools/models/rnnoise/<model>.rnnn (sh, cb).
  • Amostras de rascunho/espectrogramas vão para o scratchpad, não para o projeto.

Finalizado = o ruído foi diagnosticado, o método foi escolhido (A/B se necessário), o master completo foi limpo com níveis preservados, o usuário aprovou pelo ouvido e — após aprovação — timeline.json aponta para o master limpo. Atualize a memória se surgir um aprendizado sobre tipo de ruído → método.

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.

Habilidades Relacionadas