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
In questa pagina del sito puoi guardare il video online How to Convert Text to Speech in Python | Text to Speech Conversion using python della durata di online in buona qualità , che l'utente ha caricato Falcon Infomatic 21 dicembre 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,916 volte e gli è piaciuto 36 spettatori. Buona visione!