espeak-msg.sh 1.09 KB
Newer Older
festival-studio's avatar
festival-studio committed
1
#!/usr/bin/env bash
thk's avatar
thk committed
2 3

es () {
radio public.adm's avatar
radio public.adm committed
4 5
# 1 filename
# 2 text
thk's avatar
thk committed
6

radio public.adm's avatar
radio public.adm committed
7 8 9 10 11
rm $1.wav
#espeak -a 19 -p 55 -k 20 -s 160  -w $1.wav "$2"
espeak -s 160  -w $1.wav "$2"

ffmpeg -i $1.wav -ac 2 -ar 48000 -acodec libvorbis $1.ogg
thk's avatar
thk committed
12 13 14 15
}

#while [ 1 ]
#do
radio public.adm's avatar
radio public.adm committed
16
es silencedetected "It seems something is wrong, someone is playing silence for more then 30 seconds already, falling back to some stuff...."
radio public.adm's avatar
radio public.adm committed
17 18 19 20 21 22 23 24
es paplive "Hello, You are listening to radio papillon, live from the papillon stuurhut: "
es technical-problem "sorry for the technical problems, it will happen again"
es notlive "This is Radio Pappillon. We are not broadcasting live right now, send us an email or pass by the studio if you would like to do a live show ,here is a some random stuff from our archives and music collection."

#espeak -s 160 -w technical-problem.wav "sorry for the technical problems, it will happen again"
#espeak -s 160 -w switching-live.wav "switching to live feed"
#espeak -s 160 -w switching-music.wav "switching to some random music"
#espeak -s 160 -w notlive.wav "We are not broadcasting right now, here is a some random stuff from our archives and music collection."