The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(voice+ui): stop hiding the Piper fallback, and give the VRAM row words (#77)
purple296bd7fe7748
diff --git a/src/components/settings/SettingsPage.tsx b/src/components/settings/SettingsPage.tsxindex 6ae33b03..3c6aa327 100644--- a/src/components/settings/SettingsPage.tsx+++ b/src/components/settings/SettingsPage.tsx@@ -1462,6 +1462,13 @@ export function SettingsPage() {{ttsInstallError && (<p className="text-[0.55rem] text-red-400/90 leading-snug">{ttsInstallError}</p>)}+ {/* #77: read-aloud silently fell back to the system voice while this+ row showed a healthy green check — surface the recorded reason. */}+ {voiceSettings.ttsMode === 'piper' && voiceSettings.ttsFallbackReason && (+ <p className="text-[0.55rem] text-amber-400/90 leading-snug">+ {voiceSettings.ttsFallbackReason} If an antivirus quarantined Piper, whitelist it or reinstall the voice below.+ </p>+ )}{!ttsLoading && ttsStatus && !ttsStatus.available && !ttsInstalling && !ttsInstallError && (<p className="text-[0.55rem] text-gray-500 leading-snug">Required for read-aloud. Installs Piper + a neural voice locally (~63 MB).@@ -1779,7 +1786,7 @@ function TroubleshootSection() {? (report.host.vram_free_gb != null? `${report.host.vram_free_gb} / ${report.host.vram_total_gb} GB free`: `${report.host.vram_total_gb} GB`)- : ','}+ : 'not detected'}</span></div></div>diff --git a/src/hooks/useVoice.ts b/src/hooks/useVoice.tsindex 7f7d37a6..a106eacd 100644--- a/src/hooks/useVoice.ts+++ b/src/hooks/useVoice.ts@@ -351,11 +351,22 @@ export function useVoice() {const url = await synthesizeNeural(text, store.piperVoice);if (stopped()) return;await playNeuralAudio(url);+ store.setTtsFallbackReason(null);return;} catch (err) {if (stopped()) return;log.error("Neural TTS failed, falling back to browser voices", { err });+ // #77 (ElBiggus): this fallback was invisible — Piper installed+ // AND selected, yet every read-aloud spoke the system voice and+ // nothing in the app said why. Record the reason for Settings.+ store.setTtsFallbackReason(+ `Piper failed to speak (${err instanceof Error ? err.message : String(err)}). Read-aloud used the system voice instead.`,+ );}+ } else if (store.ttsMode !== "external") {+ store.setTtsFallbackReason(+ "Piper is installed but not responding, so read-aloud used the system voice instead.",+ );}}if (!ttsSupported || stopped()) return;diff --git a/src/stores/voiceStore.ts b/src/stores/voiceStore.tsindex aca9b26b..c3b2bcbc 100644--- a/src/stores/voiceStore.ts+++ b/src/stores/voiceStore.ts@@ -15,6 +15,10 @@ interface VoiceState {// Whether local neural TTS (Piper) is installed + a voice model is present.// Same transient/probe model as sttAvailable.ttsAvailable: boolean;+ /** #77 (ElBiggus): why the last read-aloud fell back to the system voice+ * although Piper is installed + selected. Transient, shown in Settings —+ * the silent fallback made this class of failure undiagnosable. */+ ttsFallbackReason: string | null;/** Last dictation/transcription failure (human-readable, e.g. the cloud* route's 429 "monthly credit budget exhausted") — shown by VoiceButton* instead of silently dropping the take. Transient. */@@ -50,6 +54,7 @@ interface VoiceState {setTranscript: (transcript: string) => void;setSttAvailable: (available: boolean) => void;setTtsAvailable: (available: boolean) => void;+ setTtsFallbackReason: (reason: string | null) => void;setSttError: (error: string | null) => void;setPiperVoice: (voice: string) => void;updateVoiceSettings: (@@ -83,6 +88,7 @@ export const useVoiceStore = create<VoiceState>()(transcript: "",sttAvailable: false,ttsAvailable: false,+ ttsFallbackReason: null,sttError: null,// Persisted settings — voice OFF by default (David 2026-06-07:@@ -109,6 +115,7 @@ export const useVoiceStore = create<VoiceState>()(setTranscript: (transcript) => set({ transcript }),setSttAvailable: (available) => set({ sttAvailable: available }),setTtsAvailable: (available) => set({ ttsAvailable: available }),+ setTtsFallbackReason: (reason) => set({ ttsFallbackReason: reason }),setSttError: (error) => set({ sttError: error }),setPiperVoice: (voice) => set({ piperVoice: voice }),