Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inspirational quote added #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions jarvis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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__':

Expand Down Expand Up @@ -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:
Expand Down