a talking clock #2493
radiradio
started this conversation in
Show and tell
a talking clock
#2493
Replies: 2 comments 3 replies
-
Nice, thanks for sharing!! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for sharing! I use a different approach: Have a TTS engine like espeak speak time (and station ID, in my case) as a cron job into a For those interested: crontab entry */1 * * * * /home/matthias/automation/saytime.sh > /dev/null
#!/bin/sh
# saytime.sh
# 2015-07-16 Moonbase
# Create /tmp/saytime.wav for Liquidsoap to announce current time.
# Put this in crontab to keep the file current, like so:
# */1 * * * * /home/matthias/automation/saytime.sh > /dev/null
UHR=$(LC_ALL=de_DE.utf8 TZ='Europe/Berlin' date +'%-H Uhr %-M')
UHR2=$(LC_ALL=de_DE.utf8 TZ='Europe/Berlin' date +'genau %-H Uhr')
MIN=$(LC_ALL=de_DE.utf8 TZ='Europe/Berlin' date +'%-M')
TAG=$(LC_ALL=de_DE.utf8 TZ='Europe/Berlin' date +'%A')
if [ "$MIN" -eq 0 ]; then
UHR="$UHR2"
fi
espeak --stdout -a 150 -v mb-de6 -s 140 -b 1 -m "Es ist $UHR am $TAG, und du hörst Radio Paranoid. Rock und Mättel - rund um die Uhr. Hier gibt's auf die OHREN!" | \
sox - -c2 /tmp/saytime.tmp.wav
mv /tmp/saytime.tmp.wav /tmp/saytime.wav
#play /tmp/saytime.wav Example output Note |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
due to the sudden cut of the legendary talking clock over the phone in france, we wanted to emulate the service with liquidsoap
demo here : http://stream.p-node.org/clock.mp3
right now there's no mean to manage a sync, if someone has an idea how to do that..
Beta Was this translation helpful? Give feedback.
All reactions