diff --git a/jarvis.py b/jarvis.py index 13d3a67..616d619 100644 --- a/jarvis.py +++ b/jarvis.py @@ -18,6 +18,8 @@ from sys import platform import os import getpass +import random +from quotes import random engine = pyttsx3.init() voices = engine.getProperty('voices') @@ -114,6 +116,11 @@ def screenshot(): img = pyautogui.screenshot() img.save('path of folder you want to save/screenshot.png') +def inspirational_quote(): + myQuote = random() + speak(myQuote) + + if __name__ == '__main__': @@ -275,6 +282,10 @@ def screenshot(): else: engine.setProperty('voice', voices[1].id) speak("Hello Sir, I have switched my voice. How is it?") + + elif 'quote' in query: + speak('Fetching inspirational quote') + inspirational_quote elif 'email to gaurav' in query: try: