You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
652 B
28 lines
652 B
rm -rf ./build
|
|
rm -rf ./examples/addon.node/whisper
|
|
|
|
npx cmake-js compile -T whisper-addon
|
|
|
|
mkdir ./examples/addon.node/whisper
|
|
cp ./build/Release/* ./examples/addon.node/whisper
|
|
|
|
rm -rf ./build
|
|
|
|
cd ./examples/addon.node
|
|
node ./index.js --model=../../models/tiny.en.bin --fname_inp=../../samples/jfk.wav
|
|
|
|
# pkg index.js --target node16-macos-arm64
|
|
|
|
# rm ./whisper/addon.node
|
|
|
|
# ./index --model=../../models/tiny.en.bin --fname_inp=../../samples/jfk.wav
|
|
|
|
# cd ..
|
|
|
|
# ./addon.node/index --model=../models/tiny.en.bin --fname_inp=../samples/jfk.wav
|
|
|
|
# cp ./index ../../index
|
|
|
|
# cd ../..
|
|
|
|
# ./index --model=./models/tiny.en.bin --fname_inp=./samples/jfk.wav |