tenable voice support on Linux - exercise_time - announce workout exercises with notifications and speech synth
 (HTM) git clone git://src.adamsgaard.dk/exercise_time
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 023059a8551d7d64d80d75131b31df1f4acf6aeb
 (DIR) parent 484550f712a13a2fadd635d16e02f4331850fe2d
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Fri, 30 Jan 2015 09:37:48 +0100
       
       enable voice support on Linux
       
       Diffstat:
         M exercise_time.sh                    |       7 ++++---
       
       1 file changed, 4 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/exercise_time.sh b/exercise_time.sh
       t@@ -34,12 +34,13 @@ fi
        UNAMESTR=`uname`
        for ((i=0; i<$1; i++)); do
            #mpc pause &> /dev/null
       -    if [[ "$UNAMESTR" == 'Darwin' ]]; then
       -        if [[ "$(ifconfig | grep 10.17.8)" ]]; then
       +    if [[ "$(ifconfig | grep 10.17.8)" ]]; then
       +        if [[ "$UNAMESTR" == 'Darwin' ]]; then
                    say "It's exercise time! $2"
       +        else
       +            echo "It's exercise time! $2" | festival --tts
                fi
            else
       -        #echo "It's exercise time! $2" | festival --tts
                notify-send "It is exercise time! $2"
            fi
            #mpc play &> /dev/null