Skip to content

Commit ebfd55d

Browse files
Merge pull request #947 from omkhulbe/master
Update JARVIS.py
2 parents 967330f + 12d282a commit ebfd55d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

JARVIS/JARVIS.py

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828

2929
# initialisation
3030
engine = pyttsx3.init()
31+
voices = engine.getProperty('voices')
32+
engine.setProperty('voice', voices[0].id)
33+
engine.setProperty('rate', 150)
3134

3235

3336
def sendEmail(do, content):
@@ -42,6 +45,7 @@ def sendEmail(do, content):
4245
# obtain audio from the microphone
4346
r = sr.Recognizer()
4447
with sr.Microphone() as source:
48+
print('[JARVIS]:' + "Say something")
4549
engine.say("Say something")
4650
engine.runAndWait()
4751
audio = r.listen(source)

0 commit comments

Comments
 (0)