nodejs-whisper icon indicating copy to clipboard operation
nodejs-whisper copied to clipboard

error when installing with windows

Open LucianoAPP opened this issue 2 years ago • 8 comments

image

main.exe -m C:\Developer\Pruebas\whipser-test\node_modules\nodejs-whisper\cpp\whisper.cpp\models\ggml-tiny.bin -f C:\Developer\Pruebas\whipser-test\node_modules\nodejs-whisper\cpp\whisper.cpp\samples\jfk.wav [Nodejs-whisper] Attempting to compile model...

"cc" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable. "head" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable. I whisper.cpp build info: I UNAME_S: I UNAME_P: I UNAME_M: I CFLAGS: -I. -O3 -DNDEBUG -std=c11 -fPIC -D_XOPEN_SOURCE=600 -pthread I CXXFLAGS: -I. -I./examples -O3 -DNDEBUG -std=c++11 -fPIC -D_XOPEN_SOURCE=600 -pthread I LDFLAGS: I CC: I CXX:

cc -I. -O3 -DNDEBUG -std=c11 -fPIC -D_XOPEN_SOURCE=600 -pthread -c ggml.c -o ggml.o process_begin: CreateProcess(NULL, uname -s, ...) failed. process_begin: CreateProcess(NULL, uname -p, ...) failed. process_begin: CreateProcess(NULL, uname -m, ...) failed. process_begin: CreateProcess(NULL, which nvcc, ...) failed. Makefile:299: recipe for target 'ggml.o' failed process_begin: CreateProcess(NULL, cc -I. -O3 -DNDEBUG -std=c11 -fPIC -D_XOPEN_SOURCE=600 -pthread -c ggml.c -o ggml.o, ...) failed. make (e=2): El sistema no puede encontrar el archivo especificado. make: *** [ggml.o] Error 2

LucianoAPP avatar Dec 08 '23 23:12 LucianoAPP

It looks like your Windows environment is missing some necessary tools for compiling the code. You'll need to:

  1. Install a C compiler, such as GCC. You can get it through MinGW or by installing Cygwin.
  2. Ensure that the cc command is in your system PATH.
  3. Install Unix-like utilities or use an environment like Git Bash or Windows Subsystem for Linux (WSL) that provides these tools (uname, head, etc.).

ChetanXpro avatar Dec 12 '23 05:12 ChetanXpro

Thanks for reaching out! Since there hasn't been any activity on this issue for the past 1 months, I'm going to close it now. Feel free to reopen it if you have more questions or need further assistance in the future.

ChetanXpro avatar Jan 29 '24 16:01 ChetanXpro

Hey @ChetanXpro I might be wrong, but my build seem to be succeeded, but I still always end up in this condition: if (!shelljs_1.default.which(WHISPER_CPP_MAIN_PATH)) { which prevents me from running any command.

gabrielmicko avatar Apr 21 '24 13:04 gabrielmicko

I think the reason is because WHISPER_CPP_MAIN_PATH is ./main and not ./main.exe therefore .which function will return a wrong result.

gabrielmicko avatar Apr 21 '24 13:04 gabrielmicko

I think the reason is because WHISPER_CPP_MAIN_PATH is ./main and not ./main.exe therefore .which function will return a wrong result.

Thanks @gabrielmicko , i will look into this issue.

ChetanXpro avatar Apr 22 '24 10:04 ChetanXpro

Thank you so much. It might be just me, I am not sure. I had a lot of issues creating the whisper.cpp build. I would be happy if there was a clear instruction on what to do to run their project on freshly installed windows as I am not really familiar with c++ dev environment. I would also like to create a build that uses Nvida graphics card. In case I succeed I could contribute into adding more docs.

gabrielmicko avatar Apr 22 '24 10:04 gabrielmicko

That will be great. When I built this package, I didn't have Windows to test it, so now that I have Windows, I can test it on this platform and fix any bugs.

ChetanXpro avatar Apr 22 '24 19:04 ChetanXpro

how much time doest it take to transcribe 10 min long audio

Erarshad avatar Jul 31 '24 14:07 Erarshad

@Erarshad It depends on how good your CPU is

ChetanXpro avatar Dec 13 '24 13:12 ChetanXpro