+ 3

Python 3.6 text to speech

Anyone​ know a working modules/package for conversation text to voice that work with Python 3.6 pyttsx, gtts and espeak are not working with Python 3.6 please suggest something other than these options.

14th Apr 2017, 1:50 PM
Nithin
Nithin - avatar
2 Antworten
+ 3
sl4a for Android
14th Apr 2017, 5:37 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 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
21st Apr 2017, 12:59 PM
seamiki
seamiki - avatar