View Single Post
jd4200's Avatar
Posts: 451 | Thanked: 424 times | Joined on Apr 2010 @ England
#902
I've finally got some decent text to speech working with modRana using Google's translate TTS service, instead of using espeak.

For any one who is interested:

Change the voice parameter in the settings [sound>voice>string]
to:
/home/user/tts.sh "%qmessage%"

and then create an executable bash script, with the following:
Code:
inp="$*"
newinp="$(echo $inp | sed 's/<[^>]*>//g')"
mplayer http://translate.google.com/translate_tts?q="$newinp"
Not the greatest method, but it works quite well.
I can't seem to find any API documentation to see if Google allow this, but I've read many iPhone/Android apps. take advantage of it, so maybe.
 

The Following 5 Users Say Thank You to jd4200 For This Useful Post: