Andrej Dundović

Andrej Dundović at

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

gledof, Arcee likes this.

Arcee, Arcee, Arcee shared this.

Unfortunately, I didn't find any free software text2speech which would match Google's text to speech service in pronunciation accuracy.

Andrej Dundović at 2016-05-23T14:38:44Z