Fix whisper for brcon. Remove local whisper. - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit dae12f310f7bf9b55af6fcf9c368fdd92c34a8da
(DIR) parent 16dabeeeace4e1bf3f2aa60e2034a6b83f8e9e37
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Sat, 25 Jul 2026 11:20:07 +0200
Fix whisper for brcon. Remove local whisper.
Diffstat:
M audio2txt | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/audio2txt b/audio2txt
@@ -2,6 +2,7 @@
export PATH="$HOME/bin:$PATH"
+# TODO: Remove due to outdated.
function local_whisper() {
WHISPER_CPP=/br/ai/whisper.cpp
ffmpeg -nostdin \
@@ -18,7 +19,7 @@ function local_whisper() {
}
function remote_whisper() {
- WHISPER_CPP=/home/annna/scm/whisper.cpp
+ WHISPER_CPP=/home/annna/scm/whisper.cpp/whisper-bin-ubuntu-x64
ffmpeg -nostdin \
-threads 0 \
-i - \
@@ -27,12 +28,12 @@ function remote_whisper() {
-acodec pcm_s16le \
-ar 16000 - 2>/dev/null \
| ollama-gpu \
- "$WHISPER_CPP/build/bin/whisper-cli" \
+ "$WHISPER_CPP/whisper-cli" \
--model "$WHISPER_CPP/models/ggml-large-v3.bin" \
-np -otxt -nt \
-f -
}
remote_whisper
-[ $? -gt 0 ] && local_whisper
+#[ $? -gt 0 ] && local_whisper