TEXT TO SPEECH USING PYTHON | Convert Text to Speech -gTTS(Google Text to Speech)

Опубликовано: 07 Октябрь 2024
на канале: Parvat Computer Technology
4,684
121

In this video i am going to show you how can we create a text to speech converter using Python. With the help of this program we can convert any txt file to audio/music file (mp3 or wav).

There are several APIs available to convert text to speech in python. One of such APIs is the Google Text to Speech API commonly known as the gTTS API. gTTS is a very easy to use tool which converts the text entered, into audio which can be saved as a mp3 file.

The gTTS API supports several languages including English, Hindi, Tamil, French, German and many more. The speech can be delivered in any one of the two available audio speeds, fast or slow. However, as of the latest update, it is not possible to change the voice of the generated audio.

Steps:-
1. Download gTTS(Google Text to Speech) by
open cmd and type command
" pip install gTTS "

2.Create a folder ,in folder create a text file and write some sample text in it

3.Then type python program

4.After you complete than run the program ,it will auto convert it and open your audio file as show in this tutorial

--Finish--

Guys if you like this video then please support us by Like ,Share ,Subscribe and comment.


#python #pythonprojects #pythonproject
.................Music by........................
Song: MBB - Beach (Vlog No Copyright Music)
Music provided by Vlog No Copyright Music.
Video Link:    • MBB - Beach (Vlog No Copyright Music)