SHARE
TWEET

Orologio parlante con espeak e Mbrola

TringaliLuca Mar 29th, 2017 123 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. #wget http://steinerdatenbank.de/software/mbrola3.0.1h_armhf.deb
  4. #dpkg -i wget mbrola3.0.1h_armhf.deb
  5. #sudo apt-get install mbrola-it3 mbrola-it4 espeak
  6.  
  7.  
  8. while true
  9. do
  10. hour=$(date +"%T" | cut -d ":" -f1)
  11. minutes=$(date +"%T" | cut -d ":" -f2)
  12. message="Ciao, sono le ore "$hour" e "$minutes" minuti."
  13. espeak -v mb-it4 -s 150 -p 50 -w /tmp/temp.wav "$message" && aplay /tmp/temp.wav
  14. sleep 600
  15. done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top