Skip to content

Commit

Permalink
Merge pull request #947 from omkhulbe/master
Browse files Browse the repository at this point in the history
Update JARVIS.py
  • Loading branch information
geekcomputers authored Oct 4, 2020
2 parents 967330f + 12d282a commit ebfd55d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions JARVIS/JARVIS.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@

# initialisation
engine = pyttsx3.init()
voices = engine.getProperty('voices')
engine.setProperty('voice', voices[0].id)
engine.setProperty('rate', 150)


def sendEmail(do, content):
Expand All @@ -42,6 +45,7 @@ def sendEmail(do, content):
# obtain audio from the microphone
r = sr.Recognizer()
with sr.Microphone() as source:
print('[JARVIS]:' + "Say something")
engine.say("Say something")
engine.runAndWait()
audio = r.listen(source)
Expand Down

0 comments on commit ebfd55d

Please sign in to comment.