yacineMTB / talk

Let's make sand talk
586 stars 43 forks source link

getting error MODULE NOT FOUND #9

Closed jmanhype closed 1 year ago

jmanhype commented 1 year ago

So I have gotten it to run the script succesfully

strau@James MINGW64 ~/Downloads/talk-master/talk-master (master) $ ./build.sh Starting Script... Installing npm dependencies in the current directory... npm WARN talk@0.0.1 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

added 19 packages from 17 contributors, updated 1 package and audited 349 packages in 7.688s

34 packages are looking for funding run npm fund for details

found 0 vulnerabilities

Do you want to turn CUBLAS ON? [y/n] n Installing npm dependencies for whisper.cpp examples... npm WARN whisper-addon@0.0.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/freebsd-arm64@0.17.19 (node_modules\@esbuild\freebsd-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/freebsd-arm64@0.17.19: wanted {"os":"freebsd","arch":"arm64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/darwin-x64@0.17.19 (node_modules\@esbuild\darwin-x64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/darwin-x64@0.17.19: wanted {"os":"darwin","arch":"x64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/android-arm@0.17.19 (node_modules\@esbuild\android-arm): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/android-arm@0.17.19: wanted {"os":"android","arch":"arm"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/android-x64@0.17.19 (node_modules\@esbuild\android-x64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/android-x64@0.17.19: wanted {"os":"android","arch":"x64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/freebsd-x64@0.17.19 (node_modules\@esbuild\freebsd-x64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/freebsd-x64@0.17.19: wanted {"os":"freebsd","arch":"x64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/android-arm64@0.17.19 (node_modules\@esbuild\android-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/android-arm64@0.17.19: wanted {"os":"android","arch":"arm64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/linux-arm@0.17.19 (node_modules\@esbuild\linux-arm): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/linux-arm@0.17.19: wanted {"os":"linux","arch":"arm"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/linux-arm64@0.17.19 (node_modules\@esbuild\linux-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/linux-arm64@0.17.19: wanted {"os":"linux","arch":"arm64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/linux-ia32@0.17.19 (node_modules\@esbuild\linux-ia32): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/linux-ia32@0.17.19: wanted {"os":"linux","arch":"ia32"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/linux-loong64@0.17.19 (node_modules\@esbuild\linux-loong64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/linux-loong64@0.17.19: wanted {"os":"linux","arch":"loong64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/darwin-arm64@0.17.19 (node_modules\@esbuild\darwin-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/darwin-arm64@0.17.19: wanted {"os":"darwin","arch":"arm64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/netbsd-x64@0.17.19 (node_modules\@esbuild\netbsd-x64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/netbsd-x64@0.17.19: wanted {"os":"netbsd","arch":"x64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/linux-s390x@0.17.19 (node_modules\@esbuild\linux-s390x): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/linux-s390x@0.17.19: wanted {"os":"linux","arch":"s390x"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/openbsd-x64@0.17.19 (node_modules\@esbuild\openbsd-x64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/openbsd-x64@0.17.19: wanted {"os":"openbsd","arch":"x64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/linux-x64@0.17.19 (node_modules\@esbuild\linux-x64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/linux-x64@0.17.19: wanted {"os":"linux","arch":"x64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/linux-ppc64@0.17.19 (node_modules\@esbuild\linux-ppc64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/linux-ppc64@0.17.19: wanted {"os":"linux","arch":"ppc64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/sunos-x64@0.17.19 (node_modules\@esbuild\sunos-x64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/sunos-x64@0.17.19: wanted {"os":"sunos","arch":"x64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/win32-arm64@0.17.19 (node_modules\@esbuild\win32-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/win32-arm64@0.17.19: wanted {"os":"win32","arch":"arm64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/linux-riscv64@0.17.19 (node_modules\@esbuild\linux-riscv64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/linux-riscv64@0.17.19: wanted {"os":"linux","arch":"riscv64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/linux-mips64el@0.17.19 (node_modules\@esbuild\linux-mips64el): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/linux-mips64el@0.17.19: wanted {"os":"linux","arch":"mips64el"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/win32-ia32@0.17.19 (node_modules\@esbuild\win32-ia32): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/win32-ia32@0.17.19: wanted {"os":"win32","arch":"ia32"} (current: {"os":"win32","arch":"x64"})

audited 402 packages in 4.311s

41 packages are looking for funding run npm fund for details

found 0 vulnerabilities

Compiling whisper.cpp examples... info find VS using VS2019 (16.11.33214.272) found at: info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools" info find VS run with --verbose for detailed information info TOOL Using Visual Studio 16 2019 generator. info CMD BUILD info RUN [ info RUN 'cmake', info RUN '--build', info RUN 'C:\Users\strau\Downloads\talk-master\talk-master\whisper.cpp\build', info RUN '--config', info RUN 'Release', info RUN '--target', info RUN 'whisper-addon' info RUN ] Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved.

whisper.vcxproj -> C:\Users\strau\Downloads\talk-master\talk-master\whisper.cpp\build\bin\Release\whisper.dll common.vcxproj -> C:\Users\strau\Downloads\talk-master\talk-master\whisper.cpp\build\examples\Release\common.lib whisper-addon.vcxproj -> C:\Users\strau\Downloads\talk-master\talk-master\whisper.cpp\build\bin\Release\whisper-addon.node Moving compiled whisper.cpp code to bindings directory... Installing npm dependencies for llama.cpp examples... npm WARN llama-addon@0.0.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

audited 329 packages in 1.648s

34 packages are looking for funding run npm fund for details

found 0 vulnerabilities

Compiling llama.cpp examples... info find VS using VS2019 (16.11.33214.272) found at: info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools" info find VS run with --verbose for detailed information info TOOL Using Visual Studio 16 2019 generator. info CMD BUILD info RUN [ info RUN 'cmake', info RUN '--build', info RUN 'C:\Users\strau\Downloads\talk-master\talk-master\llama.cpp\build', info RUN '--config', info RUN 'Release', info RUN '--target', info RUN 'llama-addon' info RUN ] Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved.

ggml.vcxproj -> C:\Users\strau\Downloads\talk-master\talk-master\llama.cpp\build\ggml.dir\Release\ggml.lib Auto build dll exports llama.vcxproj -> C:\Users\strau\Downloads\talk-master\talk-master\llama.cpp\build\bin\Release\llama.dll common.vcxproj -> C:\Users\strau\Downloads\talk-master\talk-master\llama.cpp\build\examples\common.dir\Release\common.lib Auto build dll exports llama-addon.vcxproj -> C:\Users\strau\Downloads\talk-master\talk-master\llama.cpp\build\bin\Release\llama-addon.node Moving compiled llama.cpp code to bindings directory... Do you want to download models? [y/n] n Skipping model download... Script completed successfully!

but when i go to npm run start I Get this error

strau@James MINGW64 ~/Downloads/talk-master/talk-master (master) $ npm run start

talk@0.0.1 start C:\Users\strau\Downloads\talk-master\talk-master npx ts-node ./index.ts

Error: Cannot find module './bindings/whisper/whisper-addon' Require stack:

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\strau\AppData\Roaming\npm-cache_logs\2023-06-13T09_43_32_959Z-debug.log 2023-06-13T09_43_32_959Z-debug.log

jmanhype commented 1 year ago

https://prnt.sc/q_izew-Dz6ut

jmanhype commented 1 year ago

strau@James MINGW64 ~/Downloads/talk-master/talk-master/whisper.cpp (master) $ npm run start

talk@0.0.1 start C:\Users\strau\Downloads\talk-master\talk-master npx ts-node ./index.ts

llama.cpp: loading model from models/llama/nous-hermes-13b.ggmlv3.q4_K_S.bin llama_model_load_internal: format = ggjt v3 (latest) llama_model_load_internal: n_vocab = 32001 llama_model_load_internal: n_ctx = 512 llama_model_load_internal: n_embd = 5120 llama_model_load_internal: n_mult = 256 llama_model_load_internal: n_head = 40 llama_model_load_internal: n_layer = 40 llama_model_load_internal: n_rot = 128 llama_model_load_internal: ftype = 14 (mostly Q4_K - Small) llama_model_load_internal: n_ff = 13824 llama_model_load_internal: n_parts = 1 llama_model_load_internal: model size = 13B llama_model_load_internal: ggml ctx size = 0.09 MB llama_model_load_internal: mem required = 9031.71 MB (+ 1608.00 MB per state) . llama_init_from_file: kv self size = 400.00 MB system_info: n_threads = 8 / 16 | AVX = 1 | AVX2 = 1 | AVX512 = 0 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | FMA = 1 | NEON = 0 | ARM_FMA = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 0 | SSE3 = 1 | VSX = 0 | whisper_init_from_file_no_state: loading model from 'models/whisper/ggml-tiny.en.bin' whisper_model_load: loading model whisper_model_load: n_vocab = 51864 whisper_model_load: n_audio_ctx = 1500 whisper_model_load: n_audio_state = 384 whisper_model_load: n_audio_head = 6 whisper_model_load: n_audio_layer = 4 whisper_model_load: n_text_ctx = 448 whisper_model_load: n_text_state = 384 whisper_model_load: n_text_head = 6 whisper_model_load: n_text_layer = 4 whisper_model_load: n_mels = 80 whisper_model_load: ftype = 1 whisper_model_load: qntvr = 0 whisper_model_load: type = 1 whisper_model_load: mem required = 201.00 MB (+ 3.00 MB per decoder) whisper_model_load: adding 1607 extra tokens whisper_model_load: model ctx = 73.62 MB whisper_model_load: model size = 73.54 MB whisper_init_state: kv self size = 2.62 MB whisper_init_state: kv cross size = 8.79 MB npm ERR! code ELIFECYCLE npm ERR! errno 3221225477 npm ERR! talk@0.0.1 start: npx ts-node ./index.ts npm ERR! Exit status 3221225477 npm ERR! npm ERR! Failed at the talk@0.0.1 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\strau\AppData\Roaming\npm-cache_logs\2023-06-13T11_29_30_834Z-debug.log /c/Program Files/nodejs/npm: line 37: 1999 Segmentation fault "$NODE_EXE" "$NPM_CLI_JS" "$@"

jmanhype commented 1 year ago

now I got it to work but it wont work with record. I have installed sox and restartred cpu

ghost commented 1 year ago

Apologies, it was a bug in the build script. Has been fixed in the PR #10

jmanhype commented 1 year ago

Apologies, it was a bug in the build script. Has been fixed in the PR #10

this is still giving me same error $ ./build.sh Starting Script... Installing npm dependencies in the current directory... npm WARN talk@0.0.1 No repository field.

audited 21 packages in 0.379s found 0 vulnerabilities

Do you want to turn CUBLAS ON? [y/n] y Installing npm dependencies for whisper.cpp examples... npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@3. I'll try to do my best with it!

esbuild@0.17.19 postinstall C:\Users\strau\Downloads\talk-master\talk-master\whisper.cpp\examples\addon.node\node_modules\esbuild node install.js

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^2.3.2 (node_modules\jest-haste-map\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/android-arm@0.17.19 (node_modules\esbuild\node_modules\@esbuild\android-arm): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/android-arm@0.17.19: wanted {"os":"android","arch":"arm"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/android-arm64@0.17.19 (node_modules\esbuild\node_modules\@esbuild\android-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/android-arm64@0.17.19: wanted {"os":"android","arch":"arm64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/android-x64@0.17.19 (node_modules\esbuild\node_modules\@esbuild\android-x64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/android-x64@0.17.19: wanted {"os":"android","arch":"x64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/darwin-arm64@0.17.19 (node_modules\esbuild\node_modules\@esbuild\darwin-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/darwin-arm64@0.17.19: wanted {"os":"darwin","arch":"arm64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/darwin-x64@0.17.19 (node_modules\esbuild\node_modules\@esbuild\darwin-x64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/darwin-x64@0.17.19: wanted {"os":"darwin","arch":"x64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/freebsd-arm64@0.17.19 (node_modules\esbuild\node_modules\@esbuild\freebsd-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/freebsd-arm64@0.17.19: wanted {"os":"freebsd","arch":"arm64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/freebsd-x64@0.17.19 (node_modules\esbuild\node_modules\@esbuild\freebsd-x64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/freebsd-x64@0.17.19: wanted {"os":"freebsd","arch":"x64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/linux-arm64@0.17.19 (node_modules\esbuild\node_modules\@esbuild\linux-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/linux-arm64@0.17.19: wanted {"os":"linux","arch":"arm64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/linux-ia32@0.17.19 (node_modules\esbuild\node_modules\@esbuild\linux-ia32): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/linux-ia32@0.17.19: wanted {"os":"linux","arch":"ia32"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/linux-arm@0.17.19 (node_modules\esbuild\node_modules\@esbuild\linux-arm): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/linux-arm@0.17.19: wanted {"os":"linux","arch":"arm"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/linux-mips64el@0.17.19 (node_modules\esbuild\node_modules\@esbuild\linux-mips64el): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/linux-mips64el@0.17.19: wanted {"os":"linux","arch":"mips64el"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/linux-ppc64@0.17.19 (node_modules\esbuild\node_modules\@esbuild\linux-ppc64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/linux-ppc64@0.17.19: wanted {"os":"linux","arch":"ppc64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/linux-loong64@0.17.19 (node_modules\esbuild\node_modules\@esbuild\linux-loong64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/linux-loong64@0.17.19: wanted {"os":"linux","arch":"loong64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/linux-riscv64@0.17.19 (node_modules\esbuild\node_modules\@esbuild\linux-riscv64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/linux-riscv64@0.17.19: wanted {"os":"linux","arch":"riscv64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/linux-x64@0.17.19 (node_modules\esbuild\node_modules\@esbuild\linux-x64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/linux-x64@0.17.19: wanted {"os":"linux","arch":"x64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/linux-s390x@0.17.19 (node_modules\esbuild\node_modules\@esbuild\linux-s390x): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/linux-s390x@0.17.19: wanted {"os":"linux","arch":"s390x"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/netbsd-x64@0.17.19 (node_modules\esbuild\node_modules\@esbuild\netbsd-x64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/netbsd-x64@0.17.19: wanted {"os":"netbsd","arch":"x64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/openbsd-x64@0.17.19 (node_modules\esbuild\node_modules\@esbuild\openbsd-x64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/openbsd-x64@0.17.19: wanted {"os":"openbsd","arch":"x64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/win32-arm64@0.17.19 (node_modules\esbuild\node_modules\@esbuild\win32-arm64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/win32-arm64@0.17.19: wanted {"os":"win32","arch":"arm64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/sunos-x64@0.17.19 (node_modules\esbuild\node_modules\@esbuild\sunos-x64): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/sunos-x64@0.17.19: wanted {"os":"sunos","arch":"x64"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @esbuild/win32-ia32@0.17.19 (node_modules\esbuild\node_modules\@esbuild\win32-ia32): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @esbuild/win32-ia32@0.17.19: wanted {"os":"win32","arch":"ia32"} (current: {"os":"win32","arch":"x64"}) npm WARN whisper-addon@0.0.0 No repository field.

added 379 packages from 422 contributors and audited 402 packages in 39.547s

41 packages are looking for funding run npm fund for details

found 0 vulnerabilities

Compiling whisper.cpp examples... npx: installed 70 in 3.639s info find VS using VS2019 (16.11.33214.272) found at: info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools" info find VS run with --verbose for detailed information info TOOL Using Visual Studio 16 2019 generator. info CMD CONFIGURE info find VS using VS2019 (16.11.33214.272) found at: info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools" info find VS run with --verbose for detailed information info RUN [ info RUN 'cmake', info RUN 'C:\Users\strau\Downloads\talk-master\talk-master\whisper.cpp', info RUN '--no-warn-unused-cli', info RUN '-G', info RUN 'Visual Studio 16 2019', info RUN '-A', info RUN 'x64', info RUN '-DCMAKE_JS_VERSION=7.2.1', info RUN '-DCMAKE_BUILD_TYPE=Release', info RUN '-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=C:\Users\strau\Downloads\talk-master\talk-master\whisper.cpp\build', info RUN '-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$:Debug>', info RUN '-DCMAKE_JS_INC=C:\Users\strau\.cmake-js\node-x64\v14.21.3\include\node', info RUN '-DCMAKE_JS_SRC=C:/Users/strau/AppData/Roaming/npm-cache/_npx/25076/node_modules/cmake-js/lib/cpp/win_delay_load_hook.cc', info RUN '-DNODE_RUNTIME=node', info RUN '-DNODE_RUNTIMEVERSION=14.21.3', info RUN '-DNODE_ARCH=x64', info RUN '-DWHISPER_CUBLAS=ON', info RUN '-DCMAKE_JS_LIB=C:\Users\strau\.cmake-js\node-x64\v14.21.3\win-x64\node.lib', info RUN '-DCMAKE_SHARED_LINKER_FLAGS=/DELAYLOAD:NODE.EXE' info RUN ] Not searching for unused variables given on the command line. CMake Warning (dev) in CMakeLists.txt: No project() command is present. The top-level CMakeLists.txt file must contain a literal, direct call to the project() command. Add a line of code such as

project(ProjectName)

near the top of the file, but after cmake_minimum_required().

CMake is pretending there is a "project(Project)" command on the first line. This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in CMakeLists.txt: cmake_minimum_required() should be called prior to this top-level project() call. Please see the cmake-commands(7) manual for usage documentation of both commands. This warning is for project developers. Use -Wno-dev to suppress it.

-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22621. -- The C compiler identification is MSVC 19.29.30147.0 -- The CXX compiler identification is MSVC 19.29.30147.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - not found -- Found Threads: TRUE CMake Error at CMakeLists.txt:28 (include): include could not find requested file:

DefaultTargetOptions

CMake Error at CMakeLists.txt:63 (add_subdirectory): add_subdirectory given source "addon.node" which is not an existing directory.

CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 3.27)

should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred! info REP Build has been failed, trying to do a full rebuild. info CMD CLEAN info RUN [ info RUN 'cmake', info RUN '-E', info RUN 'remove_directory', info RUN 'C:\Users\strau\Downloads\talk-master\talk-master\whisper.cpp\build' info RUN ] info CMD CONFIGURE info RUN [ info RUN 'cmake', info RUN 'C:\Users\strau\Downloads\talk-master\talk-master\whisper.cpp', info RUN '--no-warn-unused-cli', info RUN '-G', info RUN 'Visual Studio 16 2019', info RUN '-A', info RUN 'x64', info RUN '-DCMAKE_JS_VERSION=7.2.1', info RUN '-DCMAKE_BUILD_TYPE=Release', info RUN '-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=C:\Users\strau\Downloads\talk-master\talk-master\whisper.cpp\build', info RUN '-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$:Debug>', info RUN '-DCMAKE_JS_INC=C:\Users\strau\.cmake-js\node-x64\v14.21.3\include\node', info RUN '-DCMAKE_JS_SRC=C:/Users/strau/AppData/Roaming/npm-cache/_npx/25076/node_modules/cmake-js/lib/cpp/win_delay_load_hook.cc', info RUN '-DNODE_RUNTIME=node', info RUN '-DNODE_RUNTIMEVERSION=14.21.3', info RUN '-DNODE_ARCH=x64', info RUN '-DWHISPER_CUBLAS=ON', info RUN '-DCMAKE_JS_LIB=C:\Users\strau\.cmake-js\node-x64\v14.21.3\win-x64\node.lib', info RUN '-DCMAKE_SHARED_LINKER_FLAGS=/DELAYLOAD:NODE.EXE' info RUN ] Not searching for unused variables given on the command line. CMake Warning (dev) in CMakeLists.txt: No project() command is present. The top-level CMakeLists.txt file must contain a literal, direct call to the project() command. Add a line of code such as

project(ProjectName)

near the top of the file, but after cmake_minimum_required().

CMake is pretending there is a "project(Project)" command on the first line. This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in CMakeLists.txt: cmake_minimum_required() should be called prior to this top-level project() call. Please see the cmake-commands(7) manual for usage documentation of both commands. This warning is for project developers. Use -Wno-dev to suppress it.

-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22621. -- The C compiler identification is MSVC 19.29.30147.0 -- The CXX compiler identification is MSVC 19.29.30147.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - not found -- Found Threads: TRUE CMake Error at CMakeLists.txt:28 (include): include could not find requested file:

DefaultTargetOptions

CMake Error at CMakeLists.txt:63 (add_subdirectory): add_subdirectory given source "addon.node" which is not an existing directory.

CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 3.27)

should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!

yacineMTB commented 1 year ago

You're on windows, right? I think you might be on your own 😓 Let me know if you figure it out! I'm sure you'll be able to, with enough elbow grease!

yacineMTB commented 1 year ago

Going to close this, but please open an issue if you figure out how to run on windows if you think the instructions are helpful!

jmanhype commented 1 year ago

I got it to work sample works record doesmt needs to be Unix to use piper. No biggie i just create my own inference in python and react