summaryrefslogtreecommitdiff
path: root/update_index.sh
blob: f67518833851e8914143ae05c54a0787e61dd085 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

dir=${1:-}

filepath=$(du -a $dir | awk '($1 > 50) {print $2}' | shuf -n 1)
echo "$filepath"
mpv "$filepath"

cp "$filepath" todays_audio.opus

whisper --model medium --language de --device cpu todays_audio.opus

phrase=$(cat todays_audio.opus.txt)
./replace_phrase.sh "$phrase"

./get_sd_image.sh "$phrase"