diff --git a/examples/whisper/cmd.sh b/examples/whisper/cmd.sh index 9ea31ab..7c1f743 100755 --- a/examples/whisper/cmd.sh +++ b/examples/whisper/cmd.sh @@ -8,11 +8,12 @@ input_temp=$(mktemp /tmp/whisper-input-XXXXXX) cat > "$input_temp" -libreoffice --headless --convert-to pdf "$input_temp" > /dev/null 2>&1 - /app/main \ -m /app/models/ggml-base.en.bin \ --output-vtt \ - -f "$input_temp" 2>&1 + -f "$input_temp" \ + --output-file "$input_temp.vtt" > /dev/null 2>&1 + +cat "$input_temp.vtt" -rm "$input_temp" +rm "$input_temp" "$input_temp.vtt"