diff --git a/README.md b/README.md index a0b2d706..e3d6d5b4 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,8 @@ When you Add a projectAdd it to the README for ease of finding it * [Random Password Generator](https://github.com/larymak/Python-project-Scripts/tree/main/RandomPassword) * [YouTube Video Downloader](https://github.com/larymak/Python-project-Scripts/tree/main/YoutubeDownloader) + +* Text to Audio _more coming soon_ diff --git a/texttoaudio/code.py b/texttoaudio/code.py new file mode 100644 index 00000000..b10bfa83 --- /dev/null +++ b/texttoaudio/code.py @@ -0,0 +1,9 @@ + +audio='speech.mp3' +from gtts import gTTS +from playsound import playsound +lang='en' +playsound(audio) +sp.save(audio) +sp=gTTS(text=text,lang=lang,slow=False) +text="hELLO, OPEN SOURCE!" \ No newline at end of file