nodejs-whisper
nodejs-whisper copied to clipboard
'make' command failed
> [email protected] start
> npx tsx src/index.ts
[Nodejs-whisper] Transcribing file: F:\Projects\Whisper\karasmsk.25.mp4
[Nodejs-whisper] Converting audio to wav File Type...
[Nodejs-whisper] whisper.cpp not initialized. F:\Projects\Whisper\node_modules\nodejs-whisper\dist
[Nodejs-whisper] Attempting to run 'make' command in /whisper directory...
process_begin: CreateProcess(NULL, uname -s, ...) failed.
Makefile:4: pipe: No error
process_begin: CreateProcess(NULL, uname -p, ...) failed.
Makefile:8: pipe: No error
process_begin: CreateProcess(NULL, uname -m, ...) failed.
Makefile:12: pipe: No error
process_begin: CreateProcess(NULL, which nvcc, ...) failed.
Makefile:16: pipe: No error
'cc' is not recognized as an internal or external command,
operable program or batch file.
'g++' is not recognized as an internal or external command,
operable program or batch file.
I whisper.cpp build info:
I UNAME_S:
I UNAME_P:
I UNAME_M:
I CFLAGS: -I. -O3 -DNDEBUG -std=c11 -fPIC -mfma -mf16c -mavx -mavx2
I CXXFLAGS: -I. -I./examples -O3 -DNDEBUG -std=c++11 -fPIC
I LDFLAGS:
I CC:
I CXX:
cc -I. -O3 -DNDEBUG -std=c11 -fPIC -mfma -mf16c -mavx -mavx2 -c ggml.c -o ggml.o
process_begin: CreateProcess(NULL, cc -I. -O3 -DNDEBUG -std=c11 -fPIC -mfma -mf16c -mavx -mavx2 -c ggml.c -o ggml.o, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [Makefile:259: ggml.o] Error 2
[Nodejs-whisper] 'make' command failed. Please run 'make' command in /whisper.cpp directory. Current shelljs directory: F:\Projects\Whisper\node_modules\nodejs-whisper\dist
PS F:\Projects\Whisper>
can you please show me your code , before trying to convert transcript you have to use this command to download model npx nodejs-whisper download
and if you are windows user then you also need to download make tool
Literally the whole code is
import { nodewhisper } from "nodejs-whisper";
async function main() {
let result = await nodewhisper("F:\\Projects\\Whisper\\karasmsk.25.mp4", {
modelName: "large",
autoDownloadModelName: "large",
whisperOptions: {
outputInText: true
}
});
console.log(result);
}
main().then();
and I did download make tool, I think using WinGet or Chocolatey
can you once refer to this and install g++ , code use this to compile some files to run modal https://www3.cs.stonybrook.edu/~alee/g++/g++.html