Awesome-Python-Scripts/TTS_Text_to_Speech_Mp3/run.py
Antonio Andrade 1d2de84900
Added "TTS - Text to Speech Mp3" (#248)
* New commit

* Added example file (run.py)

* New commit

* Added 'TTS - Text to Speech Mp3'
2022-02-08 11:56:52 +05:30

9 lines
118 B
Python

from gtts import gTTS
def main():
tts = gTTS('hello')
tts.save('hello.mp3')
if __name__ == "__main__":
main()