Member-only story

Build A Text To Speech Program Using Python

randerson112358
3 min readSep 3, 2019

--

In this article you will learn how to build your very own Text To Speech (TTS) program using the Python programming language !

If you prefer not to read this article and would like a video representation of it, you can check out the YouTube Video below. It goes through everything in this article with a little more detail, and will help make it easy for you to start developing your own program. Or you can use both as supplementary materials for learning !

Start Programming:

I will start by stating what I want this program to do. This program takes text from an online article and converts it to speech.

#Description: This program takes text from an online article and converts it to speech

Next, import the libraries that we will need for this program.

#Import the libraries
from newspaper import Article
import nltk
from gtts import gTTS
import os

Now that we have the libraries imported, we need to get the article from online.

--

--

Responses (1)