Skip to content

Commit 12d282a

Browse files
committed
Update JARVIS.py
1 parent 2d34fc1 commit 12d282a

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
@@ -19,10 +19,14 @@
1919

2020
# initialisation
2121
engine = pyttsx3.init()
22+
voices = engine.getProperty('voices')
23+
engine.setProperty('voice', voices[0].id)
24+
engine.setProperty('rate', 150)
2225

2326
# obtain audio from the microphone
2427
r = sr.Recognizer()
2528
with sr.Microphone() as source:
29+
print('[JARVIS]:' + "Say something")
2630
engine.say("Say something")
2731
engine.runAndWait()
2832
audio = r.listen(source)

0 commit comments

Comments
 (0)