Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix: fix whisper-models path

Gabriel Steinf2cd6038f1da
diff --git a/README.md b/README.md
index 810021f27..d205965e6 100644
--- a/README.md
+++ b/README.md
@@ -235,10 +235,10 @@ npm run build:linux # Linux
- **Settings**: Configure API keys, customize hotkeys, and manage permissions
### Uninstall & Cache Cleanup
-- **In-App**: Use *Settings → Speech to Text Processing → Local Model Storage → Remove Downloaded Models* to clear `~/.cache/openwhispr/models` (or `%USERPROFILE%\.cache\openwhispr\models` on Windows).
+- **In-App**: Use *Settings → General → Local Model Storage → Remove Downloaded Models* to clear `~/.cache/openwhispr/whisper-models` (or `%USERPROFILE%\.cache\openwhispr\whisper-models` on Windows).
- **Windows Uninstall**: The NSIS uninstaller automatically deletes the same cache directory.
- **Linux Packages**: `deb`/`rpm` post-uninstall scripts also remove cached models.
-- **macOS**: If you uninstall manually, remove `~/Library/Caches` or `~/.cache/openwhispr/models` if desired.
+- **macOS**: If you uninstall manually, remove `~/Library/Caches` or `~/.cache/openwhispr/whisper-models` if desired.
### Agent Naming & AI Processing
Once you've named your agent during setup, you can interact with it using multiple AI providers:
diff --git a/preload.js b/preload.js
index f8295fe58..5fac2d7d7 100644
--- a/preload.js
+++ b/preload.js
@@ -175,6 +175,7 @@ contextBridge.exposeInMainWorld("electronAPI", {
openMicrophoneSettings: () => ipcRenderer.invoke("open-microphone-settings"),
openSoundInputSettings: () => ipcRenderer.invoke("open-sound-input-settings"),
openAccessibilitySettings: () => ipcRenderer.invoke("open-accessibility-settings"),
+ openWhisperModelsFolder: () => ipcRenderer.invoke("open-whisper-models-folder"),
// Globe key listener for hotkey capture (macOS only)
onGlobeKeyPressed: (callback) => {
diff --git a/src/components/SettingsPage.tsx b/src/components/SettingsPage.tsx
index c7b5b8fb4..06ad1a8ae 100644
--- a/src/components/SettingsPage.tsx
+++ b/src/components/SettingsPage.tsx
@@ -1,7 +1,7 @@
import React, { useState, useCallback, useEffect, useRef } from "react";
import { Button } from "./ui/button";
import { Input } from "./ui/input";
-import { RefreshCw, Download, Command, Mic, Shield } from "lucide-react";
+import { RefreshCw, Download, Command, Mic, Shield, FolderOpen } from "lucide-react";
import MarkdownRenderer from "./ui/MarkdownRenderer";
import MicPermissionWarning from "./ui/MicPermissionWarning";
import MicrophoneSettings from "./ui/MicrophoneSettings";
@@ -95,8 +95,8 @@ export default function SettingsPage({ activeSection = "general" }: SettingsPage
const [isRemovingModels, setIsRemovingModels] = useState(false);
const cachePathHint =
typeof navigator !== "undefined" && /Windows/i.test(navigator.userAgent)
- ? "%USERPROFILE%\\.cache\\openwhispr\\models"
- : "~/.cache/openwhispr/models";
+ ? "%USERPROFILE%\\.cache\\openwhispr\\whisper-models"
+ : "~/.cache/openwhispr/whisper-models";
// Use centralized updater hook to prevent EventEmitter memory leaks
const {
@@ -740,14 +740,24 @@ export default function SettingsPage({ activeSection = "general" }: SettingsPage
Remove all downloaded Whisper models from your cache directory to reclaim disk
space. You can re-download any model later.
</p>
- <Button
- variant="destructive"
- onClick={handleRemoveModels}
- disabled={isRemovingModels}
- className="w-full"
- >
- {isRemovingModels ? "Removing models..." : "Remove Downloaded Models"}
- </Button>
+ <div className="flex gap-2">
+ <Button
+ variant="outline"
+ onClick={() => window.electronAPI?.openWhisperModelsFolder?.()}
+ className="flex-1"
+ >
+ <FolderOpen className="mr-2 h-4 w-4" />
+ Open Models Folder
+ </Button>
+ <Button
+ variant="destructive"
+ onClick={handleRemoveModels}
+ disabled={isRemovingModels}
+ className="flex-1"
+ >
+ {isRemovingModels ? "Removing..." : "Remove All"}
+ </Button>
+ </div>
<p className="text-xs text-rose-700">
Current cache location: <code>{cachePathHint}</code>
</p>
diff --git a/src/helpers/ipcHandlers.js b/src/helpers/ipcHandlers.js
index 2bbd9758d..e221f73f7 100644
--- a/src/helpers/ipcHandlers.js
+++ b/src/helpers/ipcHandlers.js
@@ -564,6 +564,17 @@ class IPCHandlers {
ipcMain.handle("open-microphone-settings", () => openSystemSettings("microphone"));
ipcMain.handle("open-sound-input-settings", () => openSystemSettings("sound"));
ipcMain.handle("open-accessibility-settings", () => openSystemSettings("accessibility"));
+
+ ipcMain.handle("open-whisper-models-folder", async () => {
+ try {
+ const modelsDir = this.whisperManager.getModelsDir();
+ await shell.openPath(modelsDir);
+ return { success: true };
+ } catch (error) {
+ debugLogger.error("Failed to open whisper models folder:", error);
+ return { success: false, error: error.message };
+ }
+ });
}
broadcastToWindows(channel, payload) {
diff --git a/src/types/electron.ts b/src/types/electron.ts
index 323739496..4f91e1a0b 100644
--- a/src/types/electron.ts
+++ b/src/types/electron.ts
@@ -275,6 +275,7 @@ declare global {
openMicrophoneSettings?: () => Promise<{ success: boolean; error?: string }>;
openSoundInputSettings?: () => Promise<{ success: boolean; error?: string }>;
openAccessibilitySettings?: () => Promise<{ success: boolean; error?: string }>;
+ openWhisperModelsFolder?: () => Promise<{ success: boolean; error?: string }>;
};
api?: {