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
Translate & dub: review fixes: the cloud says DBS runs on your GPU, the default split follows Settings, a board row
Claudeaa4099f8995c
diff --git a/src/components/dub/dub-studio.tsx b/src/components/dub/dub-studio.tsxindex e01ff278..f6e5908f 100644--- a/src/components/dub/dub-studio.tsx+++ b/src/components/dub/dub-studio.tsx@@ -24,6 +24,7 @@ import { cueProblems } from "@/lib/av/cue-edit";import {BACKGROUND_DB,crowdedLines,+ DBS_OPEN_ONLY_NOTE,DEFAULT_VOICE_SPLIT,dubResult,languageStage,@@ -223,7 +224,8 @@ function NewDub({ onStarted }: { onStarted: (id: string) => void }) {)}{!oneShot && engine === "open" && (<div className="mt-3 flex flex-col gap-1.5 sm:flex-row sm:items-start">- <Label htmlFor="dub-split" className="text-[13px] sm:w-32 sm:pt-2">+ {/* A label points at the Select; with one split left, the name beside it is plain text. */}+ <Label htmlFor={splits.length > 1 ? "dub-split" : undefined} className="text-[13px] sm:w-32 sm:pt-2">Voice split</Label><div className="min-w-0 flex-1">@@ -241,7 +243,7 @@ function NewDub({ onStarted }: { onStarted: (id: string) => void }) {</SelectContent></Select>) : (- <p id="dub-split" className="pt-1.5 text-[13px] font-medium">+ <p className="pt-1.5 text-[13px] font-medium">{VOICE_SPLITS[split].name}</p>)}@@ -250,7 +252,12 @@ function NewDub({ onStarted }: { onStarted: (id: string) => void }) {</div>)}{/* The cloud splits the music and effects with Demucs (no SAM Audio on the cloud: the owner's call). */}- {!oneShot && engine === "cloud" && <p className="mt-3 text-[12px] leading-snug text-muted-foreground">Music and effects: Demucs. {MUSIC_MODEL_NOTE}.</p>}+ {!oneShot && engine === "cloud" && (+ <div className="mt-3 space-y-1 text-[12px] leading-snug text-muted-foreground">+ <p>Music and effects: Demucs. {MUSIC_MODEL_NOTE}.</p>+ <p>{DBS_OPEN_ONLY_NOTE}.</p>+ </div>+ )}</Panel><Panel title="Languages"><div className="space-y-3">diff --git a/src/lib/av/dub.ts b/src/lib/av/dub.tsindex c69cd977..462d476f 100644--- a/src/lib/av/dub.ts+++ b/src/lib/av/dub.ts@@ -61,15 +61,18 @@ export const DUB_STEP_MODELS = {open: { stems: "oss-voice-separate", translate: "oss-text-llm", speech: "oss-chatterbox", timeline: "oss-audio-timeline", lips: "oss-infinitetalk-v2v", mux: "oss-mux" },} as const;+/** What a music separation model (MelBand RoFormer, Demucs) does to a film's soundtrack, said beside it. */+export const MUSIC_MODEL_NOTE = "Music model: some sound effects may be lowered, and singing may be replaced";++/** The cloud dub's line about keeping the whole soundtrack: DBS isn't hosted, so it runs on your GPU only. */+export const DBS_OPEN_ONLY_NOTE = "Keeping the music and sound effects of the original (DBS) runs on your GPU (open source)";+/*** The open engine's voice split (the dub's first step), the "Voice split" setting. DBS was trained for film-style* dialogue, music and effects, so the background keeps the score, the sound effects and any singing; MelBand RoFormer* is a vocals model (singing goes with the voice and is replaced). MelBand stays the default until the separation* evaluation (DBS D4) says otherwise. Both return the same stems and cues, so nothing after the split changes.*/-/** What a music separation model (MelBand RoFormer, Demucs) does to a film's soundtrack, said beside it. */-export const MUSIC_MODEL_NOTE = "Music model: some sound effects may be lowered, and singing may be replaced";-export const VOICE_SPLITS = {melband: { modelId: "oss-voice-separate", name: "MelBand RoFormer", note: MUSIC_MODEL_NOTE },dbs: { modelId: "oss-dbs-voice-separate", name: "DBS", note: "Keeps the music and sound effects of the original" },@@ -78,9 +81,20 @@ export type VoiceSplit = keyof typeof VOICE_SPLITS;export const VOICE_SPLIT_IDS = Object.keys(VOICE_SPLITS) as VoiceSplit[];export const DEFAULT_VOICE_SPLIT: VoiceSplit = "melband";-/** The open dub's first-step model for a voice split (the default's when none or an unknown one is named). */-export function voiceSplitModel(split?: string): string {- return VOICE_SPLITS[split && split in VOICE_SPLITS ? (split as VoiceSplit) : DEFAULT_VOICE_SPLIT].modelId;+/**+ * The voice split a dub runs: the one named, else the default when its model is offered (`on`, Settings → Models &+ * licences), else the next split that is, else the default (its run then refuses, naming the switch). The studio's+ * picker drops a split that is off the same way, so the server's default and the studio's agree.+ */+export function pickVoiceSplit(split?: string, on?: (modelId: string) => boolean): VoiceSplit {+ if (split && split in VOICE_SPLITS) return split as VoiceSplit;+ const order = [DEFAULT_VOICE_SPLIT, ...VOICE_SPLIT_IDS.filter((k) => k !== DEFAULT_VOICE_SPLIT)];+ return (on && order.find((k) => on(VOICE_SPLITS[k].modelId))) || DEFAULT_VOICE_SPLIT;+}++/** The open dub's first-step model for a voice split (pickVoiceSplit's when none or an unknown one is named). */+export function voiceSplitModel(split?: string, on?: (modelId: string) => boolean): string {+ return VOICE_SPLITS[pickVoiceSplit(split, on)].modelId;}/** How far the background (music and effects) sits under its original level once the new voice is on, both engines. */diff --git a/src/server/assist/studio-routes.ts b/src/server/assist/studio-routes.tsindex 18bdcf0f..0dad3145 100644--- a/src/server/assist/studio-routes.ts+++ b/src/server/assist/studio-routes.ts@@ -17,7 +17,7 @@ import { clampLayers, decomposeCost, defaultLayers, TOOL_MODELS, TOOL_LABELS, tyimport { createBatch, estimateBatch, listCreatives, type BatchInput } from "../ads";import { createManualBrand, createProduct, DuplicateProductError, getBrand, getProduct, heuristicManualKit, listProducts, updateProduct } from "../brand";import { createPipeline, providerNames, type PipelineStep } from "../chains";-import { createDubSession, previewDub, videoLength, type CreateDubInput } from "../dub";+import { createDubSession, dubVoiceSplit, previewDub, videoLength, type CreateDubInput } from "../dub";import { createChannel, createEpisode, estimateEpisode, listChannels } from "../faceless";import { chooseRoute } from "../generations";import { createProject, deleteProject, FileUrl, jobSteps, startJob } from "../layers";@@ -252,7 +252,8 @@ const ONE_SHOT_NAMES: Record<OneShotModel, string> = { "heygen-translate": "HeyG*/function prepareProblem(input: Pick<CreateDubInput, "engine" | "video" | "source" | "targets" | "voiceSplit">): string | null {const modes: { label: string; needs: string; demo: boolean }[] = [];- for (const s of prepareSteps({ engine: input.engine, video: input.video, source: input.source, targets: input.targets, voiceSplit: input.voiceSplit })) {+ const voiceSplit = dubVoiceSplit({ engine: input.engine, mode: "steps", voiceSplit: input.voiceSplit });+ for (const s of prepareSteps({ engine: input.engine, video: input.video, source: input.source, targets: input.targets, voiceSplit })) {const m = getModel(s.request.modelId);if (!m || !s.request.op) continue;const label = s.request.step?.label ?? s.key;diff --git a/src/server/assist/studio-tools.ts b/src/server/assist/studio-tools.tsindex 7638c98b..93d03b40 100644--- a/src/server/assist/studio-tools.ts+++ b/src/server/assist/studio-tools.ts@@ -14,6 +14,7 @@ import { TOOL_MODELS } from "@/lib/layers";import { createPipeline, type PipelineStep } from "../chains";import { db } from "../db";import { chooseRoute, ConnectComfyError, createGenerations, outputKind, previewChained } from "../generations";+import { isOffered } from "../model-access";import { engineMode } from "../settings";import { fileUrl, saveFile } from "../storage";import { defineTool, type JobPlace, type ToolContext, type ToolOutcome } from "./define";@@ -255,7 +256,7 @@ function dubSteps(i: DubToolInput, ctx: ToolContext): PipelineStep[] {return labelled(langs.map((l, k) => ({ key: `dub${k}`, label: `Dub · ${l}`, request: req({ modelId: "heygen-translate", op: "dub", inputs: { video: i.video }, params: { targetLanguage: l, sourceLanguage: i.source_language } }) })));}const steps: (PipelineStep & { label: string })[] = [- { key: "stems", label: "Voice and background", request: req({ modelId: voiceSplitModel(i.voice_split), op: "separate-audio", inputs: { video: i.video } }) },+ { key: "stems", label: "Voice and background", request: req({ modelId: voiceSplitModel(i.voice_split, (id) => isOffered(id, "open")), op: "separate-audio", inputs: { video: i.video } }) },{ key: "words", label: "Transcript", request: req({ modelId: "oss-qwen3-asr", op: "transcribe", params: { sourceLanguage: i.source_language } }), after: "stems", chain: [{ slot: "audio", stem: "voice" }] },];langs.forEach((l, k) => {diff --git a/src/server/dub.ts b/src/server/dub.tsindex 2c728b33..6eb7cc68 100644--- a/src/server/dub.ts+++ b/src/server/dub.ts@@ -6,6 +6,7 @@ import {DUB_FEATURE,languageStage,oneShotRequests,+ pickVoiceSplit,prepareMedia,prepareSteps,reviewCues,@@ -23,6 +24,7 @@ import type { Engine, Generation } from "@/lib/catalog/types";import { createPipeline } from "./chains";import { db } from "./db";import { cancelGeneration, createGenerations, getGeneration, previewChained } from "./generations";+import { isOffered } from "./model-access";import { storedMedia } from "./storage";/**@@ -110,11 +112,20 @@ export function videoLength(ref: string, measured?: number): number | undefinedreturn measured && measured > 0 ? measured : undefined;}+/**+ * The voice split an open step dub runs: the one asked for, else the default as Settings → Models & licences leaves it+ * (MelBand RoFormer, or DBS when MelBand is switched off), as the studio's picker does. None on the cloud or one shot.+ */+export function dubVoiceSplit(input: Pick<CreateDubInput, "engine" | "mode" | "voiceSplit">): VoiceSplit | undefined {+ return input.engine === "open" && input.mode === "steps" ? pickVoiceSplit(input.voiceSplit, (id) => isOffered(id, "open")) : undefined;+}+export function createDubSession(input: CreateDubInput): DubSessionView {if (input.mode === "oneshot" && input.engine === "open") throw new Error("One-shot dubbing is a cloud service — the open engine dubs step by step");const now = Date.now();const title = input.title?.trim().slice(0, 120) || "Dubbed video";const duration = videoLength(input.video, input.duration);+ const voiceSplit = dubVoiceSplit(input);const base: DubSession = {id: nanoid(10),title,@@ -124,7 +135,7 @@ export function createDubSession(input: CreateDubInput): DubSessionView {source: input.source || "auto",targets: [...new Set(input.targets)],...(duration && { duration }),- ...(input.engine === "open" && input.mode === "steps" && input.voiceSplit && { voiceSplit: input.voiceSplit }),+ ...(voiceSplit && { voiceSplit }),batchId: nanoid(10),createdAt: now,updatedAt: now,@@ -145,7 +156,7 @@ export function createDubSession(input: CreateDubInput): DubSessionView {}return dubView(save({ ...base, model, oneshot }));}- const steps = prepareSteps({ engine: input.engine, video: input.video, source: input.source, targets: base.targets, title, voiceSplit: input.voiceSplit });+ const steps = prepareSteps({ engine: input.engine, video: input.video, source: input.source, targets: base.targets, title, voiceSplit });const run = createPipeline(steps, { batchId: base.batchId });const prepare = Object.fromEntries(Object.entries(run.byKey).map(([k, g]) => [k, g.id]));return dubView(save({ ...base, prepare }));@@ -218,7 +229,7 @@ export function previewDub(input: CreateDubInput): DubPrice {const jobs = oneShotRequests({ model: input.model ?? "heygen-translate", video: input.video, source: input.source, targets });return priceSteps(input.engine, jobs.map((j, i) => ({ key: `dub:${i}`, request: j.request })), seconds);}- return priceSteps(input.engine, prepareSteps({ engine: input.engine, video: input.video, source: input.source, targets, voiceSplit: input.voiceSplit }), seconds);+ return priceSteps(input.engine, prepareSteps({ engine: input.engine, video: input.video, source: input.source, targets, voiceSplit: dubVoiceSplit(input) }), seconds);}/** What voicing one language would cost (POST /api/dub/[id]/voice?preview=1). */diff --git a/src/server/gpu/tools.ts b/src/server/gpu/tools.tsindex 6f19d618..bd861c98 100644--- a/src/server/gpu/tools.ts+++ b/src/server/gpu/tools.ts@@ -1,4 +1,5 @@import "server-only";+import { DUB_STEP_MODELS } from "@/lib/av/dub";import { SPLIT_MODEL } from "@/lib/av/split";import { REMOVE_DIALOGUE_MODELS } from "@/lib/av/remove-dialogue";import { getModel, getPreset, MODELS, modelsFor, PRESETS } from "@/lib/catalog";@@ -182,6 +183,21 @@ export const STUDIO_ROWS: StudioRowDef[] = [{ href: "/audio/transcribe", label: "Transcribe", group: "Audio", config: S.TRANSCRIBE_STUDIO },// DBS soundtrack separation (D1): dialogue, music and effects.{ href: "/audio/split", label: "Split soundtrack", group: "Audio", steps: [{ modelId: SPLIT_MODEL, op: "separate-audio" }] },+ // Translate & dub on the open engine: the voice split with its transcript (the default split, MelBand RoFormer; DBS+ // needs Split soundtrack's pack and weights), the cloned voice, its timeline, lip sync and the mux. The translation+ // runs on the local text model, not a ComfyUI graph.+ {+ href: "/audio/translate",+ label: "Translate & dub",+ group: "Audio",+ steps: [+ { modelId: DUB_STEP_MODELS.open.stems, op: "separate-audio" },+ { modelId: DUB_STEP_MODELS.open.speech, op: "tts" },+ { modelId: DUB_STEP_MODELS.open.timeline, op: "timeline" },+ { modelId: DUB_STEP_MODELS.open.lips, op: "lipsync" },+ { modelId: DUB_STEP_MODELS.open.mux, op: "mux" },+ ],+ },{ href: "/audio/sfx", label: "Sound effects", group: "Audio", config: S.SFX_STUDIO },{ href: "/audio/music", label: "Music", group: "Audio", config: S.MUSIC_STUDIO },{ href: "/audio/video", label: "Sound for video", group: "Audio", config: S.FOLEY_STUDIO },diff --git a/tests/assist-context.test.ts b/tests/assist-context.test.tsindex 285c5c6d..dfd7631f 100644--- a/tests/assist-context.test.ts+++ b/tests/assist-context.test.ts@@ -16,6 +16,7 @@ const { setSetting } = await import("@/server/settings");const agent = await import("@/server/assist/agent");const tools = await import("@/server/assist/tools");const studio = await import("@/server/assist/studio-tools");+const { changeAccess } = await import("@/server/model-access");const memory = await import("@/server/assist/memory");const projects = await import("@/server/assist/projects");const { handleMcp } = await import("@/server/mcp");@@ -280,6 +281,13 @@ describe("studio tools", () => {const withDbs = studio.fallbackSteps.dub({ video, languages: ["Spanish", "German"], voice_split: "dbs" }, { engine: "open" });expect(withDbs[0].request.modelId).toBe("oss-dbs-voice-separate");expect(withDbs.slice(1)).toEqual(steps.slice(1));+ // With MelBand RoFormer switched off in Settings → Models & licences, a plan that names no split uses DBS.+ changeAccess([{ kind: "model", id: "oss-voice-separate", on: false }]);+ try {+ expect(studio.fallbackSteps.dub({ video, languages: ["Spanish"] }, { engine: "open" })[0].request.modelId).toBe("oss-dbs-voice-separate");+ } finally {+ changeAccess([{ kind: "reset" }]);+ }const noLips = studio.fallbackSteps.dub({ video, languages: ["French"], lipsync: false }, { engine: "open" });expect(noLips.map((s) => s.request.op)).toEqual(["separate-audio", "transcribe", "translate", "tts", "mux"]);// Cloud: one HeyGen job per language.diff --git a/tests/assist-studio-routes.test.ts b/tests/assist-studio-routes.test.tsindex 4283fed9..dfc6c5c6 100644--- a/tests/assist-studio-routes.test.ts+++ b/tests/assist-studio-routes.test.ts@@ -23,6 +23,7 @@ const gens = await import("@/server/generations");const layers = await import("@/server/layers");const shorts = await import("@/server/shorts");const dub = await import("@/server/dub");+const { changeAccess } = await import("@/server/model-access");const faceless = await import("@/server/faceless");const ads = await import("@/server/ads");const brand = await import("@/server/brand");@@ -246,6 +247,18 @@ describe("Translate & dub", () => {expect([bad.status, (await bad.json()).error]).toEqual([400, "Check the dub settings"]);});+ it("with MelBand RoFormer switched off, dub_video without a voice split plans and runs DBS (not a run that would refuse)", async () => {+ changeAccess([{ kind: "model", id: "oss-voice-separate", on: false }]);+ try {+ const b = body(await run("dub_video", { video: clip, languages: ["Spanish"] }, "open"));+ const s = dub.getDubSession(b.dub)!;+ expect(s).toMatchObject({ engine: "open", mode: "steps", voiceSplit: "dbs" });+ expect(gen(s.prepare!.stems)).toMatchObject({ modelId: "oss-dbs-voice-separate", op: "separate-audio", provider: "mock" });+ } finally {+ changeAccess([{ kind: "reset" }]);+ }+ });+it("dubs in one go on the cloud when asked, without lip sync", async () => {const b = body(await run("dub_video", { video: clip, languages: ["French"], review: false, lipsync: false }));const s = dub.getDubSession(b.dub)!;diff --git a/tests/av-dub.test.ts b/tests/av-dub.test.tsindex d2bb21d4..feb32150 100644--- a/tests/av-dub.test.ts+++ b/tests/av-dub.test.ts@@ -7,6 +7,7 @@ import { cueReducer, cueProblems, formatCueTime, normalizeCues, parseCueTime } fimport {BLANK_FRAME,crowdedLines,+ DBS_OPEN_ONLY_NOTE,DEFAULT_VOICE_SPLIT,DUB_STEP_MODELS,linearGain,@@ -15,6 +16,7 @@ import {MUSIC_MODEL_NOTE,OPTIONAL_PREPARE,oneShotRequests,+ pickVoiceSplit,PHRASE_MAX,prepareMedia,prepareSteps,@@ -43,6 +45,9 @@ process.env.OLLAMA_URL = "http://127.0.0.1:9";const { setSetting } = await import("@/server/settings");const gens = await import("@/server/generations");const dub = await import("@/server/dub");+const { changeAccess } = await import("@/server/model-access");+const { STUDIO_ROWS, studioTool, toolFor } = await import("@/server/gpu/tools");+const { loadIndex } = await import("@/server/gpu/index-file");const { saveFile } = await import("@/server/storage");beforeAll(() => setSetting("demoMode", "auto"));@@ -142,6 +147,21 @@ describe("dub pipeline DAGs", () => {expect(VOICE_SPLITS.melband.note).toBe(MUSIC_MODEL_NOTE);});+ it("the default voice split follows Settings → Models & licences: the next split that is on, else MelBand", () => {+ const off = (...ids: string[]) => (id: string) => !ids.includes(id);+ expect(pickVoiceSplit(undefined, off())).toBe("melband");+ expect(pickVoiceSplit(undefined, off("oss-voice-separate"))).toBe("dbs");+ expect(voiceSplitModel(undefined, off("oss-voice-separate"))).toBe("oss-dbs-voice-separate");+ expect(pickVoiceSplit("nope", off("oss-voice-separate"))).toBe("dbs");+ // Both off: the default, whose run then refuses, naming the switch.+ expect(pickVoiceSplit(undefined, off("oss-voice-separate", "oss-dbs-voice-separate"))).toBe("melband");+ // A split asked for by name is kept even when it's off (the run says why it can't start).+ expect(pickVoiceSplit("melband", off("oss-voice-separate"))).toBe("melband");+ expect(pickVoiceSplit()).toBe("melband");+ // The cloud says plainly that keeping the whole soundtrack is the open engine's.+ expect(DBS_OPEN_ONLY_NOTE).toBe("Keeping the music and sound effects of the original (DBS) runs on your GPU (open source)");+ });+it("cloud: the Voice split changes nothing (no SAM Audio on the cloud: Demucs stays, three beds, voice only when it fails)", () => {const keys = (steps: ReturnType<typeof prepareSteps>) => steps.map((s) => [s.key, s.request.modelId, s.after ?? null]);expect(keys(prepareSteps({ engine: "cloud", video, targets: ["fr"], voiceSplit: "dbs" }))).toEqual(keys(prepareSteps({ engine: "cloud", video, targets: ["fr"] })));@@ -488,6 +508,37 @@ describe("dub sessions (demo mode)", () => {expect(dub.createDubSession({ engine: "cloud", mode: "steps", video: clip(), targets: ["es"], voiceSplit: "dbs" }).voiceSplit).toBeUndefined();});+ it("with MelBand RoFormer switched off, an open dub that names no split runs DBS (as the studio's picker does)", async () => {+ changeAccess([{ kind: "model", id: "oss-voice-separate", on: false }]);+ try {+ expect(dub.dubVoiceSplit({ engine: "open", mode: "steps" })).toBe("dbs");+ expect(dub.dubVoiceSplit({ engine: "cloud", mode: "steps" })).toBeUndefined();+ expect(dub.previewDub({ engine: "open", mode: "steps", video: clip(), targets: ["es"] })).toMatchObject({ engine: "open", costUsd: 0, steps: 2 });+ const s = dub.createDubSession({ engine: "open", mode: "steps", video: clip(), targets: ["es"] });+ expect(s.voiceSplit).toBe("dbs");+ expect(gens.getGeneration(s.prepare!.stems)!.modelId).toBe("oss-dbs-voice-separate");+ await settle(s.prepare!.stems);+ } finally {+ changeAccess([{ kind: "reset" }]);+ }+ // All on: MelBand RoFormer, the default.+ expect(dub.dubVoiceSplit({ engine: "open", mode: "steps" })).toBe("melband");+ });++ it("has a row on the GPU pre-flight board: the voice split, the cloned voice, its timeline, lip sync and the mux", () => {+ const row = STUDIO_ROWS.find((r) => r.href === "/audio/translate")!;+ expect(row).toMatchObject({ label: "Translate & dub", group: "Audio" });+ const t = studioTool(row)!;+ expect(t.ref).toBe("studio:/audio/translate");+ expect(t.local).toBeUndefined();+ expect(t.workflows).toEqual(expect.arrayContaining(["dub-prepare-separate-transcribe", "tts-chatterbox-multilingual", "audio-timeline", "lipsync-v2v-infinitetalk", "video-mux-audio"]));+ const idx = loadIndex();+ for (const wf of t.workflows) expect(idx.workflows[wf], wf).toBeDefined();+ // Graph B (DBS) is in the requirement index too.+ expect(idx.workflows["dub-prepare-dbs-transcribe"]).toBeDefined();+ expect(toolFor("studio:/audio/translate")?.workflows).toEqual(t.workflows);+ });+it("prices the open dub's first step free with either voice split", () => {for (const voiceSplit of ["melband", "dbs"] as const) {const p = dub.previewDub({ engine: "open", mode: "steps", video: clip(), targets: ["es"], voiceSplit });diff --git a/tests/e2e/dub-voice-split.mjs b/tests/e2e/dub-voice-split.mjsindex 38efed26..76eb1d09 100644--- a/tests/e2e/dub-voice-split.mjs+++ b/tests/e2e/dub-voice-split.mjs@@ -2,8 +2,8 @@// Usage: node tests/e2e/dub-voice-split.mjs [appUrl] [outDir] (the app in demo mode: no keys, no ComfyUI)// Checks, at 1440 px and 390 px in light and dark: the open engine's Voice split (MelBand RoFormer by default, DBS// with "Keeps the music and sound effects of the original"), the route line and the price line following it; the-// cloud engine's Demucs note and no Voice split; no sideways scroll. Then a DBS dub in demo mode: its first step runs-// on DBS + Qwen3-ASR. Screenshots go to outDir.+// cloud engine's Demucs note, its line that DBS runs on your GPU, and no Voice split; no sideways scroll. Then a DBS+// dub in demo mode: its first step runs on DBS + Qwen3-ASR. Screenshots go to outDir.import { spawnSync } from "node:child_process";import fs from "node:fs";import path from "node:path";@@ -72,6 +72,7 @@ try {page = await ctx.newPage();await openRoute(page, `${app}/audio/translate`);check(await page.getByText("Music and effects: Demucs. Music model: some sound effects may be lowered, and singing may be replaced.").isVisible(), `${label}: the cloud names Demucs and what it does`);+ check(await page.getByText("Keeping the music and sound effects of the original (DBS) runs on your GPU (open source).").isVisible(), `${label}: the cloud says DBS runs on your GPU`);check((await page.getByRole("combobox", { name: "Voice split" }).count()) === 0, `${label}: no Voice split on the cloud`);await page.screenshot({ path: path.join(out, `dub-cloud-${dname}-${theme}.png`), fullPage: true });await noSideScroll(page, `${label} cloud`);