From 89a347c941b67d46f6910cd8560384af1b1e9275 Mon Sep 17 00:00:00 2001 From: vulonkaaz <7442677+vulonkaaz@users.noreply.github.com> Date: Tue, 21 Apr 2026 23:25:07 +0200 Subject: first commit --- tts.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 tts.sh (limited to 'tts.sh') diff --git a/tts.sh b/tts.sh new file mode 100755 index 0000000..089ca33 --- /dev/null +++ b/tts.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +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/^[^>]*>//') + echo $msg|espeak -p $pitch +done -- cgit v1.2.3