Skip to content

🎥 Make videos programmatically with React

Disable PowerShell input while extracting Whisper archives

Jonny Burgerc7846419cf90
diff --git a/packages/install-whisper-cpp/src/install-whisper-cpp.ts b/packages/install-whisper-cpp/src/install-whisper-cpp.ts
index 738dbefd5d..61ab01fdbf 100644
--- a/packages/install-whisper-cpp/src/install-whisper-cpp.ts
+++ b/packages/install-whisper-cpp/src/install-whisper-cpp.ts
@@ -95,6 +95,8 @@ const installForWindows = async ({
args: [
'-NoProfile',
'-NonInteractive',
+ '-InputFormat',
+ 'None',
'-Command',
'Expand-Archive -Force -LiteralPath $env:REMOTION_WHISPER_ARCHIVE -DestinationPath $env:REMOTION_WHISPER_DESTINATION -ErrorAction Stop',
],
diff --git a/packages/install-whisper-cpp/src/test/install-whisper-cpp.test.ts b/packages/install-whisper-cpp/src/test/install-whisper-cpp.test.ts
index 78609e4707..65b5e1efb1 100644
--- a/packages/install-whisper-cpp/src/test/install-whisper-cpp.test.ts
+++ b/packages/install-whisper-cpp/src/test/install-whisper-cpp.test.ts
@@ -32,7 +32,7 @@ test.skipIf(process.platform !== 'win32')(
process.chdir(project);
expect(
- await installWhisperCpp({to, version: '1.5.5', printOutput: false}),
+ await installWhisperCpp({to, version: '1.5.5', printOutput: true}),
).toEqual({alreadyExisted: false});
expect(readFileSync(path.join(to, 'main.exe'), 'utf8')).toBe(
executableContents,