Skip to content

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

fix: import Os top line

Gabriel Stein5533c2242d28
diff --git a/src/helpers/audioManager.js b/src/helpers/audioManager.js
index e7764aaa6..358a04da6 100644
--- a/src/helpers/audioManager.js
+++ b/src/helpers/audioManager.js
@@ -578,16 +578,14 @@ class AudioManager {
if (useReasoning) {
try {
- const preparedText = normalizedText;
-
logger.logReasoning("SENDING_TO_REASONING", {
- preparedTextLength: preparedText.length,
+ preparedTextLength: normalizedText.length,
model: reasoningModel,
provider: reasoningProvider,
});
const result = await this.processWithReasoningModel(
- preparedText,
+ normalizedText,
reasoningModel,
agentName
);
diff --git a/src/helpers/hotkeyManager.js b/src/helpers/hotkeyManager.js
index 6c3249085..7cfc40c95 100644
--- a/src/helpers/hotkeyManager.js
+++ b/src/helpers/hotkeyManager.js
@@ -67,9 +67,6 @@ class HotkeyManager {
};
}
- /**
- * Get alternative hotkey suggestions based on what the user tried
- */
getSuggestions(failedHotkey) {
const isCompound = failedHotkey.includes("+");
const suggestions = isCompound
diff --git a/src/helpers/whisperServer.js b/src/helpers/whisperServer.js
index e84b0d5e6..5557c3897 100644
--- a/src/helpers/whisperServer.js
+++ b/src/helpers/whisperServer.js
@@ -1,6 +1,7 @@
const { spawn } = require("child_process");
const fs = require("fs");
const net = require("net");
+const os = require("os");
const path = require("path");
const http = require("http");
const debugLogger = require("./debugLogger");
@@ -239,7 +240,7 @@ class WhisperServerManager {
stdio: ["ignore", "pipe", "pipe"],
windowsHide: true,
env: spawnEnv,
- cwd: require("os").tmpdir(),
+ cwd: os.tmpdir(),
});
let stderrBuffer = "";