aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtts.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tts.sh b/tts.sh
index 83e8737..5d9394a 100755
--- a/tts.sh
+++ b/tts.sh
@@ -2,7 +2,7 @@
grep --line-buffered -F "[CHATTTS]"|grep --line-buffered -F "<"|while read line
do
- pitch=$(echo $line|awk -F"[<>]" '{print $2}'| sha256sum | grep -Eo "[[:digit:]]{2}" | head -n1)
- msg=$(echo $line|sed 's/^[^>]*>//')
- echo $msg|espeak -p $pitch
+ pitch=$(echo "$line"|awk -F"[<>]" '{print $2}'| sha256sum | grep -Eo "[[:digit:]]{2}" | head -n1)
+ msg=$(echo "$line"|sed 's/^[^>]*>//')
+ echo "$msg"|espeak -p $pitch
done