tenable voice support on Linux - exercise_time - announce workout exercises with notifications and speech synth
git clone git://src.adamsgaard.dk/exercise_time
Log
Files
Refs
LICENSE
---
commit 023059a8551d7d64d80d75131b31df1f4acf6aeb
parent 484550f712a13a2fadd635d16e02f4331850fe2d
Author: Anders Damsgaard 
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(-)
---
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