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
Merge origin/claude/fuobe-parity-4 into o/dbs-d7
Claude52b09808a981
diff --cc docs/research/dbs-separation-7.mdindex 00000f07,7c2bbcdd..fc7301bb--- a/docs/research/dbs-separation-7.md+++ b/docs/research/dbs-separation-7.md@@@ -399,9 -428,11 +428,11 @@@ A "Clean up dialogue" preset in Split sA switch "Clean the voice first" in Transcribe (`TRANSCRIBE_STUDIO`, `studios.ts` L259), Captions (Video tools), Lipsync (`LIPSYNC_STUDIO`, L94), Genjutsu transcribe (`src/app/api/genjutsu/transcribe/route.ts`) and the Swap Studio transcript (`src/server/swap-studio.ts` L713). Open: DBS voice (chain `stem: "voice"`) before Qwen3-ASR, InfiniteTalk or LatentSync; after lipsync, `video-mux-audio` puts the `background` back. Cloud: ElevenLabs isolation before Scribe v2 or the lipsync model; the bed back from a SAM residual. Default on for video sources, off for audio-only speech (a guess until D4).+ *As built (D6):* a `voiceFirst` flag on any generation request (`src/lib/av/voice-first.ts` plans it, `src/server/voice-first.ts` expands it inside `createGenerations`, so every caller gets it: the Transcribe and Lipsync composers, Captions, Genjutsu's "Use the clip's words" and Character Swap Studio's transcript, each with a switch that shows its time on your GPU or its price in the cloud). Open: `oss-dbs-separate` (graph A, mono) → the run with chain `{ slot: "audio", stem: "voice" }`; a lip re-sync of a clip with sound also splits the clip and ends with `oss-mux` (video from the lip sync, `audio` = the clean voice, `audio2` = the clip's `background` at 0 dB), four steps in one batch, the mux first in the result. Cloud: `elevenlabs-voice-isolation` ($0.10/min) → the run, its one output taken whole; no bed after a cloud lip sync (`samAudioCloud` false), and the switch says so. No new graph. Default on when the speech comes with a video (Transcribe a video, Lipsync with a clip), off for a recording or a portrait + voice. Live on the CPU ComfyUI: an 11 s clip (a public-domain speech over three sine chords with tremolo and pink-noise bursts, H.264 + AAC) through POST /api/generations with `voiceFirst`: DBS-BSRNN 41 s (load included), then Qwen3-ASR 0.6B on the voice stem 68 s; the transcript was word-perfect, as it was without the switch (17 s) on this clip, so the gain is for D4 to measure on harder material. Lip sync with the put-back was not run here (InfiniteTalk needs a GPU); its mux is the one D2 verified.+### D7 · "Original sound" choice in the studios (P1)-Shorts (`shorts.ts` L694–764), Mixed Media (`mixed-media.ts` L709–747), Genjutsu (`genjutsu.ts` L1034), Remove object (`remove-object.ts` L632) and Character Swap Studio (`swap-studio-plan.ts` L540–549) get "Original sound: Everything / Music & effects only / Dialogue only / Lower the music". Open: graph A on the working clip, then the existing stream-copy mux with the chosen stem. Cloud: SAM "speech" then compose + merge; for "remove only this person's voice", `fal-ai/sam-audio/visual-separate` with the studio's SAM mask video (cloud only; the open engine has no per-person route). Faceless: "Use a clip's soundtrack as the bed" (DBS background → `oss-audio-loop` → `oss-mux`; cloud SAM residual → loop → compose).+Shorts (`shorts.ts` L694–764), Mixed Media (`mixed-media.ts` L709–747), Genjutsu (`genjutsu.ts` L1034), Remove object (`remove-object.ts` L632) and Character Swap Studio (`swap-studio-plan.ts` L540–549) get "Original sound: Everything / Music & effects only / Dialogue only / Lower the music". Open: graph A on the working clip, then the existing stream-copy mux with the chosen stem. Cloud: SAM "speech" then compose + merge; for "remove only this person's voice", `fal-ai/sam-audio/visual-separate` with the studio's SAM mask video (cloud only; the open engine has no per-person route). Faceless: "Use a clip's soundtrack as the bed" (DBS background → `oss-audio-loop` → `oss-mux`; cloud SAM residual → loop → compose). *As built:* the open half only (`samAudioCloud` false): `src/lib/av/original-sound.ts` (`soundBack`) adds graph A on the working clip (the selection's cut, the upload when it is the whole clip, Swap Studio's 24 fps copy) before each studio's own mux; Everything plans exactly as before, and the cloud offers Everything only and says the other choices run on your GPU. Studios whose maker keeps the sound itself (Mixed Media's per-frame graph, Genjutsu's H3 character swap and Wan Animate, single-piece erasers) get a cut, the split and a mux over their result when another choice is made. Music & effects only is suggested for Character Swap Studio, Genjutsu's Character swap and Remove object's person removal. "Remove only this person's voice" (SAM `visual-separate`) is not built. Faceless's clip bed: DBS `background` → `oss-audio-loop` (when the clip is shorter than the film) → `oss-mux` at −14 dB, on your GPU only. Verified on the CPU ComfyUI (BSRNN, mono) with a synthetic 20 s H.264 + AAC stereo clip (speech over music): a Shorts case (the 12 s selection cut, split, background muxed onto a stand-in restyled picture) and a Remove object case (the whole clip, Lower the music at −18 dB through `video-mux-audio`); both results' video packets hash the same as the picture they were given, voice + background add back to the source per channel within 3.1e-5, the new soundtrack correlates 0.999 with the stem (or voice + bed at −18 dB) it was made from (0.65 with the original for Music & effects only), and the splits ran at 0.35–0.4x real time warm (each mux about 2 s).### D8 · Canvas Split soundtrack node (P1)