

Now, before we get started running everything, let’s set up our project. I’d much rather use pyttsx3 and have everything running on my own machine. Looking at the two, I don’t want my assistant to be dependent on Google or an online connection to work. Here are the text to speech engines it uses on major operating systems:

Pyttsx3, on the other hand, is a text to speech conversion library that looks for text to speech engines pre-installed on your platform and uses them. It has the performance of Google’s own text to speech apps, but requires an internet connection to be used. Google Text To Speech is a Python library to interface with Google Translate’s text to speech API. pyttsx3 (I dont know what the hell that stands for).Let us instead stand on the shoulders of giants and use python packages.įor text to speech, there are a few python packages that stand out from the crowd:

After all, if we develop every single bit of this from scratch, we’d be here so long that we’d never get anything done. Now, one huge benefit of doing something like this with python is that we have a huge selection of libraries to use to get things done fast. If all goes well, I’ll build on this post in the future, making our assistant ever more complicated and useful. In today's post, I’m going to focus on the text to speech aspect of our computer assistant, allowing our computer to talk with us.
