Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
fix: correct FFmpeg availability types and optimize whisper-cpp download
Gabriel Steina0c9c9d83faf
diff --git a/package.json b/package.jsonindex eb59cc6c2..a52cdc7d0 100644--- a/package.json+++ b/package.json@@ -28,7 +28,8 @@"pack": "npm run build:renderer && CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --dir","predist": "npm run compile:globe && npm run download:whisper-cpp","dist": "npm run build:renderer && electron-builder",- "download:whisper-cpp": "node scripts/download-whisper-cpp.js",+ "download:whisper-cpp": "node scripts/download-whisper-cpp.js --current",+ "download:whisper-cpp:all": "node scripts/download-whisper-cpp.js --all","format:js": "eslint . --fix && cd src && eslint . --fix && prettier --write \"**/*.{js,jsx,ts,tsx,json,css,md}\"","format": "npm run format:js","format:check": "eslint . && cd src && eslint . && prettier --check \"**/*.{js,jsx,ts,tsx,json,css,md}\"",diff --git a/src/helpers/ipcHandlers.js b/src/helpers/ipcHandlers.jsindex b7558e8cd..431bf4a6c 100644--- a/src/helpers/ipcHandlers.js+++ b/src/helpers/ipcHandlers.js@@ -209,7 +209,7 @@ class IPCHandlers {return {success: false,error: "no_audio_data",- message: "No audio was recorded. Check your microphone settings.",+ message: "No audio detected",};}if (errorMessage.includes("model") && errorMessage.includes("not downloaded")) {diff --git a/src/types/electron.ts b/src/types/electron.tsindex 596b84b44..c68d0a837 100644--- a/src/types/electron.ts+++ b/src/types/electron.ts@@ -33,6 +33,24 @@ export interface WhisperModelsListResult {cache_dir: string;}+export interface FFmpegAvailabilityResult {+ available: boolean;+ path?: string;+ error?: string;+}++export interface AudioDiagnosticsResult {+ platform: string;+ arch: string;+ resourcesPath: string | null;+ isPackaged: boolean;+ ffmpeg: { available: boolean; path: string | null; error: string | null };+ whisperBinary: { available: boolean; path: string | null; error: string | null };+ whisperServer: { available: boolean; path: string | null };+ modelsDir: string;+ models: string[];+}+export interface UpdateCheckResult {updateAvailable: boolean;version?: string;@@ -271,7 +289,8 @@ declare global {}) => Promise<void>;// FFmpeg availability- checkFFmpegAvailability: () => Promise<boolean>;+ checkFFmpegAvailability: () => Promise<FFmpegAvailabilityResult>;+ getAudioDiagnostics: () => Promise<AudioDiagnosticsResult>;// System settings helpersopenMicrophoneSettings?: () => Promise<{ success: boolean; error?: string }>;