Whisper-Node Make Fails at Runtime
Closed this issue · 5 comments
dzlandis commented
I get the following error at start:
[whisper-node] Problem. whisper.pp not initialized. Current shelljs directory: C:\Project\node_modules\whisper-node\dist
[whisper-node] Attempting to run 'make' command in /whisper directory...
[whisper-node] Problem. 'make' command failed. Please run 'make' command in /whisper directory. Current shelljs directory: C:\Project\node_modules\whisper-node\dist
styler2go commented
Same here. Any solutions for windows?
styler2go commented
It seems like. I've decided to just get the whisper build from the repo and then use it like
import {execFile as exec} from "child_process";
transcribe(file): Promise<string> {
return new Promise((resolve, reject) => {
exec('lib/main.exe', ['--model', 'lib/ggml-base.bin', '-l', 'auto', '--file', file, '-otxt'], function (err, data) {
if (!err) {
const output = fs.readFileSync(file + '.txt', {encoding: 'utf8'});
fs.unlinkSync(file + '.txt')
resolve(output);
}
reject(err);
});
});
}
- Get a build from https://github.com/ggerganov/whisper.cpp/releases
- Get a model from https://huggingface.co/datasets/ggerganov/whisper.cpp/tree/main
ariym commented
I get the following error at start:
[whisper-node] Problem. whisper.pp not initialized. Current shelljs directory: C:\Project\node_modules\whisper-node\dist [whisper-node] Attempting to run 'make' command in /whisper directory... [whisper-node] Problem. 'make' command failed. Please run 'make' command in /whisper directory. Current shelljs directory: C:\Project\node_modules\whisper-node\dist
Downloader had an incorrect path which has been corrected in 0.2 package update. Issue resolved.
irisrumtub commented
Same problem, using version 0.2.11
KingCh1ll commented
Same issue here.