The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Split soundtrack: the remix comes back as a plain audio output
Claude5ca7898b9ce1
diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjsindex 246fc93e..4624a16a 100644--- a/scripts/comfy/library.spec.mjs+++ b/scripts/comfy/library.spec.mjs@@ -3565,7 +3565,7 @@ export const SPEC = [musicDb: [b('5', 'volume')],effectsDb: [b('6', 'volume')],},- outputs: [{ node: '9', kind: 'audio', role: 'mix' }],+ outputs: [{ node: '9', kind: 'audio' }],defaults: { separationModel: 'DBS-BSRNN-DnR', channels: 'mono', voiceDb: 0, musicDb: 0, effectsDb: 0 },vramGb: 0,license: 'DBS weights Apache-2.0 (JusperLee; trained on DnR v2, CC BY 4.0); ComfyUI-DBS code MIT; vendored DBS code Apache-2.0 with MIT notices (BS-RoFormer, MSST, TIGER)',diff --git a/src/lib/comfy.ts b/src/lib/comfy.tsindex f380d0ec..fcd74300 100644--- a/src/lib/comfy.ts+++ b/src/lib/comfy.ts@@ -90,9 +90,7 @@ export interface ManifestOutput {| "matte"| "preview"| "master"- | "report"- /** originals (o/dbs-d9): a server-side remix of a split's stems (soundtrack-remix-dbs). */- | "mix";+ | "report";}export interface ManifestWorkflow {diff --git a/src/server/assist/studio-tools.ts b/src/server/assist/studio-tools.tsindex 8b2fe9a9..de4c39f5 100644--- a/src/server/assist/studio-tools.ts+++ b/src/server/assist/studio-tools.ts@@ -922,7 +922,7 @@ async function runSoundtrack(name: string, href: string, build: () => { body: AucostUsd: preview.costUsd,...(preview.estimate && !preview.demo && { takes: `${durationWords(preview.estimate)} on your GPU` }),demo: preview.demo || undefined,- note: "It runs in the background: check_generations on the result gives the output URLs (audio outputs carry meta.stem: voice, music, effects or background; a mix carries meta.role mix).",+ note: "It runs in the background: check_generations on the result gives the output URLs (a split's audio outputs carry meta.stem: voice, music, effects or background; a mix is the one audio output).",}),items: [{ id: "", role: "tool", text: `${name}: started${preview.estimate && !preview.demo ? ` (${durationWords(preview.estimate)})` : ""}`, href },diff --git a/src/server/providers/mock.ts b/src/server/providers/mock.tsindex fac6db4a..0c07e815 100644--- a/src/server/providers/mock.ts+++ b/src/server/providers/mock.ts@@ -295,7 +295,7 @@ function demoOutputs(op: Operation | undefined, kind: MediaKind, prompt: string,case "separate-audio": {const stem = (name: string, wav: Buffer): DemoOutput => ({ url: toDataUri(wav, "audio/wav"), kind: "audio", contentType: "audio/wav", meta: { stem: name, demo: true } });// A split with levels (graph C): one mix of the stems.- if (meta.remix) return [{ url: toDataUri(demoWav(3, [220, 392], 3), "audio/wav"), kind: "audio", contentType: "audio/wav", meta: { role: "mix", demo: true } }];+ if (meta.remix) return [{ url: toDataUri(demoWav(3, [220, 392], 3), "audio/wav"), kind: "audio", contentType: "audio/wav", meta: { demo: true } }];// A dialogue / music / effects split (DBS) returns those three and the music-and-effects bed, voice first.const stems: DemoOutput[] = meta.threeStems? [stem("voice", demoWav(3, [220, 330], 3)), stem("music", demoWav(3, [262, 392])), stem("effects", demoWav(3, [90, 140], 7)), stem("background", demoWav(3, [110, 165]))]diff --git a/tests/assist-soundtrack-tools.test.ts b/tests/assist-soundtrack-tools.test.tsindex d76987ce..bf70df46 100644--- a/tests/assist-soundtrack-tools.test.ts+++ b/tests/assist-soundtrack-tools.test.ts@@ -150,7 +150,7 @@ describe("graph C runs for a remix (soundtrack-remix-dbs)", () => {it("is in the manifest, validated, with its pack and the four DBS files on the GPU pre-flight's index", () => {const manifest = JSON.parse(fs.readFileSync(path.join(process.cwd(), "workflows/comfyui/manifest.json"), "utf8"));const w = manifest.workflows.find((x: { id: string }) => x.id === "soundtrack-remix-dbs");- expect(w).toMatchObject({ capability: "separate-audio", validated: true, outputs: [{ node: "9", kind: "audio", role: "mix" }] });+ expect(w).toMatchObject({ capability: "separate-audio", validated: true, outputs: [{ node: "9", kind: "audio" }] });const reqs = JSON.parse(fs.readFileSync(path.join(process.cwd(), "workflows/comfyui/requirements.json"), "utf8"));const r = reqs.workflows?.["soundtrack-remix-dbs"] ?? reqs["soundtrack-remix-dbs"];expect(r.packs).toEqual({ "ComfyUI-DBS": ["DBSLoader", "DBSSeparate"] });@@ -254,7 +254,7 @@ describe("split_soundtrack and remove_dialogue as tools", () => {expect(g.request.params?.extra).toMatchObject({ remix: true, voiceDb: 0, musicDb: -12, effectsDb: -100 });expect(g.outputs).toHaveLength(1);expect(g.outputs[0]).toMatchObject({ kind: "audio" });- expect(g.outputs[0].meta?.role).toBe("mix");+ expect(g.outputs[0].meta?.stem).toBeUndefined();}, 30_000);it("runs Remove dialogue as the page does: the split, then the mux with the background stem", async () => {diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.jsonindex 258ee07d..2f26be7b 100644--- a/workflows/comfyui/manifest.json+++ b/workflows/comfyui/manifest.json@@ -16586,8 +16586,7 @@"outputs": [{"node": "9",- "kind": "audio",- "role": "mix"+ "kind": "audio"}],"defaults": {