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
Spoken language picker for transcription models, and Audio → Transcribe on both engines
Claude51082919c84a
diff --git a/src/components/canvas/nodes.tsx b/src/components/canvas/nodes.tsxindex 9fd62410..c6d4ba43 100644--- a/src/components/canvas/nodes.tsx+++ b/src/components/canvas/nodes.tsx@@ -91,6 +91,7 @@ import {} from "@/lib/catalog/canvas";import { OPERATION_LABELS, type Engine, type MediaKind, type ModelDef, type OutputFile } from "@/lib/catalog/types";import { formatCost } from "@/lib/format";+import { spokenLanguageName, spokenLanguageOptions } from "@/lib/speech-languages";import { cn } from "@/lib/utils";import { NodeIcon, PORT_COLOR, useEditorActions, useEditorGlobals, useEditorSelector, useNodeResults, useNodeView, type EditorSnapshot, type NodeResults } from "./canvas-context";@@ -575,6 +576,20 @@ function ModelOptions({ id, model, data }: { id: string; model: ModelDef; data:</button>,);}+ // Transcribers: the language of the speech, detected unless you pick one.+ if (o.sourceLanguages?.length) {+ const codes = ["auto", ...spokenLanguageOptions(o.sourceLanguages).map((l) => l.code)];+ items.push(+ <OptionSelect+ key="spoken"+ label="Spoken language"+ value={p.sourceLanguage ?? "auto"}+ options={codes}+ onChange={(v) => set({ sourceLanguage: v === "auto" ? undefined : v })}+ format={(v) => (v === "auto" ? "Detect language" : spokenLanguageName(v))}+ />,+ );+ }if (o.audio === true)items.push(<button key="audio" onClick={() => set({ generateAudio: !(p.generateAudio ?? d.generateAudio ?? false) })} className={cn(chip, (p.generateAudio ?? d.generateAudio) && "bg-brand-faint text-brand-text hover:bg-brand-faint-hover")} aria-pressed={!!(p.generateAudio ?? d.generateAudio)}>diff --git a/src/components/studio/composer.tsx b/src/components/studio/composer.tsxindex 23ab52db..023d12e9 100644--- a/src/components/studio/composer.tsx+++ b/src/components/studio/composer.tsx@@ -312,12 +312,12 @@ export function Composer({ docked }: { docked: boolean }) {const demo = !!(model && status && status.demoMode !== "off" && !model.routes.some((r) => status.providers[r.provider]?.configured));const costText = costLabel({ demo, cost }, formatCost);- // Attachments: only when something is attached or a required slot is still empty (U8).+ // Attachments: only when something is attached, a required slot is still empty, or none of a "one of these" group is filled (U8).const kinds = [...attach.kinds];const hasAttachment = slots.some((s) => draft.slots[s.key]) || draft.refs.length > 0;// Tools whose only input is a list of clips (Join clips) keep their "Add clip" tile in view.const showAttachments =- (slots.length > 0 || !!config.multiRef) && (hasAttachment || !!slots.find((s) => s.required && !draft.slots[s.key]) || (!!config.multiRef && !showPrompt));+ (slots.length > 0 || !!config.multiRef) && (hasAttachment || !!missing || !!slots.find((s) => s.required && !draft.slots[s.key]) || (!!config.multiRef && !showPrompt));const collapsed = docked && !focused;// Docked and not focused, the tiles fold into one chip on the toolbar (the composer stays one line).const attached = [...slots.map((s) => draft.slots[s.key]), ...draft.refs].filter((v): v is SlotValue => !!v);diff --git a/src/components/studio/mode-switch-studio.tsx b/src/components/studio/mode-switch-studio.tsxindex a2e72a12..ab5554e8 100644--- a/src/components/studio/mode-switch-studio.tsx+++ b/src/components/studio/mode-switch-studio.tsx@@ -8,6 +8,7 @@ import {JOIN_CLIPS_STUDIO,MUSIC_STUDIO,SFX_STUDIO,+ TRANSCRIBE_STUDIO,TRANSLATE_STUDIO,UPSCALE_STUDIO,VIDEO_COLOR_MATCH_STUDIO,@@ -32,6 +33,7 @@ const CONFIGS: Record<HubKind, Record<string, StudioConfig>> = {dialogue: DIALOGUE_STUDIO,"voice-change": VOICE_CHANGE_STUDIO,translate: TRANSLATE_STUDIO,+ transcribe: TRANSCRIBE_STUDIO,sfx: SFX_STUDIO,music: MUSIC_STUDIO,video: FOLEY_STUDIO,diff --git a/src/components/studio/settings-panel.tsx b/src/components/studio/settings-panel.tsxindex f1b2ac3c..85a72f2e 100644--- a/src/components/studio/settings-panel.tsx+++ b/src/components/studio/settings-panel.tsx@@ -1,13 +1,15 @@"use client";import { ChevronDown, Loader2, Shuffle, SlidersHorizontal, Sparkles, Wand2 } from "lucide-react";-import { useId, useState } from "react";+import { useId, useMemo, useState } from "react";import { Button } from "@/components/ui/button";import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible";+import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";import { Switch } from "@/components/ui/switch";import { OPERATION_LABELS, type GenParams, type ModelDef, type Operation } from "@/lib/catalog/types";import { durationLabel, hiddenChanges, settingsSummary, type SettingsShape } from "@/lib/composer";import { ratioValue } from "@/lib/format";+import { spokenLanguageOptions } from "@/lib/speech-languages";import { cn } from "@/lib/utils";import { SliderControls } from "./audio-controls";import { Chip } from "./chip";@@ -86,6 +88,26 @@ function SeedInput({ value, onChange }: { value: number; onChange: (v: number) =);}+/** The language of the speech a transcriber hears: detected unless you pick one (sent as params.sourceLanguage). */+function SpokenLanguage({ codes, value, onChange }: { codes: string[]; value?: string; onChange: (v: string | undefined) => void }) {+ const options = useMemo(() => spokenLanguageOptions(codes), [codes]);+ return (+ <Select value={value && codes.includes(value) ? value : "auto"} onValueChange={(v) => onChange(v === "auto" ? undefined : v)}>+ <SelectTrigger className="w-full" aria-label="Spoken language">+ <SelectValue />+ </SelectTrigger>+ <SelectContent className="max-h-72">+ <SelectItem value="auto">Detect automatically</SelectItem>+ {options.map((l) => (+ <SelectItem key={l.code} value={l.code}>+ {l.name}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ );+}+function Toggle({ label, hint, checked, onChange, children }: { label: string; hint: string; checked: boolean; onChange: (v: boolean) => void; children?: React.ReactNode }) {const id = useId();return (@@ -210,6 +232,11 @@ function SettingsBody({ model, op, shape, params: p, setP, setExtra, negativePro<Segmented label={kind === "video" ? "Videos" : "Images"} options={[1, 2, 3, 4]} value={p.numOutputs ?? 1} onChange={(v) => setP({ numOutputs: v })} format={(v) => `×${v}`} /></Section>)}+ {shape.sourceLanguages && (+ <Section label="Spoken language">+ <SpokenLanguage codes={shape.sourceLanguages} value={p.sourceLanguage} onChange={(sourceLanguage) => setP({ sourceLanguage })} />+ </Section>+ )}{shape.multiShot && model && (<Section label="Multi-shot"><MultiShotControl model={model} params={p} onChange={setP} />diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.tsindex 3fe71e27..a184b533 100644--- a/src/lib/catalog/models.ts+++ b/src/lib/catalog/models.ts@@ -1,5 +1,6 @@import { CLOUD_MODELS } from "./cloud-models.generated";import { HIGGSFIELD_MODELS, HIGGSFIELD_ROUTES } from "./higgsfield-models.generated";+import { ASR_LANGUAGES, WHISPER_LANGUAGES } from "../speech-languages";import { LAST_FRAME_CHAIN, type ModelDef, type ModelRoute, type Operation } from "./types";/*@@ -914,7 +915,8 @@ const open: ModelDef[] = [tagline: "Timed captions from speech in 30 languages (auto-detect) · 4 GB GPU · Apache-2.0",badges: ["new", "top"],routes: [comfy("transcribe", "captions-qwen3-asr", "Qwen3-ASR 0.6B + ForcedAligner; one cue per line")],- options: { sliders: [{ param: "maxChars", label: "Characters per caption", min: 12, max: 60, step: 2, default: 32 }] },+ // "tl" is the node's second code for Filipino.+ options: { sliders: [{ param: "maxChars", label: "Characters per caption", min: 12, max: 60, step: 2, default: 32 }], sourceLanguages: Object.keys(ASR_LANGUAGES).filter((c) => c !== "tl") },}),o({id: "oss-captions-burnin",@@ -944,7 +946,7 @@ const open: ModelDef[] = [kind: "video",tagline: "Transcribes and burns word-by-word captions in one job, short clips (whole clip in RAM) · 6 GB GPU · non-commercial node pack, installed only with NC_PACKS=1",routes: [comfy("captions", "captions-whisper-burnin", "Whisper large-v3-turbo + ComfyUI-Whisper (CC-BY-NC-SA code)")],- options: { sliders: [{ param: "fontSize", label: "Text size (px)", min: 30, max: 160, step: 5, default: 90 }] },+ options: { sliders: [{ param: "fontSize", label: "Text size (px)", min: 30, max: 160, step: 5, default: 90 }], sourceLanguages: Object.keys(WHISPER_LANGUAGES) },}),o({id: "oss-qwen35-translate",diff --git a/src/lib/comfy.ts b/src/lib/comfy.tsindex 1b79c628..2eb1210c 100644--- a/src/lib/comfy.ts+++ b/src/lib/comfy.ts@@ -3,6 +3,7 @@* LoRA injection and size/frame math. No I/O here so it is easy to unit test.*/import type { LoraRef, MediaKind } from "./catalog/types";+import { ASR_LANGUAGES, WHISPER_LANGUAGES } from "./speech-languages";export type ComfyNode = { class_type: string; inputs: Record<string, unknown>; _meta?: { title?: string } };export type ComfyWorkflow = Record<string, ComfyNode>;@@ -501,37 +502,6 @@ export function bypassReference(wf: ComfyWorkflow, loaderId: string): ComfyWorkfreturn out;}-/** Languages ComfyUI-QwenASR's subtitle node accepts (besides "auto"), by ISO 639 code. */-const ASR_LANGUAGES: Record<string, string> = {- zh: "Chinese", en: "English", yue: "Cantonese", ar: "Arabic", de: "German", fr: "French", es: "Spanish", pt: "Portuguese",- id: "Indonesian", it: "Italian", ko: "Korean", ru: "Russian", th: "Thai", vi: "Vietnamese", ja: "Japanese", tr: "Turkish",- hi: "Hindi", ms: "Malay", nl: "Dutch", sv: "Swedish", da: "Danish", fi: "Finnish", pl: "Polish", cs: "Czech", fil: "Filipino",- tl: "Filipino", fa: "Persian", el: "Greek", hu: "Hungarian", mk: "Macedonian", ro: "Romanian",-};--/**- * Whisper's 100 languages (openai-whisper tokenizer.LANGUAGES), code → name. ComfyUI-Whisper's language combo- * offers the same names with a capital first letter ("Haitian creole", "Tagalog").- */-const WHISPER_LANGUAGES: Record<string, string> = Object.fromEntries(- (- "en english,zh chinese,de german,es spanish,ru russian,ko korean,fr french,ja japanese,pt portuguese,tr turkish,pl polish,ca catalan," +- "nl dutch,ar arabic,sv swedish,it italian,id indonesian,hi hindi,fi finnish,vi vietnamese,he hebrew,uk ukrainian,el greek,ms malay," +- "cs czech,ro romanian,da danish,hu hungarian,ta tamil,no norwegian,th thai,ur urdu,hr croatian,bg bulgarian,lt lithuanian,la latin," +- "mi maori,ml malayalam,cy welsh,sk slovak,te telugu,fa persian,lv latvian,bn bengali,sr serbian,az azerbaijani,sl slovenian,kn kannada," +- "et estonian,mk macedonian,br breton,eu basque,is icelandic,hy armenian,ne nepali,mn mongolian,bs bosnian,kk kazakh,sq albanian," +- "sw swahili,gl galician,mr marathi,pa punjabi,si sinhala,km khmer,sn shona,yo yoruba,so somali,af afrikaans,oc occitan,ka georgian," +- "be belarusian,tg tajik,sd sindhi,gu gujarati,am amharic,yi yiddish,lo lao,uz uzbek,fo faroese,ht haitian creole,ps pashto,tk turkmen," +- "nn nynorsk,mt maltese,sa sanskrit,lb luxembourgish,my myanmar,bo tibetan,tl tagalog,mg malagasy,as assamese,tt tatar,haw hawaiian," +- "ln lingala,ha hausa,ba bashkir,jw javanese,su sundanese,yue cantonese"- )- .split(",")- .map((pair) => {- const i = pair.indexOf(" ");- const name = pair.slice(i + 1);- return [pair.slice(0, i), name.charAt(0).toUpperCase() + name.slice(1)];- }),-);/** Codes people use that Whisper spells differently. */const WHISPER_ALIASES: Record<string, string> = { fil: "tl", jv: "jw", iw: "he", nb: "no", zh_hans: "zh" };diff --git a/src/lib/composer.ts b/src/lib/composer.tsindex 96b146a0..a6433c2f 100644--- a/src/lib/composer.ts+++ b/src/lib/composer.ts@@ -4,6 +4,7 @@* nothing in this file pulls the model list into the browser bundle.*/import type { Engine, GenParams, InputSlot, MediaKind, ModelDef, Operation, Preset } from "./catalog/types";+import { spokenLanguageName } from "./speech-languages";// ---------------------------------------------------------------------------// Settings summary ("16:9 · 720p · 5s · ×1")@@ -29,6 +30,8 @@ export interface SettingsShape {enhance: boolean;sliders: boolean;negativePrompt: boolean;+ /** The spoken languages a transcriber can be told (unset = it detects): the "Spoken language" picker. */+ sourceLanguages: string[] | null;}/**@@ -58,6 +61,7 @@ export function settingsShape(enhance: showPrompt,sliders: !!o.sliders?.length,negativePrompt: !!o.negativePrompt,+ sourceLanguages: o.sourceLanguages?.length ? o.sourceLanguages : null,};}@@ -77,6 +81,8 @@ export function settingsSummary(shape: SettingsShape, params: GenParams, model?:if (shape.draft && params.draft) parts.push("Draft");if (shape.audio && params.generateAudio === false) parts.push("No audio");if (shape.enhance && params.enhancePrompt) parts.push("Enhance");+ // Detecting the language is the default, so only a picked one is worth a word.+ if (shape.sourceLanguages && params.sourceLanguage) parts.push(spokenLanguageName(params.sourceLanguage));return parts;}diff --git a/src/lib/hubs.ts b/src/lib/hubs.tsindex d3da001a..fe8bc877 100644--- a/src/lib/hubs.ts+++ b/src/lib/hubs.ts@@ -15,6 +15,7 @@ export const HUB_MODES: Record<HubKind, { id: string; label: string }[]> = {{ id: "dialogue", label: "Dialogue" },{ id: "voice-change", label: "Voice change" },{ id: "translate", label: "Translate" },+ { id: "transcribe", label: "Transcribe" },{ id: "sfx", label: "Sound effects" },{ id: "music", label: "Music" },{ id: "video", label: "Sound for video" },diff --git a/src/lib/speech-languages.ts b/src/lib/speech-languages.tsnew file mode 100644index 00000000..fc0bd6de--- /dev/null+++ b/src/lib/speech-languages.ts@@ -0,0 +1,73 @@+/**+ * Spoken languages: what the open transcribers' ComfyUI nodes take (Qwen3-ASR, ComfyUI-Whisper),+ * and a display name for any ISO code a model lists (the composer's "Spoken language" picker).+ * Plain data, shared by the catalog (the open models' `sourceLanguages`), the ComfyUI provider+ * (src/lib/comfy.ts maps a code to the node's value) and the UI.+ */++/** Languages ComfyUI-QwenASR's subtitle node accepts (besides "auto"), by ISO 639 code. */+export const ASR_LANGUAGES: Record<string, string> = {+ zh: "Chinese", en: "English", yue: "Cantonese", ar: "Arabic", de: "German", fr: "French", es: "Spanish", pt: "Portuguese",+ id: "Indonesian", it: "Italian", ko: "Korean", ru: "Russian", th: "Thai", vi: "Vietnamese", ja: "Japanese", tr: "Turkish",+ hi: "Hindi", ms: "Malay", nl: "Dutch", sv: "Swedish", da: "Danish", fi: "Finnish", pl: "Polish", cs: "Czech", fil: "Filipino",+ tl: "Filipino", fa: "Persian", el: "Greek", hu: "Hungarian", mk: "Macedonian", ro: "Romanian",+};++/**+ * Whisper's 100 languages (openai-whisper tokenizer.LANGUAGES), code → name. ComfyUI-Whisper's language combo+ * offers the same names with a capital first letter ("Haitian creole", "Tagalog").+ */+export const WHISPER_LANGUAGES: Record<string, string> = Object.fromEntries(+ (+ "en english,zh chinese,de german,es spanish,ru russian,ko korean,fr french,ja japanese,pt portuguese,tr turkish,pl polish,ca catalan," ++ "nl dutch,ar arabic,sv swedish,it italian,id indonesian,hi hindi,fi finnish,vi vietnamese,he hebrew,uk ukrainian,el greek,ms malay," ++ "cs czech,ro romanian,da danish,hu hungarian,ta tamil,no norwegian,th thai,ur urdu,hr croatian,bg bulgarian,lt lithuanian,la latin," ++ "mi maori,ml malayalam,cy welsh,sk slovak,te telugu,fa persian,lv latvian,bn bengali,sr serbian,az azerbaijani,sl slovenian,kn kannada," ++ "et estonian,mk macedonian,br breton,eu basque,is icelandic,hy armenian,ne nepali,mn mongolian,bs bosnian,kk kazakh,sq albanian," ++ "sw swahili,gl galician,mr marathi,pa punjabi,si sinhala,km khmer,sn shona,yo yoruba,so somali,af afrikaans,oc occitan,ka georgian," ++ "be belarusian,tg tajik,sd sindhi,gu gujarati,am amharic,yi yiddish,lo lao,uz uzbek,fo faroese,ht haitian creole,ps pashto,tk turkmen," ++ "nn nynorsk,mt maltese,sa sanskrit,lb luxembourgish,my myanmar,bo tibetan,tl tagalog,mg malagasy,as assamese,tt tatar,haw hawaiian," ++ "ln lingala,ha hausa,ba bashkir,jw javanese,su sundanese,yue cantonese"+ )+ .split(",")+ .map((pair) => {+ const i = pair.indexOf(" ");+ const name = pair.slice(i + 1);+ return [pair.slice(0, i), name.charAt(0).toUpperCase() + name.slice(1)];+ }),+);++const NAMES: Record<string, string> = { ...WHISPER_LANGUAGES, ...ASR_LANGUAGES, nb: "Norwegian", jv: "Javanese" };++let display: Intl.DisplayNames | null | undefined;++/** "de" → "German", "yue" → "Cantonese", "jw" → "Javanese": the browser's (or Node's) English name, else the tables', else the code. */+export function spokenLanguageName(code: string): string {+ if (display === undefined) {+ try {+ display = new Intl.DisplayNames(["en"], { type: "language" });+ } catch {+ display = null;+ }+ }+ let name: string | undefined;+ try {+ name = display?.of(code);+ } catch {+ // Not a well-formed language tag (Whisper's "jw").+ }+ return name && name.toLowerCase() !== code.toLowerCase() ? name : (NAMES[code] ?? code);+}++/** A model's spoken-language codes as picker entries, by name (duplicates and aliases of one name dropped). */+export function spokenLanguageOptions(codes: readonly string[]): { code: string; name: string }[] {+ const seen = new Set<string>();+ const out: { code: string; name: string }[] = [];+ for (const code of codes) {+ const name = spokenLanguageName(code);+ if (seen.has(name)) continue;+ seen.add(name);+ out.push({ code, name });+ }+ return out.sort((a, b) => a.name.localeCompare(b.name, "en"));+}diff --git a/src/lib/studios.ts b/src/lib/studios.tsindex 3274b84f..493bbc46 100644--- a/src/lib/studios.ts+++ b/src/lib/studios.ts@@ -187,6 +187,25 @@ export const TRANSLATE_STUDIO: StudioConfig = {hidePrompt: true,};+export const TRANSCRIBE_STUDIO: StudioConfig = {+ feature: "transcribe",+ title: "Audio",+ hero: "Turn speech into text",+ subtitle: "Timed lines from a recording or a video. Copy them, or download .srt and .vtt captions.",+ placeholder: "",+ kind: "text",+ ops: ["transcribe"],+ feed: { kind: "text", features: ["transcribe"] },+ slots: [+ { key: "audio", label: "Recording", accept: "audio" },+ { key: "video", label: "Video", accept: "video" },+ ],+ anyOf: [["audio", "video"]],+ defaultModels: { cloud: "scribe-v2", open: "oss-qwen3-asr" },+ promptOptional: true,+ hidePrompt: true,+};+export const SFX_STUDIO: StudioConfig = {feature: "audio",title: "Audio",diff --git a/tests/composer.test.ts b/tests/composer.test.tsindex c501846e..d843c90a 100644--- a/tests/composer.test.ts+++ b/tests/composer.test.ts@@ -21,8 +21,11 @@ import {toggleIn,type Attachment,} from "@/lib/composer";-import { appStudio, EDIT_STUDIO, IMAGE_STUDIO, JOIN_CLIPS_STUDIO, LIPSYNC_STUDIO, VIDEO_STUDIO } from "@/lib/studios";+import { appStudio, EDIT_STUDIO, IMAGE_STUDIO, JOIN_CLIPS_STUDIO, LIPSYNC_STUDIO, TRANSCRIBE_STUDIO, VIDEO_STUDIO } from "@/lib/studios";import { studioCatalog } from "@/lib/studio-catalog";+import { buildPayload } from "@/lib/catalog/payload";+import { asrLanguage, whisperLanguage } from "@/lib/comfy";+import { spokenLanguageName, spokenLanguageOptions } from "@/lib/speech-languages";const model = (id: string) => {const m = getModel(id);@@ -68,6 +71,30 @@ describe("settings summary", () => {expect(settingsShape(undefined, "concat", "video", false).count).toBe(false);});+ it("offers the spoken language for transcribers on both engines, detected by default, sent where the API reads it", () => {+ for (const id of ["scribe-v2", "wizper", "oss-qwen3-asr"]) {+ const m = model(id);+ const shape = settingsShape(m, undefined, "text", false);+ expect(shape.sourceLanguages, id).toEqual(m.options.sourceLanguages);+ // Detect automatically is the default: nothing on the chip, nothing sent.+ expect(settingsSummary(shape, {}, m)).toEqual([]);+ expect(settingsSummary(shape, { sourceLanguage: "es" }, m)).toEqual(["Spanish"]);+ }+ expect(settingsShape(model("nano-banana-pro"), "t2i", "image", true).sourceLanguages).toBeNull();+ // The picked code reaches each API's own language field (Scribe's language_code) or the ComfyUI node's name.+ const scribe = model("scribe-v2").routes[0].map!;+ expect(buildPayload(scribe, { audio: "a.mp3", sourceLanguage: "es" })).toMatchObject({ language_code: "es" });+ for (const code of model("oss-qwen3-asr").options.sourceLanguages!) expect(asrLanguage(code), code).not.toBe("auto");+ for (const code of model("oss-captions-whisper").options.sourceLanguages!) expect(whisperLanguage(code), code).not.toBe("auto");+ });++ it("names spoken languages for the picker, by name and once each", () => {+ expect(["de", "yue", "jw", "fil"].map(spokenLanguageName)).toEqual(["German", "Cantonese", "Javanese", "Filipino"]);+ const options = spokenLanguageOptions(["fr", "en", "de", "en"]);+ expect(options.map((o) => o.name)).toEqual(["English", "French", "German"]);+ expect(spokenLanguageOptions(model("whisper").options.sourceLanguages!).length).toBeGreaterThan(90);+ });+it("counts the changes the chip doesn't spell out", () => {const m = model("elevenlabs-v4");const slider = m.options.sliders![0];@@ -242,3 +269,15 @@ describe("studio catalog slice", () => {expect(edit.models.map((m) => m.id)).toEqual(expect.arrayContaining([EDIT_STUDIO.defaultModels.cloud, EDIT_STUDIO.defaultModels.open]));});});++describe("Audio → Transcribe", () => {+ it("lists the transcribers of both engines, each with its spoken languages, and asks for a recording or a video", () => {+ const ids = studioCatalog(TRANSCRIBE_STUDIO).models.map((m) => m.id);+ expect(ids).toEqual(expect.arrayContaining(["scribe-v2", "wizper", "whisper", "oss-qwen3-asr"]));+ expect(filterModels(studioCatalog(TRANSCRIBE_STUDIO).models, { ops: TRANSCRIBE_STUDIO.ops }).every((m) => m.options.sourceLanguages?.length)).toBe(true);+ const missing = firstMissingSlot(TRANSCRIBE_STUDIO.slots, {}, TRANSCRIBE_STUDIO.anyOf);+ expect(blockerFor({ model: true, missing, uploading: false, promptMissing: false })).toEqual({ message: "Add a recording or a video", slot: "audio" });+ expect(firstMissingSlot(TRANSCRIBE_STUDIO.slots, { video: att("v", "video") }, TRANSCRIBE_STUDIO.anyOf)).toBeUndefined();+ });+});+