import pyttsx3
engine=pyttsx3.init()
engine.setProperty('rate',170)
engine.setProperty('volume',0.9)
voices=engine.getProperty('voices')
engine.setProperty('voice',voices[1].id)
text=input("Enter the text to convert to speech: ")
engine.say(text)
engine.runAndWait()
