<reponame>ambujpawar/create_your_own_audiobook<filename>create_audiobook.py
from gtts import gTTS

input_data = open('/path/to/article.txt', "r")
text_str = input_data.read()
speech = gTTS(text=text_str, lang='en', slow=False)
speech.save('/path/to/save.mp3')

from gtts import gTTS

input_data = open('/path/to/article.txt', "r")
text_str = input_data.read()
speech = gTTS(text=text_str, lang='en', slow=False)
speech.save('/path/to/save.mp3')