aboutsummaryrefslogtreecommitdiff
path: root/tts.sh
diff options
context:
space:
mode:
authorvulonkaaz <7442677+vulonkaaz@users.noreply.github.com>2026-04-22 18:20:19 +0200
committervulonkaaz <7442677+vulonkaaz@users.noreply.github.com>2026-04-22 18:20:19 +0200
commit2a8acb24d9da318ebe9aeebc64538ec88578900a (patch)
tree967a9f5a3ce790ac0680f899f2c161c4ebf16e5b /tts.sh
parentf2dbf0287bce2db29c21e2fc9311f379993b5a58 (diff)
fix a bug i don't quite understandHEADmaster
Diffstat (limited to 'tts.sh')
-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