Communitygithub.com

OliviaPp8/minara-video-skills

根據 Minara 影片的逐秒腳本,生成背景音樂與同步音效。將每個場景的情緒與螢幕動作(點擊、打字、成功、通知、轉場)轉換為提示清單,然後在本地端合成 BGM 與 SFX(使用 numpy 合成,無需外部服務),並可選擇在配音時自動降低音量。

minara-video-skills 是什麼?

此技能專為 Minara 影片設計,能從逐秒腳本自動生成背景音樂(BGM)與同步音效(SFX)。它會根據腳本中的每個場景情緒與螢幕動作(例如點擊、打字、成功提示、通知、轉場)產生一個音樂提示清單(`cues.json`),再透過純本地的 numpy 合成引擎渲染音頻,完全不需要呼叫外部 API 或下載任何音軌,因此既快速又零成本。輸出為 48 kHz 立體聲的 `.wav` 檔案,包含純 BGM、與配音混合的預覽音檔,以及自動閃避配音的版本。支援的語音指令包含「/minara-music」、「配樂」、「生成音樂」、「BGM」、「按腳本生成音樂」、「加音效」等,適用於任何 `minara-video` 或 `minara-guide-video` 專案。操作流程上,技能會先輸出提示清單供使用者審閱與編輯,確認後再執行渲染,確保最終結果符合創意需求。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/OliviaPp8/minara-video-skills/tree/HEAD/skills/minara-music

在你喜歡的 AI 中提問

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

說明文件

/minara-music — 從腳本生成音樂與音效

將影片的逐秒腳本轉換為音樂提示清單 cues.json,然後在本地端合成 BGM 與畫面同步的音效。合成過程完全使用本機 numpy,輸出結果是確定性的(相同的提示與種子總是產生相同的音訊)。它不呼叫任何外部服務,且完全免費。

來源:Minara V2 宣傳影片的配樂方法,泛化為可重複使用的腳本;examples/v2-launch.json 即為該影片的提示清單。

工作流程(依序)

  1. 讀取腳本:從 minara-video(或故事板/配音時間表)取得逐秒腳本。如果腳本中有「聲音氛圍」或「音樂」欄位,請遵循它們;如果沒有,則根據畫面情緒自行判斷。
  2. 撰寫提示清單:在專案的 audio-src/cues.json 中寫入:
    • duration(= 最終影片長度)、bpm(預設 120)、key(預設 A minor;明亮/慶祝的樂曲可使用 C major)、seed。
    • sections:將腳本切割成音樂段落,每個段落選取一個 energy,並使用 note 描述對應的畫面(便於交叉參考)。
    • sfx:腳本中的每個可見動作(點擊、打字、訂單完成、通知彈出、轉場、鎖定落地)都對應一個音效,時間點對齊腳本中指定的秒數。
  3. 先向操作者顯示提示清單;不要立即渲染:以 markdown 表格列出「時間範圍 / 能量 / 對應畫面」以及「音效時間 / 類型 / 對應動作」,並等待操作者說「好」再進行渲染。操作者編輯的是提示清單,而非程式碼。
  4. 渲染:
    python3 ~/.claude/skills/minara-music/scripts/make_music.py <project>/audio-src/cues.json -o <project>/assets [--vo <project>/assets/vo.wav]
    
  5. 自我檢查:腳本會印出每個段落;然後測量每個段落的音量,確認高潮部分最大聲,轉折/結尾段落明顯降低,且閃避功能正常運作。如果聽覺上有問題(太雜亂、某個音效搶走焦點),請調整 level / gain 並重新渲染;每次渲染只需數秒。
  6. 交付:提供 bgm.wav(或 bgm-duck.wav)的路徑,並使用 open -R 反白顯示 preview-mix.wav 以便操作者聆聽。在 HyperFrames 中,將其作為音軌加入,配音則放在另一條獨立音軌。

輸出

檔案內容
bgm.wav音樂 + 音效,48 kHz 立體聲,峰值 -1 dBFS,開頭淡入 0.4 秒,結尾淡出 3.2 秒
bgm-duck.wav當有配音時產生:人聲出現時音樂降低 duck_db(預設 -8 dB);音效不會被閃避
preview-mix.wav當有配音時產生:音樂 + 配音混合,僅供聆聽預覽,非最終影片使用

能量段落類型

能量聲音用途
silent無音樂需要完全靜音的暫停
intro低沉 drone + 軟 pad開場、logo、資料匯聚
lightPad + 輕柔琶音 + 稀疏節拍手機互動、輕量級功能展示
build加入貝斯與每拍大鼓,段落結尾自動加入 riser逐漸堆疊,引導至關鍵時刻
full完整鼓組 + 拍手 + 貝斯 + 琶音連續展示核心功能(回測、上線、自動化)
breakdown移除鼓與貝斯,僅留 pad 與柔和琶音;最後一小節大鼓回歸場景轉換、關於安全性/隱私的章節,需要「呼吸空間」
climax最飽滿:完整鼓組 + 主旋律 + 段落開頭的 crash;若前一段落非 build 則自動加入 riser產品名稱/上市宣言出現
outro在主和弦上解決 + 品牌鈴聲,與整個混音一起淡出結尾卡、行動呼籲

每個段落可設定 "level": 0.5–1.3 來微調音量。和弦遵循全域小節(小調 i–VI–III–VII,大調 I–V–vi–IV),因此不會跨段落中斷。

音效類型(sfx)

類型聲音典型動作可選參數
tap短促點擊按鈕點擊、選取gain
typing連續打字聲在輸入欄位中打字chars、cps(字元/秒,對應畫面上的打字速度)
success兩個上升的鈴聲訂單成交、策略執行中gain
notify三個音符的提示音通知或提醒彈出gain
bell單一鈴聲頭像/logo 出現note(MIDI,預設 81)
blips逐步上升的短音回測進度、資料載入count、step(秒)、note
sparkle閃爍顆粒 + 氣息聲粒子匯聚、開場dur
riser上升噪聲手動加入的轉場堆疊dur
whoosh反向掃掠視窗收合、推/拉轉場dur
thud低沉的鎖定聲鎖定、確認、重落地gain
crash鈸額外重音gain

每個音效都可設定 gain 來調整音量。

規則

  • 音效僅跟隨可見動作:如果畫面上沒有對應的動作,就不要加入音效,等同於「不要隨便加入文字」。
  • 從腳本複製時間點;不要自行估計:音效的 t 使用逐秒腳本/動畫時間軸中的實際秒數;打字的 cps 使用動畫中的打字速度。
  • 如果腳本的長度或順序改變,請先更新 cues.json 再重新渲染;不要手動拉伸音訊。
  • 不要使用外部 AI 音樂服務或從網路下載的音樂;當需要商業授權的音樂時,由操作者提供檔案。

Individual skills in this repo

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

OliviaPp8/minara-video-skills

Create Minara product guide/tutorial videos from screen recordings supplied by the operator. Use for /minara-guide-video, “给录屏加字幕配音”, retiming a new recording cut, building a timeline approval player, or correcting caption/product meaning. Drives caption-recording from source analysis through pre-render approval, final verification, and local delivery. Not for synthetic HyperFrames marketing videos.

OliviaPp8/minara-video-skills

Make Minara use case / beginner tutorial videos (mobile App or desktop), rebuilding the product UI in HyperFrames code and walking through the real user path step by step. Unlike minara-video (marketing demo, UI redesign allowed), this skill requires a faithful UI: copy, layout, components, and interaction paths all follow the product frontend code and screen recordings. Triggers: "use case 视频", "教程视频", "操作演示", "新手教程", "按 App 界面做一个视频"; also makes covers for these videos ("封面", "cover", "缩略图").

OliviaPp8/minara-video-skills

Write Minara video scripts before any animation work — launch / promo films, single-scene supplements, use case tutorials. Turns a brief, product screenshots, frontend code, Figma frames or a feature note into an English-only script doc built around a keyframe sheet; each keyframe has a still image (rendered from UI code, exported from Figma, or AIGC-generated from screenshots), a picture description, the voiceover line, on-screen text (花字) with style, timing and duration, and the BGM style / sound cues. Also covers what each scene must land, user flow + UI copy, voiceover word budget and open questions, in a calm, neutral, natural voice. Then hands off to minara-video, minara-usecase-video and minara-music. Use for /minara-videoscript, "写视频脚本", "视频脚本", "分镜脚本", "关键帧", "关键帧脚本", "花字", "补充脚本", "旁白稿", "video script", "voiceover script", "keyframes".

OliviaPp8/minara-video-skills

The operator's standard workflow for making Minara marketing / launch / demo videos. Built on the hyperframes skill, with a stricter process - confirm style → high-level storyboard → copy → build each scene separately → confirm a per-second script → iterate on a local test page → render only once the user is satisfied.

相關技能