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
Research: Clean the voice first as built, with a live CPU run of DBS before Qwen3-ASR
Claude935646a76ef5
diff --git a/docs/research/dbs-separation-7.md b/docs/research/dbs-separation-7.mdindex ad7cb2c2..a367e584 100644--- a/docs/research/dbs-separation-7.md+++ b/docs/research/dbs-separation-7.md@@ -399,6 +399,8 @@ A "Clean up dialogue" preset in Split soundtrack plus a direct entry in the AudiA 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).