Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'make' command failed #16

Closed
TheChilliPL opened this issue Aug 31, 2023 · 3 comments
Closed

'make' command failed #16

TheChilliPL opened this issue Aug 31, 2023 · 3 comments

Comments

@TheChilliPL
Copy link

> whisper@1.0.0 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>
@ChetanXpro
Copy link
Owner

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

@TheChilliPL
Copy link
Author

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

@ChetanXpro
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants