From a6a29a647ff8c5917ac0bfeb45f5e9edd5c1b427 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Fri, 31 Mar 2023 10:41:36 -0600 Subject: [PATCH] compare script --- whisper-cpp-2023/compare.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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