From 2a8acb24d9da318ebe9aeebc64538ec88578900a Mon Sep 17 00:00:00 2001 From: vulonkaaz <7442677+vulonkaaz@users.noreply.github.com> Date: Wed, 22 Apr 2026 18:20:19 +0200 Subject: fix a bug i don't quite understand --- tts.sh | 6 +++--- 1 file 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 -- cgit v1.2.3