Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Studio: Audio Edit step numbers as text, standard Transcribe icon (#15484)
Michael Han9d184f3b0ed0
diff --git a/studio/frontend/src/features/audio/edit-policy.ts b/studio/frontend/src/features/audio/edit-policy.tsindex cc02f3ef72a..475f344715f 100644--- a/studio/frontend/src/features/audio/edit-policy.ts+++ b/studio/frontend/src/features/audio/edit-policy.ts@@ -16,17 +16,17 @@ import { countChanges } from "./edit-diff";export const EDIT_COPY = {recordingLabel: "Recording",recordingHint: "Up to 30 s of one voice.",- transcriptLabel: "① Check the transcript",+ transcriptLabel: "1. Check the transcript",transcriptHint:"Fix any word the recognizer got wrong, so it matches the audio.",- changesLabel: "② Make your changes",+ changesLabel: "2. Make your changes",changesHint: "Change, add or remove words. Each change is marked below.",resetLabel: "Reset to transcript",wordsTab: "Words",deliveryTab: "Delivery",speedLabel: "Speed",pitchLabel: "Raise pitch",- deliveryLabel: "② Change the delivery",+ deliveryLabel: "2. Change the delivery",pitchHint:"Below 1× is slower, above is faster. FireRedAudio can raise pitch, not lower it, and makes one pass per change.",howItEditsTitle: "How edits apply",@@ -42,8 +42,8 @@ export const EDIT_SOURCE_EXPIRED = "This recording expired. Add it again.";export const EDIT_SOURCE_TOO_LONG = `Edit works on recordings up to ${EDIT_SOURCE_MAX_SECONDS} s. Record or upload a shorter take.`;export const EDIT_TRANSCRIBING = "Checking the transcript…";export const EDIT_TRANSCRIPT_EMPTY = "Type what's said in the recording.";-export const EDIT_NO_CHANGES = "Change at least one word in ②.";-export const EDIT_CHANGES_EMPTY = "Keep at least one word in ②.";+export const EDIT_NO_CHANGES = "Change at least one word in step 2.";+export const EDIT_CHANGES_EMPTY = "Keep at least one word in step 2.";export const EDIT_DELIVERY_EMPTY = "Pick a speed or a pitch change.";export type EditBlockerActionId =@@ -116,14 +116,14 @@ export function editBlocker(input: EditBlockerInput): EditBlocker | null {}if (!input.edited.trim()) {return blocker("changes-empty", EDIT_CHANGES_EMPTY, [- { id: "focus-changes", label: "Go to ②" },+ { id: "focus-changes", label: "Go to step 2" },]);}const changes = countChanges(input.transcript, input.edited);if (changes === null) return blocker("too-long", EDIT_TOO_LONG);if (changes === 0) {return blocker("changes", EDIT_NO_CHANGES, [- { id: "focus-changes", label: "Go to ②" },+ { id: "focus-changes", label: "Go to step 2" },]);}}diff --git a/studio/frontend/src/features/audio/pages/clone-page.tsx b/studio/frontend/src/features/audio/pages/clone-page.tsxindex e1eedef7aa3..bcd7a5f9db5 100644--- a/studio/frontend/src/features/audio/pages/clone-page.tsx+++ b/studio/frontend/src/features/audio/pages/clone-page.tsx@@ -5,7 +5,7 @@ import { Button } from "@/components/ui/button";import { Textarea } from "@/components/ui/textarea";import type { ModelOption } from "@/features/model-picker/components/model-selector/types";import { toast } from "@/lib/toast";-import { SpeechToTextIcon } from "@hugeicons/core-free-icons";+import { ClosedCaptionIcon } from "@hugeicons/core-free-icons";import { HugeiconsIcon } from "@hugeicons/react";import { type ComponentProps, useState } from "react";import type { AudioGalleryClip } from "../api";@@ -98,7 +98,10 @@ function CloneInputs({}onClick={() => void transcriber.transcribe(reference)}>- <HugeiconsIcon icon={SpeechToTextIcon} className="size-3.5" />+ <HugeiconsIcon+ icon={ClosedCaptionIcon}+ className="size-3.5 -translate-y-px"+ />{transcriber.transcribing ? "Transcribing…" : "Transcribe"}</Button></div>diff --git a/studio/frontend/src/features/audio/pages/convert-page.tsx b/studio/frontend/src/features/audio/pages/convert-page.tsxindex 9878a53aac0..4efcd6eadd4 100644--- a/studio/frontend/src/features/audio/pages/convert-page.tsx+++ b/studio/frontend/src/features/audio/pages/convert-page.tsx@@ -14,7 +14,7 @@ import { Textarea } from "@/components/ui/textarea";import { ParamSlider } from "@/features/chat";import type { ModelOption } from "@/features/model-picker/components/model-selector/types";import { PillTabs } from "@/features/model-picker/components/model-selector/pill-tabs";-import { SpeechToTextIcon } from "@hugeicons/core-free-icons";+import { ClosedCaptionIcon } from "@hugeicons/core-free-icons";import { HugeiconsIcon } from "@hugeicons/react";import { type ComponentProps, useEffect, useState } from "react";import { type AudioGalleryClip, fetchAudioBlob } from "../api";@@ -225,7 +225,10 @@ function SourceTextField({disabled={!sourceUsable || transcriber.transcribing || disabled}onClick={() => void transcriber.transcribe(source)}>- <HugeiconsIcon icon={SpeechToTextIcon} className="size-3.5" />+ <HugeiconsIcon+ icon={ClosedCaptionIcon}+ className="size-3.5 -translate-y-px"+ />{transcriber.transcribing ? "Transcribing…" : "Transcribe"}</Button></div>diff --git a/studio/frontend/src/features/audio/pages/edit-page.tsx b/studio/frontend/src/features/audio/pages/edit-page.tsxindex a6befa39399..cae58be1aea 100644--- a/studio/frontend/src/features/audio/pages/edit-page.tsx+++ b/studio/frontend/src/features/audio/pages/edit-page.tsx@@ -6,7 +6,7 @@ import { Textarea } from "@/components/ui/textarea";import { ParamSlider } from "@/features/chat";import { PillTabs } from "@/features/model-picker/components/model-selector/pill-tabs";import type { ModelOption } from "@/features/model-picker/components/model-selector/types";-import { SpeechToTextIcon } from "@hugeicons/core-free-icons";+import { ClosedCaptionIcon } from "@hugeicons/core-free-icons";import { HugeiconsIcon } from "@hugeicons/react";import { type ComponentProps, useEffect, useState } from "react";import { type AudioGalleryClip, fetchAudioBlob } from "../api";@@ -105,7 +105,10 @@ function EditInputs({disabled={!sourceUsable || transcriber.transcribing || disabled}onClick={() => void transcriber.transcribe(source)}>- <HugeiconsIcon icon={SpeechToTextIcon} className="size-3.5" />+ <HugeiconsIcon+ icon={ClosedCaptionIcon}+ className="size-3.5 -translate-y-px"+ />{transcriber.transcribing ? "Transcribing…" : "Transcribe"}</Button></div>diff --git a/studio/frontend/tests/audio-edit-policy.test.ts b/studio/frontend/tests/audio-edit-policy.test.tsindex 1b8c7c06caa..791263128c7 100644--- a/studio/frontend/tests/audio-edit-policy.test.ts+++ b/studio/frontend/tests/audio-edit-policy.test.ts@@ -71,7 +71,11 @@ test("Edit's blockers come in rail order, each with its action", () => {[picked, P.EDIT_SOURCE_TOO_LONG, ["choose-recording"]],[fits, P.EDIT_TRANSCRIBING],[transcribed, P.EDIT_TRANSCRIPT_EMPTY, ["transcribe", "type-transcript"]],- [typed, P.EDIT_NO_CHANGES, [{ id: "focus-changes", label: "Go to ②" }]],+ [+ typed,+ P.EDIT_NO_CHANGES,+ [{ id: "focus-changes", label: "Go to step 2" }],+ ],[{ ...typed, edited: " " }, P.EDIT_CHANGES_EMPTY],[changed, "no"],[diff --git a/studio/frontend/tests/audio-edit-step-labels.test.ts b/studio/frontend/tests/audio-edit-step-labels.test.tsnew file mode 100644index 00000000000..ae76984cf39--- /dev/null+++ b/studio/frontend/tests/audio-edit-step-labels.test.ts@@ -0,0 +1,34 @@+// SPDX-License-Identifier: AGPL-3.0-only+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0++import assert from "node:assert/strict";+import test from "node:test";++import { readSrc } from "./helpers/kit.ts";++test("Edit numbers its steps in text, not circled glyphs", () => {+ const policy = readSrc("features/audio/edit-policy.ts");+ assert.match(policy, /transcriptLabel: "1\. Check the transcript"/);+ assert.match(policy, /changesLabel: "2\. Make your changes"/);+ assert.match(policy, /deliveryLabel: "2\. Change the delivery"/);+ // Only comments may still use them.+ for (const line of policy.split("\n")) {+ if (/[①②]/.test(line)) assert.match(line.trim(), /^(\/\/|\/\*|\*)/);+ }+});++test("Transcribe buttons use the Transcribe workflow's icon, centred on the label", () => {+ // Its ink sits 1px below the label's otherwise.+ assert.match(+ readSrc("features/audio/workflows.ts"),+ /id: "transcribe",[\s\S]{0,80}icon: ClosedCaptionIcon/,+ );+ for (const page of ["edit", "clone", "convert"]) {+ const src = readSrc(`features/audio/pages/${page}-page.tsx`);+ assert.match(+ src,+ /<HugeiconsIcon\s+icon=\{ClosedCaptionIcon\}\s+className="size-3\.5 -translate-y-px"\s+\/>\s*\{transcriber\.transcribing \? "Transcribing…" : "Transcribe"\}/,+ );+ assert.doesNotMatch(src, /SpeechToTextIcon/);+ }+});