forked from extern/whisper.cpp
bench-wts.sh : rename script + add execute permission
This commit is contained in:
parent
b597c5a779
commit
bb6b54a03d
7
extra/qual-bench.sh → extra/bench-wts.sh
Normal file → Executable file
7
extra/qual-bench.sh → extra/bench-wts.sh
Normal file → Executable file
@ -1,3 +1,5 @@
|
||||
# Benchmark word-level timestamps for different models
|
||||
#
|
||||
# This script takes two arguments
|
||||
# - an audio file
|
||||
# - [optional] path to a font file
|
||||
@ -10,8 +12,9 @@ if [ -z "$1" ]; then
|
||||
fi
|
||||
|
||||
#TODO: Make this a command line parameter
|
||||
models="base small large"
|
||||
#models="base small large"
|
||||
#models="tiny.en tiny base.en base small.en small medium.en medium large-v1 large"
|
||||
models="tiny.en base.en small.en medium.en large"
|
||||
|
||||
DURATION=$(ffprobe -i $1 -show_entries format=duration -v quiet -of csv="p=0")
|
||||
DURATION=$(printf "%.2f" $DURATION)
|
||||
@ -40,7 +43,7 @@ for model in $models; do
|
||||
|
||||
# If the file already exists, delete it
|
||||
if [ -f $1.mp4 ]; then
|
||||
rm $1.$model.mp4
|
||||
rm $1.mp4
|
||||
fi
|
||||
|
||||
bash $1.$model.wts >/dev/null 2>&1
|
Loading…
Reference in New Issue
Block a user