A command-line text to speech solution (using GoogleTranslate):
function speak(){
if [ -z ${2+x} ]; then lang="En-gb"; else lang=$2; fi
wget -q -U Mozilla -O- "http://translate.google.com/translate_tts?ie=UTF-8&total=1&idx=0&textlen=32&client=tw-ob&q=$1&tl=$la..." | mpg123 -
}
Add the function in .bashrc and use it as:
speak "Is this natural voice?"
speak "Das ist toll!" de
function speak(){
if [ -z ${2+x} ]; then lang="En-gb"; else lang=$2; fi
wget -q -U Mozilla -O- "http://translate.google.com/translate_tts?ie=UTF-8&total=1&idx=0&textlen=32&client=tw-ob&q=$1&tl=$la..." | mpg123 -
}
Add the function in .bashrc and use it as:
speak "Is this natural voice?"
speak "Das ist toll!" de