Communitygithub.com

vijayahnlu/reels

用於處理 HyperFrames 合成中已放置音訊的混音:淡入/淡出、交叉淡化、音軌增益或音量、音量自動化、閃避、對抗旁白的音樂背景(旁白雕刻)、音軌效果處理以及總線混音。不用於生成或尋找音訊。

reels 是什麼?

此技能專為 HyperFrames 中的音訊混音任務而設計,主要處理那些已經放置於合成中的音訊素材。它提供了一系列工具來表達音軌之間的關係,而不是簡單地堆疊處理器。核心概念是,兩個聽起來不錯的音軌組合在一起時可能無法入耳,而解決方案通常是找出它們爭奪的頻段並分配給需要的一方。支援的平台包括所有使用 HyperFrames 的環境,運作方式是透過 `data-fx-chain`、`data-automation` 和 `data-fx-carve` 等屬性來控制效果、自動化和旁白雕刻,並在同一個 Web Audio 圖形上進行預覽和渲染,確保所聽即所得。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/vijayahnlu/reels/tree/HEAD/.claude/skills/hyperframes-audio

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

外掛安裝: 在執行設定或更新命令之前,請先遵循外掛執行規則。當此技能位於 HyperFrames 外掛內部時,請參閱 外掛安裝指引。獨立安裝則保留下列更新說明。

HyperFrames 音訊

混音是一組關係,而不是處理器的堆疊。兩個各自聽起來不錯的音軌,合在一起可能完全無法入耳,而解決方案幾乎從不是「調低其中一個」——而是找出它們在爭奪什麼,並將其交給需要的那一方。這裡的每一個工具都是為了表達其中一種關係而存在。

效果位於元素上,屬性為 data-fx-chain。預覽和渲染共用同一個 Web Audio 圖形——在即時環境中是工作室,在離線環境中是引擎,兩者都在它已經驅動的瀏覽器中運行。每個效果只有一個實現,所以你在拖曳時聽到的音訊,就是最終會被寫入的音訊。你無需調整兩次。

片段時間仍屬於 /hyperframes-core:音訊/影片修剪和來源範圍使用 data-start、data-duration 和 data-media-start,交叉淡化則是在不同音軌上重疊片段。此技能負責已放置音軌的淡入/淡出、交叉淡化包絡、音軌增益/音量、音量和效果自動化、閃避/旁白雕刻以及效果鏈。/media-use 負責素材尋找、生成和預處理。

常數 data-playback-rate(0.1..10)在匹配的音訊/影片元素使用相同的時間、來源偏移和速率時,對於畫面是安全的,並且音高會被保留。速度曲線是 data-automation 中的一個 rate 通道(參閱 docs/reference/speed-ramps);它會覆寫常數,並在預覽和渲染中保持音高。HyperFrames 不提供自動波形同步或漂移校正。 對於可複製的剪下/交叉淡化/重新定時配方,請使用 /hyperframes-core → references/creator-editing-recipes.md。

三個屬性承載所有內容,位於音訊/影片元素本身——或者,對於前兩個屬性,位於 <hf-audio-group> 總線上(參閱「適用於多個音軌的單一總線」):

屬性承載內容
data-fx-chain效果,按訊號順序排列
data-automation此音軌音量或其效果參數上的包絡
data-fx-carve雕刻本身的設定,以便可以重新推導

提供的效果系列包括增益、等化器(高通、低通、峰值、擱架)、壓縮器、限制器、閘道器、飽和器、延遲、殘響、合唱、移相器和位元壓碎器。

每個效果的確切 JSON 格式,以及通道必須滿足的規則:references/attributes.md。 每個效果及其參數、範圍和單位:references/fx-registry.md。 如何解決你聽不到聲音的檔案問題:references/diagnosis.md。 預設值、命名任務和單旋鈕設定檔,以及症狀到修復的對照表:references/presets.md——在手工建立效果鏈之前請先閱讀此文件,因為其中一個預設值或命名任務通常已經指出了問題所在。

如何整合

兩個編輯介面寫入這些屬性;兩個執行階段透過相同的建構器讀取它們。這種共享的中間層就是預覽能預測渲染結果的原因。

flowchart TB
  voice["人聲音軌<br/>媒體檔案"]
  bed["音樂背景<br/>媒體檔案"]

  subgraph AUTHOR["編輯階段 — 唯一寫入屬性的動作"]
    panel["工作室<br/>旁白雕刻控制"]
    script["scripts/carve.mjs<br/>偵測配對"]
    analysis["core/audioCarve.ts<br/>carveProfile · analyseCarveBands<br/>analyseCarveDuck · analyseCarveDynamics"]
    panel --> analysis
    script --> analysis
  end

  voice --> analysis
  bed --> analysis

  subgraph ATTRS["寫入背景元素上"]
    carveAttr["data-fx-carve<br/>來源 · 強度"]
    chainAttr["data-fx-chain<br/>峰值xN + 增益,標記為 fromCarve"]
    autoAttr["data-automation<br/>每個雕刻參數一個通道"]
  end

  analysis --> carveAttr
  analysis --> chainAttr
  analysis --> autoAttr

  subgraph SHARED["單一實現,兩者皆讀取"]
    build["audioFxGraph.ts · buildFxChain"]
    sched["audioFxAutomation.ts · scheduleChainAutomation"]
  end

  chainAttr --> build
  autoAttr --> sched

  build --> preview["預覽<br/>即時 AudioContext<br/>attachElementFxChain"]
  sched --> preview
  build --> render["渲染<br/>在無頭瀏覽器中的 OfflineAudioContext<br/>applyAudioFxChain"]
  sched --> render

  preview --> heard["拖曳時聽到的聲音"]
  render --> wav["處理過的 WAV<br/>+ chainTailSeconds 確保混音不會切掉尾音"]
  wav --> mix["引擎 · audioMixer<br/>音量通道在此處烘焙到 PCM 中,而不是在圖形中"]
  mix --> out["渲染後的混音"]

  edit["播放中編輯屬性"] -.->|MutationObserver| preview

雕刻本身的設定從不會在播放時被讀取——它產生的效果鏈和通道才是播放時使用的。data-fx-carve 的存在是為了可以改變現有雕刻的強度,而不是從濾波器中回推猜測。

在一個被雕刻的背景內部,訊號先經過凹陷,然後是電平匹配,最後是你自己建立的任何效果——這就是為什麼你添加的限制器仍然會作為最終的限制器來運作:

flowchart LR
  src["解碼後的背景"] --> p1["峰值<br/>400 Hz"]
  p1 --> p2["峰值<br/>1 kHz"]
  p2 --> p3["峰值<br/>1.6 kHz"]
  p3 --> g["增益<br/>電平匹配"]
  g --> hand["你自己的效果<br/>例如限制器"]
  hand --> dest["音軌增益,然後輸出"]

  l1["通道 fx.n1.gain"] -.->|"該頻段人聲<br/>電平的包絡"| p1
  l4["通道 fx.n4.gain"] -.->|"背景<br/>整體閃避的程度"| g

首先,找出問題所在

下表從「聽起來很轟」開始——這假設已經有人聽過並這樣說。如果給你一個檔案並說「修好它」,你沒有這樣的描述也無法聆聽,所以你必須透過測量來判斷。一條規則主導一切:

無法診斷單一未知人聲的絕對頻譜。 共振峰是 ±10 dB,基頻在 85–255 Hz 之間,句子結束時會衰減 5–6 dB。 這些單獨看起來都像是缺陷,而它們其實都是說話者的特徵。

因此,進行比較,並與同一個檔案內的內容進行比較:如果存在,使用乾淨的原始檔;否則使用停頓處——任何在間隙中可聽到的東西都是附加的,而該間隙的頻譜是通道本身而不是人聲。與發布的平均頻譜或合成的控制人聲進行比較是沒用的:兩個說話者之間的差異遠大於大多數缺陷,而此指引背後的評估中,兩個錯誤答案正是來自這種做法。

當沒有原始檔也沒有可用的靜音時,靜態的音調缺陷確實是無法確定的。請說明情況並提供最符合的讀數,而不是選擇一個並基於它建立效果鏈。

命令、陷阱和已驗證的配方:references/diagnosis.md。在診斷一個沒有人描述過的檔案之前,請先閱讀此文件。

從症狀開始

一旦你知道頻段和類型,就說出音訊的問題所在。大多數糟糕的音訊屬於以下一兩種類型,每種都有現成的解決方案:

聽起來像是使用
底下有哼聲或隆隆聲rumble-cut,或 80 Hz 的 highpass
轟聲、胸腔共鳴馴服轟聲任務 (200 Hz)
悶聲、像隔著紙箱減少模糊任務 (250 Hz)
聽不清楚增加清晰度任務 (3 kHz),或雕刻背景
刺耳且令人疲倦柔化刺耳感任務 (3.2 kHz)
有些詞比別的詞大聲很多使用壓縮器的均勻度,或均衡電平
句子之間有空間音room-gate
人聲和音樂互相干擾旁白雕刻——不是對任何一方使用等化器
聲音乾澀,不像在某個空間錄的room-tight 或 room-natural
聽起來就是「不專業」voice-clean,依序包含上述四種效果

完整目錄、每個預設包含的內容、頻段詞彙表,以及刻意不涵蓋的內容(去噝聲、降噪、音色匹配):references/presets.md。

先減後加,先調整電平再進行濾波,先處理關係再調整電平,最後處理特性與限制器。每一步都會改變下一步所聽到的內容——在高通濾波器之前設定的壓縮器,會浪費它的能力去處理隆隆聲。

根據問題而非名稱選擇效果系列

濾波器(highpass、lowpass、peaking、lowshelf、highshelf)決定一個音軌可以佔據哪些頻率。這是兩個來源衝突時的首要工具,因為衝突發生在頻段中:背景和人聲都想要 1–3 kHz,從背景中拿走這個頻段對背景的損害遠小於調低整個音量對混音的損害。對人聲進行高通濾波是處理隆隆聲的標準方法;低通濾波則是有意使其變暗或模糊。

動態處理(gain、compressor、limiter、gate)決定音軌電平隨時間的變化方式。壓縮縮小了響亮和安靜之間的差距,從而使安靜的部分可以被提升。限制器是一個天花板——它不塑造任何東西,它保證沒有任何東西能超過它。閘道器會移除低於閾值的部分,這就是你如何讓句子之間的空間音靜音的方法。gain 是一個普通的電平級,當一個音軌需要讓路時,自動化通道就是作用於它之上。

非線性處理(saturate、bitcrush)會改變波形的形狀,從而添加原本不存在的諧波。當一個音軌需要特質或顆粒感而非修正時,可以使用它們——並且記住它是生成性的:它會使稀薄的來源變得更密集,而不是更乾淨。

時間效果(delay、reverb、chorus、phaser)將一個音軌置於一個空間中或賦予其寬度。這些效果最容易搞砸一個混音,因為一個尾音或一個失諧的複製品會佔據人聲所需的相同空間。將它們用在應該位於其他東西之後的東西上,並保持濕聲量低於單獨聽起來合適的程度。

效果鏈是串聯的:每個效果處理前一個效果產生的結果。因此,校正性濾波要放在前面,特性放在中間,而限制器放在最後,這樣它才能真正起到天花板的作用。

旁白雕刻

它解決的問題。 音樂背景下的旁白使人聲難以聽清。直覺反應是將整個背景閃避,這雖然有效,但代價是背景失去了所有的存在感——音樂在整個旁白期間變得軟弱無力。但人聲並不需要整個頻譜。它只需要它實際佔據的少數幾個頻段。雕刻只取那些頻段,而背景保留其低頻和高頻,因此它仍然是音樂,同時人聲仍然清晰可辨。

這是一種關係,而不是一種效果。 設定存在於背景——即被處理的音軌——上,它們指名要聆聽的人聲,就像側鏈壓縮器一樣:你選擇哪個音軌會變小,並選擇什麼讓它變小。絕對不要把雕刻放在人聲音軌上。 人聲對抗自身進行雕刻是一個錯誤,而不是一個微妙的混音選擇。

每一條人聲,而不是其中一條。 sources 是一個列表,因為一個背景通常在一整個序列下運行——一個旁白、一個採訪回答、第二位主持人。它們在測量任何東西之前,會被加總到背景自己的時鐘上(mixCarveSources),因此一次分析涵蓋了所有聲音:頻段來自所有存在的語音,並且每當有任何語音發生時,包絡就會上升。那些從未與背景同時播放的人聲則被排除在外;它們無法遮蔽它。

針對多於一個片段 ID 進行雕刻是錯誤的。將片段分組並針對該組進行雕刻。 這是一個不變的規則,而不是一個提示。逐一命名片段必須是詳盡且正確的,並且只有在下一次編輯之前才是正確的——之後新增的第四個旁白片段將在雕刻的感知範圍之外播放,而背景將無法在它之下靜默地閃避。取而代之的是,命名該組可以在分析時解析成員資格,因此稍後添加到該組中的片段無需修改 sources 即可被涵蓋:

<!-- 將旁白分組,然後針對該組雕刻背景 -->
<audio id="vo-intro" data-audio-group="voiceover" …></audio>
<audio id="vo-middle" data-audio-group="voiceover" …></audio>
<audio id="vo-outro" data-audio-group="voiceover" …></audio>

<audio id="music" data-fx-carve='{"enabled":true,"sources":["voiceover"],"strength":0.8}' …></audio>

一個 sources 列表若命名了兩個或多個普通片段 ID 而非一個組,將被 audio_carve_ungrouped_sources 規則捕獲——它仍然可以運作,但這是在新增片段時會悄悄失效的版本。

保持雕刻組為人聲組:不要包含背景、音效或音樂。 sources 中的一個組 ID 在每次分析時都會解析為當前的所有成員,因此你命名的組就是你稍後得到的組——而不是在寫入它時被測量的那些音軌。兩種方式會產生問題:

  • 背景在自己的來源組中。 它被提供給自己作為人聲,並根據自己的內容進行雕刻——「永遠不要雕刻一個音軌對抗自身」這條規則在下一次重新分析時生效。
  • 一個音效或音樂片段在人聲組中。 它在下一次分析時進入側鏈,背景開始在一個呼嘯聲下閃避,即使寫入該屬性的那次運行從未測量過它。

兩者在雕刻寫入的那一刻都是不可見的:分析會對它檢測到的所有人聲進行求和,並且永遠不會經過組解析的往返,因此第一次通過確實是正確的,只有下一次才是錯誤的。因此,為每個角色指定自己的組——music 用於背景,voiceover 用於旁白,sfx 用於音效——並保持 sources 中命名的組只包含人聲。

carve.mjs 在看到任一情況時會拒絕寫入組形式,記錄片段 ID,並在 stderr 上指出是哪個成員阻止了它。然後 audio_carve_ungrouped_sources 規則會指向該安排。

[因翻譯需求而截斷]

Individual skills in this repo

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

vijayahnlu/reels

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

vijayahnlu/reels

Use the HyperFrames CLI development loop: init, add, catalog, capture, lint, check, snapshot, compare, grade-compare, preview, play, present, beats, keyframes, single or batch render, publish, cloud, cloudrun, feedback, lambda, doctor, browser, info, upgrade, skills, compositions, timeline, history, clean, docs, benchmark, telemetry, transcribe, auth, tts, and remove-background. Also use when diagnosing build or render failures. validate, inspect, and layout are deprecated aliases; use check. Covers local, HeyGen-hosted cloud, AWS Lambda, and Google Cloud Run rendering.

vijayahnlu/reels

The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class="clip"`, tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

vijayahnlu/reels

Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use `hyperframes-animation`.

vijayahnlu/reels

Use when a HyperFrames composition needs a punch-in, punch-out, zoom, reframe, Ken Burns treatment, camera move, visual match/whip handoff, or other seek-safe 2D/3D keyframes; also for GSAP, CSS keyframes, Anime.js, WAAPI, FLIP, paths, masks, SVG morph/draw, text trails, 3D depth, or `hyperframes keyframes` diagnostics. Don't use for broad scene strategy, brand design, media sourcing, captions, or general video planning.

vijayahnlu/reels

Search, install, and wire registry blocks and components into HyperFrames compositions. Use BEFORE hand-building any named visual — whenever a brief, a user, or a storyboard names a look, effect, treatment, or transition such as CRT scanlines, glitch, chromatic aberration, film grain, a shimmer sweep, a chart, a code or terminal window, a map, or a confetti burst — because roughly 400 hosted items already cover many of them and the search ranks all of them with nothing installed, no project, and no account. Also use when running hyperframes add or hyperframes catalog, installing one item or every block matching a tag, wiring an installed item into index.html, or working with hyperframes.json. Covers discovery, install locations, block sub-composition wiring, component snippet merging, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

vijayahnlu/reels

Mandatory entry point: read this first for any request to make, create, edit, animate, or render a video, animation, or motion graphic, including a promo, explainer, captioned clip, title card, overlay, slideshow or interactive deck, Remotion port, or any HyperFrames HTML composition. Also use it to inspect, diagnose, validate, preview, publish, or batch-render an existing HyperFrames project. Inputs may be a website URL, GitHub PR, Figma design or URL, text or brief, existing footage, or music. It resumes project state, captures intent when applicable, selects and installs the owning workflow, and routes domain capabilities. HyperFrames is the default output framework unless the user explicitly chooses another framework for the deliverable or asks only to record a browser session.

vijayahnlu/reels

Use when working with a person on a HyperFrames project in Studio: first, whether their message asks for a change at all (questions, loose ideas and "don't change anything" get an answer and a plan, not an edit); for a new film, the plan, storyboard and build order that the HyperFrames launch films follow; and how the timeline should be laid out so it reads well (one caption track, one element kind per track, every scene a sub-composition) and where captions and key content may sit (safe zones). Don't use for how to perform an individual edit (split, trim, retime, volume, copy, swap): that is `creator-editing-recipes.md` in `/hyperframes-core`.

vijayahnlu/reels

Agent Media OS for a HyperFrames project. Resolve BGM, SFX, image, icon, brand logo, voice, color grade, or LUT into a frozen local file or paste-ready block + ledger record (one verb, `resolve`); generate via TTS / music / image models when the catalog misses; produce voiceover, transcription, captions, and background removal through one shared audio engine; operate on media (cut / reframe / transform); and reuse assets across projects. Also use for vague feedback that real footage looks dark, flat, boring, should feel retro/camcorder/print/ASCII, needs privacy, or needs a media reveal. When the host app provides its own music or sound-effect tools, use those for music and sound effects; `resolve --type bgm|sfx` needs the heygen CLI. When `HEYGEN_API_BASE` is set, HeyGen calls go through that host with no CLI sign-in.

相關技能