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
chore: formatting
Gabriel Stein7ddc2ec67b0d
diff --git a/src/App.jsx b/src/App.jsxindex 4da074800..12f0f33e3 100644--- a/src/App.jsx+++ b/src/App.jsx@@ -99,12 +99,9 @@ export default function App() {setWindowInteractivity(false);}, [setWindowInteractivity]);- const { isRecording, isProcessing, toggleListening } = useAudioRecording(- toast,- {- onToggle: handleDictationToggle,- }- );+ const { isRecording, isProcessing, toggleListening } = useAudioRecording(toast, {+ onToggle: handleDictationToggle,+ });const handleClose = () => {window.electronAPI.hideWindow();diff --git a/src/components/ui/HotkeyInput.tsx b/src/components/ui/HotkeyInput.tsxindex 27ef9dc94..91aa9d2d2 100644--- a/src/components/ui/HotkeyInput.tsx+++ b/src/components/ui/HotkeyInput.tsx@@ -138,12 +138,9 @@ export function HotkeyInput({autoFocus = false,}: HotkeyInputProps) {const [isCapturing, setIsCapturing] = useState(false);- const [activeModifiers, setActiveModifiers] = useState<Set<string>>(- new Set()- );+ const [activeModifiers, setActiveModifiers] = useState<Set<string>>(new Set());const containerRef = useRef<HTMLDivElement>(null);- const isMac =- typeof navigator !== "undefined" && /Mac|Darwin/.test(navigator.platform);+ const isMac = typeof navigator !== "undefined" && /Mac|Darwin/.test(navigator.platform);const handleKeyDown = useCallback((e: React.KeyboardEvent<HTMLDivElement>) => {@@ -243,9 +240,7 @@ export function HotkeyInput({<div className="space-y-3"><div className="flex items-center justify-center gap-2"><div className="w-2 h-2 bg-red-500 rounded-full animate-pulse" />- <span className="text-sm font-medium text-gray-600">- Recording- </span>+ <span className="text-sm font-medium text-gray-600">Recording</span></div>{activeModifiers.size > 0 ? (@@ -264,9 +259,7 @@ export function HotkeyInput({</span></div>) : (- <p className="text-center text-gray-500">- Press any key or combination- </p>+ <p className="text-center text-gray-500">Press any key or combination</p>)}<p className="text-xs text-center text-gray-400">@@ -279,9 +272,7 @@ export function HotkeyInput({<div className="flex items-center justify-center gap-1.5">{hotkeyParts.map((part, i) => (<React.Fragment key={part}>- {i > 0 && (- <span className="text-gray-300 font-medium">+</span>- )}+ {i > 0 && <span className="text-gray-300 font-medium">+</span>}<kbd className="px-3 py-2 bg-gray-100 border border-gray-200 rounded-lg text-base font-semibold text-gray-800 shadow-sm">{part}</kbd>@@ -293,9 +284,7 @@ export function HotkeyInput({<kbd className="px-4 py-2 bg-gradient-to-b from-gray-50 to-gray-100 border border-gray-200 rounded-xl text-2xl shadow-sm">🌐</kbd>- <span className="text-sm font-medium text-gray-600">- Globe/Fn- </span>+ <span className="text-sm font-medium text-gray-600">Globe/Fn</span></div>) : (<kbd className="px-5 py-3 bg-gradient-to-b from-gray-50 to-gray-100 border border-gray-200 rounded-xl text-xl font-bold text-gray-800 shadow-sm min-w-[60px] text-center">@@ -308,12 +297,7 @@ export function HotkeyInput({) : (<div className="flex flex-col items-center gap-2 py-2"><div className="flex items-center gap-2 text-gray-400">- <svg- className="w-5 h-5"- fill="none"- stroke="currentColor"- viewBox="0 0 24 24"- >+ <svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><pathstrokeLinecap="round"strokeLinejoin="round"diff --git a/src/hooks/useHotkeyRegistration.ts b/src/hooks/useHotkeyRegistration.tsindex 236ba151d..bd9aca388 100644--- a/src/hooks/useHotkeyRegistration.ts+++ b/src/hooks/useHotkeyRegistration.ts@@ -66,13 +66,7 @@ export interface UseHotkeyRegistrationResult {export function useHotkeyRegistration(options: UseHotkeyRegistrationOptions = {}): UseHotkeyRegistrationResult {- const {- onSuccess,- onError,- showSuccessToast = true,- showErrorToast = true,- showAlert,- } = options;+ const { onSuccess, onError, showSuccessToast = true, showErrorToast = true, showAlert } = options;const [isRegistering, setIsRegistering] = useState(false);const [lastError, setLastError] = useState<string | null>(null);@@ -121,8 +115,7 @@ export function useHotkeyRegistration(if (!result?.success) {const errorMsg =- result?.message ||- "This key could not be registered. Please choose a different key.";+ result?.message || "This key could not be registered. Please choose a different key.";setLastError(errorMsg);if (showErrorToast && showAlert) {@@ -149,9 +142,7 @@ export function useHotkeyRegistration(return true;} catch (error) {const errorMsg =- error instanceof Error- ? error.message- : "Failed to register hotkey. Please try again.";+ error instanceof Error ? error.message : "Failed to register hotkey. Please try again.";setLastError(errorMsg);if (showErrorToast && showAlert) {