Skip to content

Commit 4e6ad06

Browse files
Speaking text
1 parent 4749d5d commit 4e6ad06

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pyttsx3/speak.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import pyttsx3 #import pyttsx3 module
2+
engine = pyttsx3.init() #pyttsx3.init() factory function to get a reference to a pyttsx3.Engine instance
3+
engine.say('Hello World')
4+
engine.say('Hello GitHub')
5+
engine.say('Hello Python Project Scripts')
6+
engine.runAndWait()

0 commit comments

Comments
 (0)