Re:Text to speech in Python
by microcolonel on Sunday June 25, 2017 @05:14AM
(#14629266)
Yeah, I'm getting a bit of fatigue from all of this "brand new voice assistant!" and "amazing text to speech and speech recognition!" crap which just turns out to be the same wrapper script around Google's APIs that everyone wrote in five minutes when the APIs opened up.
Re:Text to speech in Python
by visarga on Sunday June 25, 2017 @09:41AM
(#14629926)
I'm wondering why the Linux TTS offering is so dismal, and why the voices used by Apple, Google and MS are so old. We have seen amazing demos with WaveNet from DeepMind a year ago. Where are the new amazing voices?
Re:Text to speech in Python
by haikuginger on Saturday June 24, 2017 @07:39PM
(#14627933)
sudo pip install? Really?
You almost never want to use the system Python. Use pyenv[0] to install the version of Python you want, and then create a new virtual environment for each project.
Re:Text to speech in Python
by mythrwy on Saturday June 24, 2017 @10:31PM
(#14628325)
Not the person you asked, but I personally don't care for conda.
I'd rather use standard Python packaging and virtual environments. Conda had a few "funnies", like adding lines to .bashrc interfering with system Python when I tried to use it later (easily fixed and not really a big deal, I just didn't care for it).
A client had some scripts that used it, and from that perspective I guess it saved a little time installing everything but not much. Not enough to have another Python version floating around in my opinion. Easy enough to just use regular Python.
Re:Text to speech in Python
by acbart on Saturday June 24, 2017 @09:13PM
(#14628163)
So what is the state of the art in turning text into speech files in Python? Especially in terms of free options? Everything I find on google seems to be a year or two out of date.
Re:Text to speech in Python
by pebers on Sunday June 25, 2017 @06:38AM
(#14629463)
I'm disappointed - this isn't actually text-to-speech in Python, it's text-to-speech in C++ (or Objective-C in one case) with a Python wrapper over the top.
An actual Python TTS engine would have been cool as an introduction to how the algorithms work without needing to learn C++. The performance would always be lacking but that'd not really matter for an introduction.
Re:Text to speech in Python
by revicon on Sunday June 25, 2017 @12:21AM
(#14628621)
Anyone have an opinion on the best option these days to do the reverse (speech to text)?
Building an open source version of Alexa sounds like a fun project.
Re:Text to speech in Python
by grw_ on Saturday June 24, 2017 @08:00PM
(#14627978)
BadPrototypeError: Objective-C expects 1 arguments, Python argument has 3 arguments for <unbound selector setProperty of NSSpeechDriver at 0x10d9e4e00>
Which means it won't work offline or when Google inevitably shuts down the API.
You almost never want to use the system Python. Use pyenv[0] to install the version of Python you want, and then create a new virtual environment for each project.
[0]https://github.com/pyenv/pyenv
FTA: "Install using pyenv, pipenv or virtualenv.
If you are feeling brave, install with pip:"
I strongly think that if you're going to give advice on how to install, then you'd be better off suggesting:
http://docs.pipenv.org/en/latest/
I'd rather use standard Python packaging and virtual environments. Conda had a few "funnies", like adding lines to .bashrc interfering with system Python when I tried to use it later (easily fixed and not really a big deal, I just didn't care for it).
A client had some scripts that used it, and from that perspective I guess it saved a little time installing everything but not much. Not enough to have another Python version floating around in my opinion. Easy enough to just use regular Python.
An actual Python TTS engine would have been cool as an introduction to how the algorithms work without needing to learn C++. The performance would always be lacking but that'd not really matter for an introduction.
PyTTSx: cross-platform Python speech synthesis wrapper
https://jugad2.blogspot.in/2013/01/pyttsx-cross-platform-pyt...
Speech synthesis in Python with pyttsx:
https://jugad2.blogspot.in/2014/03/speech-synthesis-in-pytho...
The synthesized voice announcing a train arrival is cool (link in 2nd post above).