From 7c38e52f872c54028eadaf43810c3b14271611d0 Mon Sep 17 00:00:00 2001 From: Azmine Toushik Wasi Date: Fri, 28 May 2021 22:56:15 +0600 Subject: [PATCH] Added T2A --- README.md | 2 ++ texttoaudio/code.py | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 texttoaudio/code.py 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