This is my code for text-to-speech conversion:
from gtts import gTTS
import os
tts=gTTS(text="Hello World",lang="en")
tts.save("hello.mp3")
os.system("mpg321 hello.mp3")
I already installed gTTS through the command prompt(pip install gTTS).
But when I'm running the above code in python 2.7, I am not getting any error but nothing is happening either.
I can't hear anything.
I am using Windows 10
Can you please advise what should be done?