diff options
| author | vulonkaaz <7442677+vulonkaaz@users.noreply.github.com> | 2026-04-21 23:25:07 +0200 |
|---|---|---|
| committer | vulonkaaz <7442677+vulonkaaz@users.noreply.github.com> | 2026-04-21 23:25:07 +0200 |
| commit | 89a347c941b67d46f6910cd8560384af1b1e9275 (patch) | |
| tree | 107087d103870cef1598679fdd116c605993b932 /tts.sh | |
first commit
Diffstat (limited to 'tts.sh')
| -rwxr-xr-x | tts.sh | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |
