diff options
Diffstat (limited to 'home/.local/bin/vibe')
-rwxr-xr-x | home/.local/bin/vibe | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/home/.local/bin/vibe b/home/.local/bin/vibe new file mode 100755 index 0000000..b3bbd42 --- /dev/null +++ b/home/.local/bin/vibe @@ -0,0 +1,15 @@ +#!/usr/bin/env sh + +output_file=$(mktemp) +model_path="/usr/share/whisper.cpp-model-large-v3-turbo/ggml-large-v3-turbo.bin" +whisper-stream --model "$model_path" --threads 16 -f "$output_file" & +pid="$!" + +while [ ! -s "$FILE" ]; do + sleep 0.1 +done + +read -r line < "$output_file" +kill "$pid" +printf '%s' "$line" | xclip -selection clipboard -f +xdotool type "$line" |