RosettaCodeData/Task/Speech-synthesis/Python/speech-synthesis.py

6 lines
92 B
Python
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
import pyttsx
engine = pyttsx.init()
engine.say("It was all a dream.")
engine.runAndWait()