]> Sergey Matveev's repositories - dotfiles.git/commitdiff
transcribe script
authorSergey Matveev <stargrave@stargrave.org>
Thu, 25 Jul 2024 15:01:59 +0000 (18:01 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 25 Jul 2024 15:01:59 +0000 (18:01 +0300)
bin/bin/transcribe [new file with mode: 0755]

diff --git a/bin/bin/transcribe b/bin/bin/transcribe
new file mode 100755 (executable)
index 0000000..fd3c43a
--- /dev/null
@@ -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 $@