Advertisement
kimmoli

speaking notifications

Aug 1st, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. export LD_LIBRARY_PATH="/home/nemo/work/espeak/espeak-1.48.04-source/src"
  2.  
  3. dbus-monitor |
  4. while read -r line;
  5. do
  6. if echo $line | grep "x-nemo-preview-summary" > /dev/null
  7. then
  8. sleep 2
  9. fi
  10. if echo $line | grep "x-nemo-preview" > /dev/null
  11. then
  12. read -r idline
  13. if echo $idline | grep "string" > /dev/null
  14. then
  15. words=`echo $idline | cut -d "\"" -f 2`
  16. /home/nemo/work/espeak/espeak-1.48.04-source/src/espeak --stdout -v fi "$words" | gst-launch-0.10 -v fdsrc ! wavparse ! audioconvert ! alsasink > /dev/null
  17. fi
  18. fi
  19. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement