2 #This is simple audio echoing script
3 #usefull as virtual parrot or simple HAM repeater controller
10 message_intro
='repeat'
14 echo -e "====> RECORDING\t$file, treshold $silence_treshold, timeout $silence_timeout"
15 rec
-c 1 -r 22050 "$file" \
16 silence
1 0 $silence_treshold 1 00:00:$silence_timeout $silence_treshold \
17 trim
0 $message_timeout
18 echo -e "====> DELAY\t$message_delay seconds"
20 [ -n "$message_intro" ] && {
21 echo -e "====> TTS\t$message_intro"
22 which espeak
&& espeak
-- "$message_intro"
24 echo -e "====> PLAYING\t$file, normalizing to $normalize_db dB"
25 play
--norm=$normalize_db "$file"
This page took 0.236311 seconds and 4 git commands to generate.