Skip to content

armgit / fuobe

Public Imported from GitHub
0

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.

Audio: plainer words for the Clean up voice demo

Adarshdcf0ce94fc45
diff --git a/scripts/gen-clean-voice-demo.mjs b/scripts/gen-clean-voice-demo.mjs
index 4d945a2b..30383202 100644
--- a/scripts/gen-clean-voice-demo.mjs
+++ b/scripts/gen-clean-voice-demo.mjs
@@ -6,7 +6,7 @@
* node scripts/gen-clean-voice-demo.mjs --room room.png --quiet quiet.png --noisy noisy.wav --clean clean.wav
* [--start 0] [--out public/samples/clean-voice]
*
- * --room the brasserie photo (4:3); --quiet the same photo with the room softened and dimmed around her.
+ * --room the restaurant photo (4:3); --quiet the same photo with the room softened and dimmed around her.
* Both become 1280x960 WebP (room.webp, quiet.webp).
* --noisy the recording with the room in it; --clean her voice alone. Same moment, same length: the demo plays both
* from one clock and switches between them. Both are cut to the same 8 s from --start, made 48 kHz mono, and
diff --git a/src/app/globals.css b/src/app/globals.css
index 7efe8b82..f52e9125 100644
--- a/src/app/globals.css
+++ b/src/app/globals.css
@@ -248,7 +248,7 @@
/* Home: the composer's ring brightens once when a Try chip fills it; Audio's waveform ripples on hover. */
--animate-ring-flash: ring-flash 260ms ease-out both;
--animate-wave-bar: wave-bar 900ms ease-in-out infinite;
- /* Clean up voice's demo: the "Busy brasserie" dot pulses while the room plays. */
+ /* Clean up voice's demo: the "Noisy restaurant" dot pulses while the room plays. */
--animate-live-dot: live-dot 1.1s ease-out infinite;
/* Watermark Remover: the scan line moving down the picture, and the line across the marks being removed. */
--animate-wm-scan: wm-scan 2.2s ease-in-out infinite;
diff --git a/src/components/audio-tools/clean-voice-demo.tsx b/src/components/audio-tools/clean-voice-demo.tsx
index 7fa03684..8b54eff0 100644
--- a/src/components/audio-tools/clean-voice-demo.tsx
+++ b/src/components/audio-tools/clean-voice-demo.tsx
@@ -17,10 +17,10 @@ import {
import { cn } from "@/lib/utils";
/**
- * Clean up voice's demo, for anyone who hasn't cleaned a file of their own yet: a photo of a woman talking in a busy
- * brasserie, and one tap to hear her. Both takes (the room as recorded, her voice alone) start together through Web Audio,
- * one AudioContext with a gain each, so a switch happens at the same moment in her speech; the picture softens with the
- * sound. What happens when is decided in src/lib/av/clean-voice-demo.ts.
+ * Clean up voice's demo, for anyone who hasn't cleaned a file of their own yet: a photo of a woman talking in a noisy
+ * restaurant, and one tap to take the noise away. Both takes (the room as recorded, her voice alone) start together
+ * through Web Audio, one AudioContext with a gain each, so a switch happens at the same moment in her speech; the picture
+ * softens with the sound. What happens when is decided in src/lib/av/clean-voice-demo.ts.
*/
type Win = Window & { webkitAudioContext?: typeof AudioContext };
@@ -221,16 +221,16 @@ export function CleanVoiceDemo({
<header className="grid gap-1.5">
<span className="text-[12px] font-medium tracking-[.06em] text-muted-foreground uppercase">{name}</span>
<h2 id={headingId} className="font-heading text-[clamp(34px,7vw,48px)] leading-[1.05] tracking-[-.01em] text-balance">
- Hear her, not the room.
+ Studio-clean voice from any recording.
</h2>
<p className="max-w-[52ch] text-[15px] leading-[1.55] text-muted-foreground">
- A phone recording from a packed brasserie: music, clatter and every other table. Tap play and the room falls away while she keeps talking.
+ Recorded on a phone in a noisy restaurant. Press play and the noise disappears while she keeps talking.
</p>
</header>
<div
role="group"
- aria-label="Demo: a woman talking in a busy brasserie"
+ aria-label="Demo: a woman talking in a noisy restaurant"
onClick={tap}
className="relative isolate aspect-[4/3] w-full max-w-full cursor-pointer touch-manipulation overflow-hidden rounded-xl bg-media [-webkit-tap-highlight-color:transparent]"
>
@@ -243,7 +243,7 @@ export function CleanVoiceDemo({
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
src={DEMO_MEDIA.room}
- alt="A woman talking at a marble table in a packed Paris brasserie, waiters and diners behind her"
+ alt="A woman talking at a marble table in a busy restaurant, waiters and diners behind her"
width={1280}
height={960}
fetchPriority="high"
@@ -267,7 +267,7 @@ export function CleanVoiceDemo({
aria-live="polite"
>
<span className={cn("size-2 rounded-full motion-reduce:animate-none", state.clean ? "bg-[#7ee2b8]" : "bg-[#ffb347]", playing && !state.clean && "animate-live-dot")} />
- <span data-demo-state>{state.clean ? "Voice only" : "Busy brasserie"}</span>
+ <span data-demo-state>{state.clean ? "Voice only" : "Noisy restaurant"}</span>
</span>
<span
diff --git a/src/components/audio-tools/clean-voice-tool.tsx b/src/components/audio-tools/clean-voice-tool.tsx
index dfbaedd3..c7aee29c 100644
--- a/src/components/audio-tools/clean-voice-tool.tsx
+++ b/src/components/audio-tools/clean-voice-tool.tsx
@@ -321,7 +321,7 @@ export function CleanVoiceTool({ app }: { app?: { name: string; description: str
<Button
variant="outline"
className="h-11 rounded-full px-5"
- onClick={() => take({ ref: DEMO_MEDIA.noisy, preview: DEMO_MEDIA.noisy, kind: "audio", id: nanoid(6), name: "Brasserie recording.m4a" })}
+ onClick={() => take({ ref: DEMO_MEDIA.noisy, preview: DEMO_MEDIA.noisy, kind: "audio", id: nanoid(6), name: "Restaurant recording.m4a" })}
>
<Sparkles className="size-4" />
Try it on this recording
diff --git a/src/lib/av/clean-voice-demo.ts b/src/lib/av/clean-voice-demo.ts
index b8270795..f9a23762 100644
--- a/src/lib/av/clean-voice-demo.ts
+++ b/src/lib/av/clean-voice-demo.ts
@@ -1,5 +1,5 @@
/**
- * Clean up voice's demo (src/components/audio-tools/clean-voice-demo.tsx): a woman talking in a busy brasserie. One tap
+ * Clean up voice's demo (src/components/audio-tools/clean-voice-demo.tsx): a woman talking in a noisy restaurant. One tap
* plays two 8 s takes of the same moment at once, the room as recorded and her voice alone, each through its own gain.
* The room plays first; at 3 s the noise fades out over 1 s while she keeps talking, and the photo softens to match.
* "Noise on" / "Noise off" switch both at the same moment in her speech and stop the automatic switch. demoReducer
@@ -11,7 +11,7 @@ export const DEMO_MEDIA = {
/** The room as recorded, and her voice alone: 8 s, 48 kHz mono AAC, the same moment, at the same gain. */
noisy: `${DEMO_DIR}/noisy.m4a`,
clean: `${DEMO_DIR}/clean.m4a`,
- /** The brasserie, and the same photo with the room softened and dimmed around her (1280x960). */
+ /** The restaurant, and the same photo with the room softened and dimmed around her (1280x960). */
room: `${DEMO_DIR}/room.webp`,
quiet: `${DEMO_DIR}/quiet.webp`,
} as const;
diff --git a/src/lib/studio-examples.ts b/src/lib/studio-examples.ts
index 1de03d8b..34767dfa 100644
--- a/src/lib/studio-examples.ts
+++ b/src/lib/studio-examples.ts
@@ -128,7 +128,7 @@ export const EXAMPLE_LINES: Record<string, string> = {
"app-billboard-ad": "A perfume ad over the skyline",
"app-giant-product": "A lipstick towers over the city",
"app-packshot": "A handbag, cut out on clean white",
- "app-clean-up-voice": "A noisy brasserie, a clear voice",
+ "app-clean-up-voice": "A noisy restaurant, a clear voice",
"effect-paper": "Whale and sea, redrawn in cut paper",
"genjutsu-group-swap": "Two people swapped in one take",
};
diff --git a/tests/clean-voice-demo.test.ts b/tests/clean-voice-demo.test.ts
index a29a49f1..8ee97b44 100644
--- a/tests/clean-voice-demo.test.ts
+++ b/tests/clean-voice-demo.test.ts
@@ -236,11 +236,11 @@ describe("the demo's sound", () => {
describe("the demo page", () => {
it("renders the stage before anything plays: the room, Tap to listen, Noise on pressed", () => {
const html = renderToStaticMarkup(createElement(CleanVoiceDemo));
- expect(html).toContain("Hear her, not the room.");
+ expect(html).toContain("Studio-clean voice from any recording.");
expect(html).toContain(`src="${DEMO_MEDIA.room}"`);
expect(html).toContain(`src="${DEMO_MEDIA.quiet}"`);
expect(html).toContain("Tap to listen");
- expect(html).toContain("Busy brasserie");
+ expect(html).toContain("Noisy restaurant");
expect(html).toMatch(/aria-pressed="true"[^>]*>Noise on</);
expect(html).toMatch(/aria-pressed="false"[^>]*>Noise off</);
expect(html).toContain(HINTS.ready);
diff --git a/tests/e2e/audio-first.mjs b/tests/e2e/audio-first.mjs
index 0852bbab..d4c78f32 100644
--- a/tests/e2e/audio-first.mjs
+++ b/tests/e2e/audio-first.mjs
@@ -2,9 +2,9 @@
// Usage: node tests/e2e/audio-first.mjs [appUrl] [shotsDir] Exits 1 if any check fails.
//
// At 390 and 1440, as a guest:
-// 1. /audio: the Modes row starts with Clean up voice and it is the selected tab; the page is its demo ("Hear her, not
-// the room."); nothing shifts while it loads; the only pictures and sounds it loads are the demo's (no other mode's
-// covers or clips).
+// 1. /audio: the Modes row starts with Clean up voice and it is the selected tab; the page is its demo ("Studio-clean
+// voice from any recording."); nothing shifts while it loads; the only pictures and sounds it loads are the demo's
+// (no other mode's covers or clips).
// 2. The other tabs still open their own pages (Speech at /audio/speech, Music), and Clean up voice brings /audio back.
// 3. Old links: /audio/clean is the same tool with its tab selected; /audio?mode=speech and ?mode=music land on their
// pages; links made for Speech when it was /audio (/audio?voice=…, ?prompt=…, ?model=…) open Speech, query kept.
@@ -59,7 +59,7 @@ for (const [label, device] of [
check(row[0]?.id === "clean" && row[0]?.name === "Clean up voice", `${label}: Clean up voice is the first tab`, row.slice(0, 4).map((t) => t.name).join(" › "));
check(row.filter((t) => t.on).map((t) => t.id).join() === "clean", `${label}: on /audio, Clean up voice is the selected tab`);
check(row[1]?.id === "speech", `${label}: Speech comes next (the old default, still a tab)`);
- check(await p.getByRole("heading", { name: "Hear her, not the room." }).first().isVisible(), `${label}: /audio shows the Clean up voice demo`);
+ check(await p.getByRole("heading", { name: "Studio-clean voice from any recording." }).first().isVisible(), `${label}: /audio shows the Clean up voice demo`);
check((await p.title()).startsWith("Audio"), `${label}: the page title is Audio`, await p.title());
if (ENGINE === "chromium") {
const cls = await p.evaluate(() => window.__cls);
@@ -77,7 +77,7 @@ for (const [label, device] of [
for (const [name, to, heading] of [
["Speech", "/audio/speech", "Give it a voice"],
["Music", "/audio/music", null],
- ["Clean up voice", "/audio", "Hear her, not the room."],
+ ["Clean up voice", "/audio", "Studio-clean voice from any recording."],
]) {
const tab = p.locator('nav[aria-label="Modes"] a[data-mode]').filter({ hasText: new RegExp(`^${name}$`) }).first();
await tab.scrollIntoViewIfNeeded();
@@ -90,7 +90,7 @@ for (const [label, device] of [
// 3. Old links.
await openRoute(p, `${app}/audio/clean`);
- check((await tabs(p)).find((t) => t.on)?.id === "clean" && (await p.getByRole("heading", { name: "Hear her, not the room." }).first().isVisible()), `${label}: /audio/clean is the same tool, its tab selected`);
+ check((await tabs(p)).find((t) => t.on)?.id === "clean" && (await p.getByRole("heading", { name: "Studio-clean voice from any recording." }).first().isVisible()), `${label}: /audio/clean is the same tool, its tab selected`);
for (const [from, to] of [
["/audio?mode=speech", "/audio/speech"],
["/audio?mode=music", "/audio/music"],
diff --git a/tests/e2e/clean-voice.mjs b/tests/e2e/clean-voice.mjs
index d667e07c..85aa5957 100644
--- a/tests/e2e/clean-voice.mjs
+++ b/tests/e2e/clean-voice.mjs
@@ -70,15 +70,15 @@ async function hasCleaned(base) {
}
async function demoPlayer(page, label, base = app) {
- const stage = page.getByRole("group", { name: "Demo: a woman talking in a busy brasserie" });
+ const stage = page.getByRole("group", { name: "Demo: a woman talking in a noisy restaurant" });
if (await hasCleaned(base)) {
check((await stage.count()) === 0, `${label}: after a clean of your own, the page opens on the tool, not the demo`);
return;
}
await stage.waitFor({ timeout: 20_000 });
- check(await page.getByRole("heading", { name: "Hear her, not the room." }).isVisible(), `${label}: the demo says what it shows`);
+ check(await page.getByRole("heading", { name: "Studio-clean voice from any recording." }).isVisible(), `${label}: the demo says what it shows`);
const chip = page.locator("[data-demo-state]");
- check((await chip.innerText()) === "Busy brasserie", `${label}: the demo starts on the busy room`);
+ check((await chip.innerText()) === "Noisy restaurant", `${label}: the demo starts on the noisy restaurant`);
await page.getByRole("button", { name: "Tap to listen" }).click();
const quiet = await page
.waitForFunction(() => document.querySelector("[data-demo-state]")?.textContent === "Voice only", null, { timeout: 15_000 })
@@ -90,7 +90,7 @@ async function demoPlayer(page, label, base = app) {
check(shown > 0.95, `${label}: the photo softens with the sound (${shown})`);
await page.getByRole("button", { name: "Noise on" }).click();
check((await page.getByRole("button", { name: "Noise on" }).getAttribute("aria-pressed")) === "true", `${label}: Noise on is pressed`);
- check((await chip.innerText()) === "Busy brasserie", `${label}: Noise on brings the room back`);
+ check((await chip.innerText()) === "Noisy restaurant", `${label}: Noise on brings the room back`);
}
async function waitDone(feature, ms = 45_000) {
@@ -114,7 +114,7 @@ try {
const ctx = await setup(browser, device, theme, "cloud");
const page = await ctx.newPage();
await openRoute(page, `${app}/audio/clean`);
- check(await page.getByRole("heading", { name: /^(Clean up voice|Hear her, not the room\.)$/ }).first().isVisible(), `${label}: the empty tool says what it is`);
+ check(await page.getByRole("heading", { name: /^(Clean up voice|Studio-clean voice from any recording\.)$/ }).first().isVisible(), `${label}: the empty tool says what it is`);
check(await page.getByText("Add a voice recording or a video to clean").isVisible(), `${label}: the drop zone`);
await demoPlayer(page, label);
await page.screenshot({ path: path.join(out, `clean-empty-${dname}-${theme}.png`), fullPage: true });
@@ -124,7 +124,7 @@ try {
check(true, `${label}: the cloud engine says Clean up voice runs on your GPU`);
await page.screenshot({ path: path.join(out, `clean-cloud-${dname}-${theme}.png`), fullPage: true });
await page.getByRole("button", { name: "Use open source" }).click();
- await page.getByText(/Free · runs on your ComfyUI|Demo · free/).waitFor({ timeout: 20_000 });
+ await page.getByText(/Free · your GPU|Placeholder · free/).waitFor({ timeout: 20_000 });
for (const g of ["Strength", "Model", "Quality", "Background", "Level"]) check(await page.getByRole("radiogroup", { name: g }).isVisible(), `${label}: the ${g} control`);
check((await page.getByRole("radio", { name: "Full", exact: true }).getAttribute("aria-checked")) === "true", `${label}: audio starts at Full strength`);
await page.screenshot({ path: path.join(out, `clean-open-${dname}-${theme}.png`), fullPage: true });
@@ -142,7 +142,7 @@ try {
const page = await ctx.newPage();
await openRoute(page, `${app}/audio/clean`);
await page.locator('input[type="file"]').setInputFiles(file);
- await page.getByText(/Free · runs on your ComfyUI|Demo · free/).waitFor({ timeout: 30_000 });
+ await page.getByText(/Free · your GPU|Placeholder · free/).waitFor({ timeout: 30_000 });
if (kind === "video") {
check((await page.getByRole("radio", { name: "Remove everything but the voice" }).getAttribute("aria-checked")) === "true", "video: Remove everything but the voice is the default");
check((await page.getByRole("radio", { name: "Natural", exact: true }).getAttribute("aria-checked")) === "true", "video: Natural strength is the default");
@@ -171,7 +171,7 @@ try {
const ctx = await setup(browser, DESKTOP, "light", "open");
const page = await ctx.newPage();
await openRoute(page, `${app}/apps/app-clean-up-voice`);
- check(await page.getByRole("heading", { name: /^(Clean up voice|Hear her, not the room\.)$/ }).first().isVisible(), "app: the app page is the tool");
+ check(await page.getByRole("heading", { name: /^(Clean up voice|Studio-clean voice from any recording\.)$/ }).first().isVisible(), "app: the app page is the tool");
check(await page.getByRole("link", { name: "Apps" }).first().isVisible(), "app: an Apps breadcrumb");
await page.screenshot({ path: path.join(out, "clean-app-1440.png"), fullPage: true });
const g = await waitDone("voice-clean", 1000);
@@ -235,7 +235,7 @@ try {
const ctx = await setup(browser, PHONE, "dark", "open");
const page = await ctx.newPage();
await openRoute(page, `${app}/apps/app-clean-up-voice`);
- await page.getByRole("heading", { name: /^(Clean up voice|Hear her, not the room\.)$/ }).first().waitFor({ timeout: 20_000 });
+ await page.getByRole("heading", { name: /^(Clean up voice|Studio-clean voice from any recording\.)$/ }).first().waitFor({ timeout: 20_000 });
await demoPlayer(page, "app 390");
await noSideScroll(page, "app 390");
await page.screenshot({ path: path.join(out, "clean-app-390-dark.png"), fullPage: true });
diff --git a/tests/example-refs.test.ts b/tests/example-refs.test.ts
index 96d801df..24159159 100644
--- a/tests/example-refs.test.ts
+++ b/tests/example-refs.test.ts
@@ -178,7 +178,7 @@ describe("a tool's own example", () => {
setSetting("demoMode", "auto");
const recording = "/samples/clean-voice/noisy.m4a";
expect(isExampleRef(recording)).toBe(true);
- const body = AudioToolBody.parse({ tool: "clean", engine: "open", media: recording, kind: "audio", name: "Brasserie" });
+ const body = AudioToolBody.parse({ tool: "clean", engine: "open", media: recording, kind: "audio", name: "Restaurant" });
const preview = await guest(() => previewAudioTool(body));
expect(preview.steps).toBeGreaterThan(0);
expect(preview.length).toBeGreaterThan(0);