Python Tkinter (GTTS) GUI Script to Convert Speech to Text Audio Mp3 Using Google Text to Speech API Full Project For Beginners

You are currently viewing Python Tkinter (GTTS) GUI Script to Convert Speech to Text Audio Mp3 Using Google Text to Speech API Full Project For Beginners

 

Welcome folks today in this blog post we will be making a text to speech using google speech to text api in python and tkinter. All the full source code of the application is shown below.

 

 

 

Get Started

 

 

In order to get started you need to install the following libraries by using the pip command

 

pip install gtts

 

pip install playsound

 

pip install tkinter

 

After installing all the libraries just make an app.py file and copy paste the following code to it

 

 

app.py

 

 

 

 

Now if you execute this python script by using the below command

 

python app.py

 

 

 

 

 

In the above gui application you need to write the text into it and then you can play it and also it will create the mp3 file

audio.mp3 inside the root directory like this

 

 

 

Leave a Reply