
In this course we'll learn about some simple text-to-speech methods. So, by using them we could make our computer speak what it reads.
We will use Ubuntu 18.04 LTS as our main operating system.
We will install necessary libraries and applications, and will write our Python 3.6 scripts on it.
Then we will do the same things a little faster on Windows 10 an Mac OSX operating systems.
Some of the required libraries are pyttsx3, talkey, pyaudio and gtts.
We install some libraries to play audio files: VLC, pygame, and pyglet.
Text-to-speech libraries we will install are as follows: gtts, pyaudio, pyttsx3, talkey.
Also we will install eSpeak on our system.
We will learn how to install some Python libraries and applications.
We will write some online and offline Python scripts to convert text to speech.
So, our computer will be able to speak under our command.
Let me introduce myself
My name is Ahmet Aksoy.
I was born in 1953.
I was graduated from Middle East Technical University of Ankara - Turkey as a Civil Enginer.
After working in some construction sites for five years, I started computer programming.
I worked with Python, Java, Delphi, C, C++, Visual Basic, Clipper and many other programming languages...
I have a total 35 years of programming experience.
I started the Open Source Project DerlemTR in order to collect all words in living Turkish and I continue to work on the same project.
I have three published Python books in Turkish.
My fourth Python book will be published in August, 2019.
I continue working in Artificial Intelligence, Machine Learning, Data Engineering and NLP.
I have published the "Introduction to Text To Speech with Python" Course in Turkish in Udemy.
We'll learn how to install virtualenvwrapper on our system.
We learn how to use mkvirtualenv command to create a new virtual environment.
We will learn how to activate, deactivate, list, and remove Virtual Environments
Install virtualenvwrapper
Create virtual environments
Activate a virtual environment
De-activate a virtual environment
List all virtual environments
Remove a virtual environment from our system
Pycharm is a very useful IDE to be used in order to write Python scripts
Pycharm has Professional and Community versions. We will use the free and open source Community version.
We create our first, single line script and run it.
VLC = VideoLAN Client
VLC installation
Python-vlc installation
Write and run tts_vlc01.py script
Pygame is a multimedia library
Pygame installation
Write and write tts_pygame01.py
Pyglet is used in games and multimedia applications
Installation of AVbin
Installation of pyglet
Write and run tts_pyglet01.py
Installation of pyttsx3
Write and run tts_pyttsx01.py
Write and run tts_pyttsx02.py
Installation of talkey
Talkey engines
Write and run tts_talkey01.py
Write and run tts_talkey02.py
Write and run tts_talkey03.py
Write and run tts_talkey04.py
How to use espeak
Supported languages
Espeak parameters
Write and run tts_espeak01.py
It is a free Text To Speech online service from Google
Write and run tts_gtts01.py
Write and run tts_gtts02.py
There some online internet services that serves Text To Speech. Some of them are completely free, and others requires some payment.
We only show these web sites without giving any details.
In this micro project we check internet connection periodically and report whether it is connected or not with words of mouth.
In this micro project we read a simple text file and speak it aloud.
Installation of virtualenvwrapper-win
Installation of audio players VLC, pygame, and pyglet
Installation of Python libraries
We run all scripts we prepared
Show how make all required installations
Run all scripts we prepared in the course
We are in the AI and robotics era.
Our mobile phones understand what we say and speak. Also new model computers can talk.
Can we do something also?
What not make our computer speak?
In this course, we will learn the basics of Text-to-Speech (TTS).
We will use Python 3.6. A little better than beginner level of programming skill will be enough.
We will study very simple coding examples. But you can improve the scripts easily.
In the course we will use Pycharm Community IDE. Of course, this is not a must! You can write your scripts in a terminal too.
Our main operating system is Ubuntu Linux, version 18.04 LTS. But, our Python scripts will be also compatible with Windows 10 and Mac OS X which can run Python 3.6.
At the last section of our course, I will show simply how to install required libraries and applications and run our Python scripts in both Windows and Mac.
After this course, I will publish a more advanced course on Speech-to-Text (STT). This course will be helpful for it.
I hope I can help you to start working on TTS and STT with Python.