TringaliLuca

Orologio parlante con espeak e Mbrola

Mar 29th, 2017
201
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