Skip to content

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.

Studio: one audio icon everywhere, ai-speech for Text to Speech (#15112)

Michael Hancd44b601bc17
diff --git a/studio/frontend/src/components/assistant-ui/thread.tsx b/studio/frontend/src/components/assistant-ui/thread.tsx
index 4bc91960c21..163547f92d1 100644
--- a/studio/frontend/src/components/assistant-ui/thread.tsx
+++ b/studio/frontend/src/components/assistant-ui/thread.tsx
@@ -2,6 +2,7 @@
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
import { ChevronDownStandardIcon } from "@/lib/chevron-icons";
+import { AiSpeechIcon } from "@/lib/hugeicons-derived";
import { createPortal } from "react-dom";
import {
canQueueTextAttachment,
@@ -443,7 +444,6 @@ import {
ArrowUpIcon,
Columns2Icon,
SlidersHorizontalIcon,
- HeadphonesIcon,
Loader2Icon,
MoreHorizontalIcon,
PlusIcon,
@@ -2904,7 +2904,7 @@ const PendingAudioChip: FC = () => {
return (
<div className="mb-2 flex w-full flex-row items-center gap-2 px-1.5 pt-0.5 pb-1">
<div className="flex items-center gap-2 rounded-full border border-[color-mix(in_oklab,var(--foreground)_calc(20%*var(--contrast-edge-gain,1)),transparent)] bg-muted px-3 py-1.5 text-xs">
- <HeadphonesIcon className="size-3.5 text-muted-foreground" />
+ <HugeiconsIcon icon={AiSpeechIcon} className="size-3.5 text-muted-foreground" />
<span className="max-w-48 truncate">{audioName}</span>
<button
type="button"
@@ -9282,7 +9282,7 @@ const UserMessageAudio: FC = () => {
return (
<div className="col-start-2 flex justify-end">
<div className="flex items-center gap-2 rounded-full border border-[color-mix(in_oklab,var(--foreground)_calc(20%*var(--contrast-edge-gain,1)),transparent)] bg-muted px-3 py-1.5 text-xs">
- <HeadphonesIcon className="size-3.5 text-muted-foreground" />
+ <HugeiconsIcon icon={AiSpeechIcon} className="size-3.5 text-muted-foreground" />
<span className="max-w-48 truncate">{audioName}</span>
</div>
</div>
diff --git a/studio/frontend/src/features/chat/shared-composer.tsx b/studio/frontend/src/features/chat/shared-composer.tsx
index ff532b88d4a..2c409a75aff 100644
--- a/studio/frontend/src/features/chat/shared-composer.tsx
+++ b/studio/frontend/src/features/chat/shared-composer.tsx
@@ -32,6 +32,7 @@ import {
import { Button } from "@/components/ui/button";
import { Spinner } from "@/components/ui/spinner";
import { BulbIcon } from "@/lib/bulb-icon";
+import { AiSpeechIcon } from "@/lib/hugeicons-derived";
import { InternetGlyph } from "@/lib/internet-icon";
import { MicIcon } from "@/lib/mic-icon";
import { MenuTickIcon, Tick02Icon } from "@/lib/tick-icon";
@@ -109,7 +110,6 @@ import { useAui } from "@assistant-ui/react";
import {
ArrowUpIcon,
Columns2Icon,
- HeadphonesIcon,
MoreHorizontalIcon,
PlusIcon,
SquareIcon,
@@ -2891,7 +2891,7 @@ export function SharedComposer({
data-composer-attachment="audio"
className="flex items-center gap-2 rounded-full border border-[color-mix(in_oklab,var(--foreground)_calc(20%*var(--contrast-edge-gain,1)),transparent)] bg-muted px-3 py-1.5 text-xs"
>
- <HeadphonesIcon className="size-3.5 text-muted-foreground" />
+ <HugeiconsIcon icon={AiSpeechIcon} className="size-3.5 text-muted-foreground" />
<span data-reload-snapshot-sensitive className="max-w-48 truncate">
{clip.name}
</span>
@@ -2978,7 +2978,7 @@ export function SharedComposer({
<DropdownMenuItem
onSelect={() => audioInputRef.current?.click()}
>
- <HeadphonesIcon />
+ <HugeiconsIcon icon={AiSpeechIcon} strokeWidth={2} />
Upload audio
</DropdownMenuItem>
)}
diff --git a/studio/frontend/src/lib/hugeicons-derived.ts b/studio/frontend/src/lib/hugeicons-derived.ts
index e64ad9b19aa..1fa4e62db69 100644
--- a/studio/frontend/src/lib/hugeicons-derived.ts
+++ b/studio/frontend/src/lib/hugeicons-derived.ts
@@ -84,32 +84,26 @@ const speechStroke = {
strokeWidth: "1.5",
} as const;
+// Audio everywhere: ai-speech without its sparkle, the last two bars filled out (5-21, 11-15) into the space it left.
export const AiSpeechIcon: IconSvgElement = [
["path", { d: "M12 7V17", ...speechStroke, key: "0" }],
- ["path", { d: "M16 11L16 19", ...speechStroke, key: "1" }],
- ["path", { d: "M20 11L20 14", ...speechStroke, key: "2" }],
+ ["path", { d: "M16 5L16 21", ...speechStroke, key: "1" }],
+ ["path", { d: "M20 11L20 15", ...speechStroke, key: "2" }],
["path", { d: "M8 3V21", ...speechStroke, key: "3" }],
["path", { d: "M4 9V15", ...speechStroke, 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",
- ...speechStroke,
- key: "5",
- },
- ],
];
+// Text to Speech: hugeicons' ai-speech as drawn, sparkle included.
export const TextToSpeechIcon: IconSvgElement = [
- ["path", { d: "M13 9L13 17", ...speechStroke, key: "0" }],
- ["path", { d: "M17 7L17 19", ...speechStroke, key: "1" }],
- ["path", { d: "M21 11L21 15", ...speechStroke, key: "2" }],
- ["path", { d: "M9 15V21", ...speechStroke, key: "3" }],
- ["path", { d: "M5 15V17", ...speechStroke, key: "4" }],
+ ["path", { d: "M12 7V17", ...speechStroke, key: "0" }],
+ ["path", { d: "M16 11L16 19", ...speechStroke, key: "1" }],
+ ["path", { d: "M20 11L20 14", ...speechStroke, key: "2" }],
+ ["path", { d: "M8 3V21", ...speechStroke, key: "3" }],
+ ["path", { d: "M4 9V15", ...speechStroke, key: "4" }],
[
"path",
{
- d: "M7.5 3.5V11M7.5 11H6M7.5 11H9M12 4.5C12 3.67157 11.3284 3 10.5 3H4.5C3.67157 3 3 3.67157 3 4.5",
+ 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",
...speechStroke,
key: "5",
},
diff --git a/studio/frontend/tests/file-viewer-polish.test.ts b/studio/frontend/tests/file-viewer-polish.test.ts
index de370de77af..f5a7cc51e5d 100644
--- a/studio/frontend/tests/file-viewer-polish.test.ts
+++ b/studio/frontend/tests/file-viewer-polish.test.ts
@@ -14,13 +14,20 @@ const { audioWorkflowTab } = await import("../src/features/audio/workflows.ts");
const read = (file: string) => readFileSync(new URL(`../src/${file}`, import.meta.url), "utf8");
-test("audio reads as ai-speech everywhere and Text to Speech as text-to-speech", () => {
+test("audio reads as the bars-only icon everywhere and Text to Speech as ai-speech with its sparkle", () => {
assert.equal(ATTACHMENT_KIND_ICONS.audio, AiSpeechIcon);
assert.equal(audioWorkflowTab("speak").icon, TextToSpeechIcon);
- assert.notEqual(AiSpeechIcon, TextToSpeechIcon);
+ const paths = (icon: unknown) => (icon as [string, { d: string }][]).map(([, attrs]) => attrs.d);
+ const sparkle = (d: string) => d.startsWith("M18.5 3.9375");
+ assert.ok(!paths(AiSpeechIcon).some(sparkle), "audio carries no sparkle");
+ assert.ok(paths(TextToSpeechIcon).some(sparkle), "Text to Speech keeps ai-speech's sparkle");
for (const file of ["components/app-sidebar.tsx", "components/command-palette.tsx", "features/library/file-kind.ts"]) {
assert.doesNotMatch(read(file), /AudioWave01Icon/, file);
}
+ // Chat's audio chips and Upload audio used lucide's headphones.
+ for (const file of ["features/chat/shared-composer.tsx", "components/assistant-ui/thread.tsx"]) {
+ assert.doesNotMatch(read(file), /HeadphonesIcon/, file);
+ }
});
test("a picture sits where fit puts it before it is measured, so opening it never jumps", () => {