diff --git a/whisper-cpp-2023/compare.sh b/whisper-cpp-2023/compare.sh index 37ddbbb..1e2d9b6 100644 --- a/whisper-cpp-2023/compare.sh +++ b/whisper-cpp-2023/compare.sh @@ -1 +1,7 @@ -m=models/ggml-tiny.en.bin; f=git.d/samples/jfk.wav; time MODEL=$m WAV=$f rust-whisper 2>&1 | tail; time ./c-whisper -m $m -f $f -t 4 2>&1 | tail +export P=${1:-1} +export MODEL=${2:-models/ggml-tiny.en.bin} +export WAV=${3:-git.d/samples/jfk.wav} +echo === RUST +time rust-whisper 2>&1 | tail -n 4 +echo === C +time ./c-whisper -m $MODEL -f $WAV -t $P 2>&1 | tail -n 4