talkit - pipe HTML to festival
Posted: Fri Jan 29, 2016 4:06 am
Takes URL from user input or command option, redirects to html2text, removes asterisks and brackets, and then pipes the output to the TTS function of festival. Get yourself the festvox voices of your language (festvox-kallpc16k for US American, for example)
Code: Select all
#!/bin/sh
# depends html2text wget festival festvox-?
if [ -z $1 ]; then
printf "Enter URL to read: "
read URL
else
URL=$1
fi
wget $URL -O- | html2text | sed "s/\*//g; s/\_//g" | tr '()' ' ' | tr '[]' ' ' | festival --tts --pipe