aboutsummaryrefslogtreecommitdiff
path: root/tts.sh
diff options
context:
space:
mode:
authorvulonkaaz <7442677+vulonkaaz@users.noreply.github.com>2026-04-22 17:58:17 +0200
committervulonkaaz <7442677+vulonkaaz@users.noreply.github.com>2026-04-22 17:58:17 +0200
commitf2dbf0287bce2db29c21e2fc9311f379993b5a58 (patch)
treee3fb315455c3b430d40603651d65ea304187da7a /tts.sh
parent7012f25bdbf3253cfe2c26663c065eaa4c978ace (diff)
fix color escaping
Diffstat (limited to 'tts.sh')
-rwxr-xr-xtts.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tts.sh b/tts.sh
index 089ca33..83e8737 100755
--- a/tts.sh
+++ b/tts.sh
@@ -3,6 +3,6 @@
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/@#[A-Za-z0-9]\{6\})//g;s/^[^>]*>//')
+ msg=$(echo $line|sed 's/^[^>]*>//')
echo $msg|espeak -p $pitch
done