2 Antworten
+ 3
sl4a for Android
+ 3
if you have internet connectivity you can use gtts
https://pypi.python.org/pypi/gTTS
it's based on google's text to speech service and should support python 3.x.
You can always call within your script the google translate api as a system command.
this is what i use on Linux to save google tts audio to an mp3 file
$ wget -q -U Mozilla -O pathToFile.mp3 "htp://translate.google.com/translate_tts?ie=UTF-8&total=1&idx=0&textlen=32&client=tw-ob&q=yourword&tl=en-GB"
it works as of 5 mins ago