talkit - pipe HTML to festival

Submitted scripts and programs
Forum rules
Your own work only.
machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

talkit - pipe HTML to festival

Unread post by machinebacon » 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
..gnutella..

Post Reply