Skip to content

Turn one topic into a finished Vox-style paper-collage explainer/ad video — automated end to end on Atlas Cloud + ffmpeg. An agent skill.

audio: quieter default music (0.9->0.6) + VO boost (x1.25) + per-project mix knob

Alisa0808ea16305dd3e4
diff --git a/SKILL.md b/SKILL.md
index 627bcbf..dbd5e1e 100644
--- a/SKILL.md
+++ b/SKILL.md
@@ -142,6 +142,7 @@ Add a `shots` array to each beat (see schema). Give each shot its own short `sce
"constraints": "strict", // strict = defect guards on | loose = let AI explore + re-roll
"voice": {"voice_id": "leo", "language": "en", "speed": 1.0},
"music": "epic cinematic orchestral, instrumental, no vocals",
+ "mix": {"music": 0.6, "voice": 1.25}, // audio balance — optional; these are the defaults (BGM ducks under the VO)
"watermark": "Made with Atlas Cloud",
"beats": [
{
diff --git a/SKILL.zh.md b/SKILL.zh.md
index e22f638..31d5154 100644
--- a/SKILL.zh.md
+++ b/SKILL.zh.md
@@ -112,6 +112,7 @@ Vox 拼贴的**样子**和**动效**是两件事、两步:
"constraints": "strict", // strict = 开防缺陷护栏 | loose = 放开探索 + 抽卡
"voice": {"voice_id": "leo", "language": "en", "speed": 1.0},
"music": "epic cinematic orchestral, instrumental, no vocals",
+ "mix": {"music": 0.6, "voice": 1.25}, // 音量平衡(可选;这是默认值,音乐在人声下自动让路)
"watermark": "Made with Atlas Cloud",
"beats": [
{
diff --git a/scripts/assemble.py b/scripts/assemble.py
index eedf068..8044a25 100644
--- a/scripts/assemble.py
+++ b/scripts/assemble.py
@@ -48,6 +48,9 @@ def run(project_dir):
beats = doc["beats"]
W, H = RES.get(doc.get("aspect", "16:9"), (1920, 1080))
wm_text = doc.get("watermark", WATERMARK)
+ mix = doc.get("mix", {}) # per-project audio balance (optional)
+ music_vol = float(mix.get("music", 0.6)) # BGM level (was a fixed 0.9 — lowered so VO leads)
+ voice_vol = float(mix.get("voice", 1.25)) # narration boost before the duck + final mix
tmp = os.path.join(project_dir, "_seg")
os.makedirs(tmp, exist_ok=True)
@@ -138,10 +141,10 @@ def run(project_dir):
nlabels.append(f"[n{i}]")
# pad the narration mix to the FULL duration, else sidechaincompress follows the (shorter)
# narration length and -shortest clips the tail (e.g. a silent payoff/ending beat).
- chain.append(f"{''.join(nlabels)}amix=inputs={nb}:normalize=0:duration=longest,apad,atrim=0:{total}[narrmix]")
+ chain.append(f"{''.join(nlabels)}amix=inputs={nb}:normalize=0:duration=longest,volume={voice_vol},apad,atrim=0:{total}[narrmix]")
# a filter-output label can only be consumed once -> split narration in two
chain.append("[narrmix]asplit=2[narrA][narrB]")
- chain.append(f"[{bgm_idx}:a]atrim=0:{total},volume=0.9,afade=t=out:st={max(total-2,0):.2f}:d=2[bgt]")
+ chain.append(f"[{bgm_idx}:a]atrim=0:{total},volume={music_vol},afade=t=out:st={max(total-2,0):.2f}:d=2[bgt]")
chain.append("[bgt][narrA]sidechaincompress=threshold=0.02:ratio=12:attack=5:release=350[bgd]")
chain.append(f"[narrB][bgd]amix=inputs=2:normalize=0:duration=longest,volume=1.4,atrim=0:{total}[a]")
filt = ";".join(chain)
diff --git a/vox-director.skill b/vox-director.skill
index 9436322..6db3421 100644
Binary files a/vox-director.skill and b/vox-director.skill differ