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: add JS fallback for bzip2 extraction on Windows 10
Alcahest56181535e3ff
diff --git a/package-lock.json b/package-lock.jsonindex 6fb80b6a0..bed6de2fa 100644--- a/package-lock.json+++ b/package-lock.json@@ -39,6 +39,7 @@"tailwind-merge": "^3.3.1","tar": "^7.4.3","tw-animate-css": "^1.3.4",+ "unbzip2-stream": "^1.4.3","unzipper": "^0.12.3","ws": "^8.19.0","zustand": "^5.0.11"@@ -16033,6 +16034,16 @@"node": "*"}},+ "node_modules/unbzip2-stream": {+ "version": "1.4.3",+ "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz",+ "integrity": "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==",+ "license": "MIT",+ "dependencies": {+ "buffer": "^5.2.1",+ "through": "^2.3.8"+ }+ },"node_modules/undici": {"version": "6.23.0","resolved": "https://registry.npmjs.org/undici/-/undici-6.23.0.tgz",diff --git a/package.json b/package.jsonindex efb064959..912d71209 100644--- a/package.json+++ b/package.json@@ -126,6 +126,7 @@"tailwind-merge": "^3.3.1","tar": "^7.4.3","tw-animate-css": "^1.3.4",+ "unbzip2-stream": "^1.4.3","unzipper": "^0.12.3","ws": "^8.19.0","zustand": "^5.0.11"diff --git a/src/helpers/parakeet.js b/src/helpers/parakeet.jsindex 086b7a29a..80523faeb 100644--- a/src/helpers/parakeet.js+++ b/src/helpers/parakeet.js@@ -2,6 +2,7 @@ const fs = require("fs");const fsPromises = require("fs").promises;const path = require("path");const { spawn } = require("child_process");+const { pipeline } = require("stream/promises");const debugLogger = require("./debugLogger");const {downloadFile,@@ -433,7 +434,22 @@ class ParakeetManager {}}- _runTarExtract(archivePath, extractDir) {+ async _runTarExtract(archivePath, extractDir) {+ try {+ await this._runSystemTar(archivePath, extractDir);+ return;+ } catch (err) {+ debugLogger.debug("System tar failed, falling back to JS extraction", {+ error: err.message,+ });+ }++ const unbzip2 = require("unbzip2-stream");+ const tar = require("tar");+ await pipeline(fs.createReadStream(archivePath), unbzip2(), tar.x({ cwd: extractDir }));+ }++ _runSystemTar(archivePath, extractDir) {return new Promise((resolve, reject) => {const tarProcess = spawn("tar", ["-xjf", archivePath, "-C", extractDir], {stdio: ["ignore", "pipe", "pipe"],