diff --git a/Python Voice Generator.py b/Python Voice Generator.py new file mode 100644 index 00000000000..9541ccfae51 --- /dev/null +++ b/Python Voice Generator.py @@ -0,0 +1,11 @@ +#install and import google text-to-speech library gtts +from gtts import gTTS +import os +#provide user input text +text=input('enter the text: ') +#covert text into voice +voice=gTTS(text=text, lang='en') +#save the generated voice +voice.save('output.mp3') +#play the file in windows +os.system('start output.mp3') \ No newline at end of file