From: Eric Tendian Date: Thu, 26 Jan 2023 23:13:31 +0000 (-0600) Subject: livestream.sh : run main with model arg instead of default (#453) X-Git-Tag: upstream/1.7.4~1591 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=47737b2e82405cb1e857142a576288b5f27f18b6;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp livestream.sh : run main with model arg instead of default (#453) Actually utilizes the $model var when calling ./main. --- diff --git a/examples/livestream.sh b/examples/livestream.sh index e24d0deb..42d0102f 100755 --- a/examples/livestream.sh +++ b/examples/livestream.sh @@ -100,7 +100,7 @@ while [ $running -eq 1 ]; do err=$(cat /tmp/whisper-live.err | wc -l) done - ./main -t 8 -m ./models/ggml-base.en.bin -f /tmp/whisper-live.wav --no-timestamps -otxt 2> /tmp/whispererr | tail -n 1 + ./main -t 8 -m ./models/ggml-${model}.bin -f /tmp/whisper-live.wav --no-timestamps -otxt 2> /tmp/whispererr | tail -n 1 while [ $SECONDS -lt $((($i+1)*$step_s)) ]; do sleep 1