blob: b3bbd42475f3f6b2104772b28975e2791a29b91b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"
|