blob: 089ca33eac98dfacac74f378d97e8d3a8c74f36e (
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/@#[A-Za-z0-9]\{6\})//g;s/^[^>]*>//')
echo $msg|espeak -p $pitch
done
|