Archived
fix for windows
This commit is contained in:
@@ -83,7 +83,9 @@ async function transcribeLocal(audioBuffer) {
|
|||||||
|
|
||||||
console.log(`Starting Whisper with model: ${currentModel}, GPU: ${gpuAcceleration}`);
|
console.log(`Starting Whisper with model: ${currentModel}, GPU: ${gpuAcceleration}`);
|
||||||
console.log('Whisper args:', whisperArgs.join(' '));
|
console.log('Whisper args:', whisperArgs.join(' '));
|
||||||
const whisperProcess = spawn('whisper', whisperArgs);
|
|
||||||
|
// Use python -m whisper for better Windows compatibility
|
||||||
|
const whisperProcess = spawn('python', ['-m', 'whisper', ...whisperArgs]);
|
||||||
|
|
||||||
let output = '';
|
let output = '';
|
||||||
let error = '';
|
let error = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user