import pyttsx engine = pyttsx.init() engine.say("It was all a dream.") engine.runAndWait()