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: simpler icons for the audio pages, one audio icon in the Library (#12890)
Etherl73c998044a07
diff --git a/studio/frontend/src/features/audio/workflows.ts b/studio/frontend/src/features/audio/workflows.tsindex 10bc440a535..ba0e64f5b88 100644--- a/studio/frontend/src/features/audio/workflows.ts+++ b/studio/frontend/src/features/audio/workflows.ts@@ -4,17 +4,40 @@// Free of app imports so the node test runner and the sidebar can load it directly.import {- AiVoiceIcon,- MusicNote03Icon,- QuillWrite01Icon,- SpeechToTextIcon,+ ArrowReloadHorizontalIcon,+ ClosedCaptionIcon,+ Copy02Icon,+ Edit03Icon,+ MusicThreeIcon,SplitIcon,- UserSwitchIcon,- VoiceIdIcon,} from "@hugeicons/core-free-icons";import type { IconSvgElement } from "@hugeicons/react";import { AUDIO_CPP_MUSIC_AUDIO_TYPE } from "./audio-cpp-catalog.ts";+const stroke = {+ stroke: "currentColor",+ strokeLinecap: "round",+ strokeLinejoin: "round",+ strokeWidth: "1.5",+} as const;++// Hugeicons "ai-speech" (MIT). Only in core-free-icons 4.3+, newer than the pinned 4.1.1.+const AiSpeechIcon: IconSvgElement = [+ ["path", { d: "M12 7V17", ...stroke, key: "0" }],+ ["path", { d: "M16 11L16 19", ...stroke, key: "1" }],+ ["path", { d: "M20 11L20 14", ...stroke, key: "2" }],+ ["path", { d: "M8 3V21", ...stroke, key: "3" }],+ ["path", { d: "M4 9V15", ...stroke, key: "4" }],+ [+ "path",+ {+ d: "M18.5 3.9375V5.5M18.5 5.5V7.0625M18.5 5.5H17.25M18.5 5.5H19.75M21 5.5L19.9156 5.13852C19.4179 4.97263 19.0274 4.58211 18.8615 4.08443L18.5 3L18.1385 4.08443C17.9726 4.58211 17.5821 4.97263 17.0844 5.13852L16 5.5L17.0844 5.86148C17.5821 6.02737 17.9726 6.41789 18.1385 6.91557L18.5 8L18.8615 6.91557C19.0274 6.41789 19.4179 6.02737 19.9156 5.86148L21 5.5Z",+ ...stroke,+ key: "5",+ },+ ],+];+export type AudioWorkflowId =| "speak"| "clone"@@ -37,9 +60,9 @@ export const AUDIO_WORKFLOWS: ReadonlyArray<{}> = [{id: "speak",- label: "Speak",+ label: "Text to Speech",heading: "Text to speech",- icon: AiVoiceIcon,+ icon: AiSpeechIcon,hint: "Turn text into speech with a built-in or designed voice",slot: "speak",createTrain: true,@@ -48,7 +71,7 @@ export const AUDIO_WORKFLOWS: ReadonlyArray<{id: "clone",label: "Clone",heading: "Clone a voice",- icon: VoiceIdIcon,+ icon: Copy02Icon,hint: "Speak in the voice from a short recording",slot: "speak",createTrain: true,@@ -57,7 +80,7 @@ export const AUDIO_WORKFLOWS: ReadonlyArray<{id: "edit",label: "Edit",heading: "Edit speech",- icon: QuillWrite01Icon,+ icon: Edit03Icon,hint: "Change words in a recording, same voice",slot: "speak",createTrain: false,@@ -66,7 +89,7 @@ export const AUDIO_WORKFLOWS: ReadonlyArray<{id: "convert",label: "Convert",heading: "Convert voice",- icon: UserSwitchIcon,+ icon: ArrowReloadHorizontalIcon,hint: "Make a recording sound like another voice",slot: "speak",createTrain: false,@@ -75,7 +98,7 @@ export const AUDIO_WORKFLOWS: ReadonlyArray<{id: "music",label: "Music",heading: "Create music",- icon: MusicNote03Icon,+ icon: MusicThreeIcon,hint: "Songs, instrumentals and sound effects",slot: "speak",createTrain: false,@@ -93,7 +116,7 @@ export const AUDIO_WORKFLOWS: ReadonlyArray<{id: "transcribe",label: "Transcribe",heading: "Transcribe",- icon: SpeechToTextIcon,+ icon: ClosedCaptionIcon,hint: "Turn speech into text",slot: "transcribe",createTrain: true,diff --git a/studio/frontend/src/features/library/components/library-cards.tsx b/studio/frontend/src/features/library/components/library-cards.tsxindex 1c63ee00968..a338f93dd19 100644--- a/studio/frontend/src/features/library/components/library-cards.tsx+++ b/studio/frontend/src/features/library/components/library-cards.tsx@@ -8,7 +8,7 @@ import { Folder01Icon, PauseIcon, PlayIcon } from "@hugeicons/core-free-icons";import { HugeiconsIcon } from "@hugeicons/react";import { type ReactNode, type RefObject, useContext, useRef, useState } from "react";import type { LibraryFolder, LibraryItem } from "../api";-import { audioSummary, audioWorkflow } from "../audio-items";+import { audioSummary } from "../audio-items";import { toggleLibraryAudio, useLibraryAudioPlaying } from "../audio-playback";import {KIND_ICONS,@@ -41,7 +41,7 @@ export function KindIcon({ item, className }: { item: LibraryItem; className?: sconst kind = fileKind(item);return (<HugeiconsIcon- icon={audioWorkflow(item)?.icon ?? KIND_ICONS[kind]}+ icon={KIND_ICONS[kind]}strokeWidth={1.5}className={cn(KIND_ICON_CLASS[kind], className, kind === "model" && "scale-95")}/>diff --git a/studio/frontend/tests/audio-stem-mixer-state.test.ts b/studio/frontend/tests/audio-stem-mixer-state.test.tsindex 937b7801c1a..b1b694f898d 100644--- a/studio/frontend/tests/audio-stem-mixer-state.test.ts+++ b/studio/frontend/tests/audio-stem-mixer-state.test.ts@@ -117,27 +117,27 @@ test("stem file names read '<title> - <Label>.wav' and are safe on disk", () =>test("clip file names read '<prompt> - <Workflow>.wav' instead of the clip id", () => {const cases: [Parameters<typeof clipFileName>[0], string][] = [- [{ prompt: "Hello there.", workflow: "speak" }, "Hello there - Speak.wav"],+ [{ prompt: "Hello there.", workflow: "speak" }, "Hello there - Text to Speech.wav"],[{ prompt: "lofi beat", workflow: "music" }, "lofi beat - Music.wav"],[{ prompt: "song.wav → Alice", workflow: "convert" },"song.wav → Alice - Convert.wav",],// older clips lack workflow metadata, so audio_type determines the history label.- [{ prompt: "Hi", audio_type: "orpheus" }, "Hi - Speak.wav"],+ [{ prompt: "Hi", audio_type: "orpheus" }, "Hi - Text to Speech.wav"],[{ prompt: "Line one\n\n line two", workflow: "clone" },"Line one line two - Clone.wav",],[{ prompt: 'a/b:c*?"<>|', workflow: "edit" }, "a_b_c______ - Edit.wav"],- [{ prompt: " ", workflow: "speak" }, "Audio - Speak.wav"],+ [{ prompt: " ", workflow: "speak" }, "Audio - Text to Speech.wav"],[{ prompt: null, workflow: "separate" }, "Audio - Separate.wav"],];for (const [clip, want] of cases) {assert.equal(clipFileName(clip), want);}const long = clipFileName({ prompt: "語".repeat(500), workflow: "speak" });- assert.equal(long, `${"語".repeat(60)} - Speak.wav`);+ assert.equal(long, `${"語".repeat(60)} - Text to Speech.wav`);assert.ok(new TextEncoder().encode(long).byteLength <= 255);});diff --git a/studio/frontend/tests/library-audio.test.ts b/studio/frontend/tests/library-audio.test.tsindex 486e9c6171e..bf82f216c18 100644--- a/studio/frontend/tests/library-audio.test.ts+++ b/studio/frontend/tests/library-audio.test.ts@@ -57,7 +57,7 @@ test("a clip names the Audio page workflow that made it; other audio names none"assert.equal(audioWorkflow(clip(id, { workflow: id }))?.id, id);}assert.equal(audioWorkflow(clip("upload", null)), null);- // A workflow a newer server adds falls back to the plain audio icon.+ // A workflow a newer server adds names none.assert.equal(audioWorkflow(clip("future", { workflow: "dub" })), null);});@@ -68,7 +68,7 @@ test("a stem shows its stem, music its kind and take, speech nothing extra", ()assert.equal(audioDetail(clip("e", { workflow: "music", role: "edit", mode: "edit" })), "Edit");assert.equal(audioDetail(clip("t", {})), null);assert.deepEqual(audioSummary(stem("v", "vocals")), ["0:42", "Vocals"]);- assert.deepEqual(audioSummary(clip("t", { durationS: null })), ["Speak"]);+ assert.deepEqual(audioSummary(clip("t", { durationS: null })), ["Text to Speech"]);assert.deepEqual(audioSummary(clip("upload", null)), []);});