Skip to content

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

fix: remove redundant audio listener

Gabriel Stein0fdcc80a6ebd
diff --git a/src/App.jsx b/src/App.jsx
index a07378c12..c7669e633 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -135,34 +135,6 @@ export default function App() {
document.addEventListener("mousedown", handleClickOutside);
return () => document.removeEventListener("mousedown", handleClickOutside);
}, [isCommandMenuOpen]);
-
- useEffect(() => {
- let recording = false;
- const handleToggle = () => {
- setIsCommandMenuOpen(false);
- if (!recording && !isRecording && !isProcessing) {
- startRecording();
- recording = true;
- } else if (isRecording) {
- stopRecording();
- recording = false;
- }
- };
- const dispose = window.electronAPI.onToggleDictation(handleToggle);
- return () => {
- dispose?.();
- };
- }, [isRecording, isProcessing]);
-
- const toggleListening = () => {
- setIsCommandMenuOpen(false);
- if (!isRecording && !isProcessing) {
- startRecording();
- } else if (isRecording) {
- stopRecording();
- }
- };
-
useEffect(() => {
const handleKeyPress = (e) => {
if (e.key === "Escape") {