From 0c65be5c2d0efd382ffc28c3d43c8195a7cd8051 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 25 Jul 2024 18:01:59 +0300 Subject: [PATCH] transcribe script --- bin/bin/transcribe | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 bin/bin/transcribe diff --git a/bin/bin/transcribe b/bin/bin/transcribe new file mode 100755 index 0000000..fd3c43a --- /dev/null +++ b/bin/bin/transcribe @@ -0,0 +1,15 @@ +#!/usr/bin/env zsh + +setopt ERR_EXIT +root=$0:h +lang=$1 +file=$2 +shift +shift +exec whisper.cpp \ + --no-prints \ + --print-colors \ + --model $HOME/work/bass/build/distfiles/ggml-large-v2.bin \ + --threads ${JOBS:-8} \ + --language $lang \ + --file $file $@ -- 2.50.0