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
added SpeechRecognition declarations and missing type packages
samit3fb9b4c056ec
diff --git a/studio/frontend/src/features/chat/shared-composer.tsx b/studio/frontend/src/features/chat/shared-composer.tsxindex 5ddcb3947fa..855b83ee09f 100644--- a/studio/frontend/src/features/chat/shared-composer.tsx+++ b/studio/frontend/src/features/chat/shared-composer.tsx@@ -38,7 +38,6 @@ function fileToBase64DataURL(file: File): Promise<string> {}function useDictation(- textareaRef: React.RefObject<HTMLTextAreaElement | null>,setText: (value: string | ((prev: string) => string)) => void,) {const [isDictating, setIsDictating] = useState(false);@@ -188,7 +187,6 @@ export function SharedComposer({const fileInputRef = useRef<HTMLInputElement>(null);const { isDictating, start: startDictation, stop: stopDictation, supported: dictationSupported } = useDictation(- textareaRef,setText,);diff --git a/studio/frontend/src/speech-recognition.d.ts b/studio/frontend/src/speech-recognition.d.tsnew file mode 100644index 00000000000..c583b200a6f--- /dev/null+++ b/studio/frontend/src/speech-recognition.d.ts@@ -0,0 +1,49 @@+/**+ * Minimal Web Speech API (Speech Recognition) types for browsers that support it.+ * Full types: @types/dom-speech-recognition+ */+interface SpeechRecognitionResultList {+ readonly length: number;+ item(index: number): SpeechRecognitionResult;+ [index: number]: SpeechRecognitionResult;+}++interface SpeechRecognitionResult {+ readonly length: number;+ readonly isFinal: boolean;+ item(index: number): SpeechRecognitionAlternative;+ [index: number]: SpeechRecognitionAlternative;+}++interface SpeechRecognitionAlternative {+ readonly transcript: string;+ readonly confidence: number;+}++interface SpeechRecognitionEvent extends Event {+ readonly resultIndex: number;+ readonly results: SpeechRecognitionResultList;+}++interface SpeechRecognition extends EventTarget {+ continuous: boolean;+ interimResults: boolean;+ lang: string;+ onresult: ((event: SpeechRecognitionEvent) => void) | null;+ onerror: ((event: Event) => void) | null;+ onend: (() => void) | null;+ start(): void;+ stop(): void;+ abort(): void;+}++interface SpeechRecognitionConstructor {+ new (): SpeechRecognition;+}++interface Window {+ SpeechRecognition?: SpeechRecognitionConstructor;+ webkitSpeechRecognition?: SpeechRecognitionConstructor;+}++declare var SpeechRecognition: SpeechRecognitionConstructor | undefined;