Skip to content

Commit dd9ad13

Browse files
authored
Merge pull request larymak#7 from azminewasi/main
Added T2A
2 parents c0945bc + 7c38e52 commit dd9ad13

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ When you Add a projectAdd it to the README for ease of finding it
4545
* [Random Password Generator](https://github.com/larymak/Python-project-Scripts/tree/main/RandomPassword)
4646

4747
* [YouTube Video Downloader](https://github.com/larymak/Python-project-Scripts/tree/main/YoutubeDownloader)
48+
49+
* Text to Audio
4850

4951
_more coming soon_
5052

texttoaudio/code.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
audio='speech.mp3'
3+
from gtts import gTTS
4+
from playsound import playsound
5+
lang='en'
6+
playsound(audio)
7+
sp.save(audio)
8+
sp=gTTS(text=text,lang=lang,slow=False)
9+
text="hELLO, OPEN SOURCE!"

0 commit comments

Comments
 (0)