aboutsummaryrefslogtreecommitdiff
path: root/tts.sh
blob: 83e8737dc935ae5fbe4ed043e9058b2b0b132a4b (plain)
1
2
3
4
5
6
7
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/^[^>]*>//')
	echo $msg|espeak -p $pitch
done