Introduction:
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 an mp3 file.
The gTTS API supports several languages including English, Hindi, Tamil, French, German and many more. The speech can be delivered at 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.
Installation:
To install the gTTS API, open Command prompt ( cmd ) and write
✍🏻 pip install gTTS
This works for any platform.
In Order to avoid errors while running this program do the below steps.
you have to install two things.
1) gtts( google text to speech API)
2) pyaudio.exe file to avoid exceptional error in the program.
Source Code & Link:
Link - https://drive.google.com/drive/folder...
#Texttospeechpython , #Texttospeech , #Texttospeechgoogle , #Gtts , #Googletexttospeech
If you find this video is useful kindly like share and subscribe.
Thank you & Regards
Falcon Infomatic
Sur cette page du site, vous pouvez voir la vidéo en ligne How to Convert Text to Speech in Python | Text to Speech Conversion using python durée online en bonne qualité , qui a été Téléchargé par l'utilisateur Falcon Infomatic 21 décembre 2019, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,916 fois et il a aimé 36 téléspectateurs. Bon visionnage!