diff --git a/whisper-cpp-2023/native.sh b/whisper-cpp-2023/native.sh index 31c3c9c..79eaf89 100644 --- a/whisper-cpp-2023/native.sh +++ b/whisper-cpp-2023/native.sh @@ -5,7 +5,13 @@ if [ ! -d ./git.d ]; then fi cd ./git.d -make samples -make -bash ./models/download-ggml-model.sh tiny.en -time ./main -m ./models/ggml-tiny.en.bin -f samples/gb1.wav -t 4 +if [ ! -f ./samples/gb1.wav ]; then + make samples +fi +if [ ! -f ./main ]; then + make +fi +if [ ! -f ./models/ggml-${MODEL:-tiny.en}.bin ]; then + bash ./models/download-ggml-model.sh ${MODEL:-tiny.en} +fi +time ./main -m ./models/ggml-${MODEL:-tiny.en}.bin -f ./samples/gb1.wav -t 4