Spaces:
Sleeping
Sleeping
|
Download examples/addon.node/README.md from Xenobd/whisper.cpp: direct link, hf CLI and curl.
- Browser
- Download file 995 Bytes
-
https://huggingface.co/spaces/Xenobd/whisper.cpp/resolve/5b0631df7b77ddbbfb52c8516acec1f6fb511e4c/examples/addon.node/README.md
- Command line
-
hf download hf://spaces/Xenobd/whisper.cpp@5b0631df7b77ddbbfb52c8516acec1f6fb511e4c/examples/addon.node/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Xenobd/whisper.cpp/resolve/5b0631df7b77ddbbfb52c8516acec1f6fb511e4c/examples/addon.node/README.md
995 Bytes
addon
This is an addon demo that can perform whisper model reasoning in node and electron environments, based on cmake-js.
It can be used as a reference for using the whisper.cpp project in other node projects.
Install
npm install
Compile
Make sure it is in the project root directory and compiled with make-js.
npx cmake-js compile -T addon.node -B Release
For Electron addon and cmake-js options, you can see cmake-js and make very few configuration changes.
Such as appointing special cmake path:
npx cmake-js compile -c 'xxx/cmake' -T addon.node -B Release
Run
cd examples/addon.node
node index.js --language='language' --model='model-path' --fname_inp='file-path'
Because this is a simple Demo, only the above parameters are set in the node environment.
Other parameters can also be specified in the node environment.