forked from Muskankhoiya/python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask1.py
More file actions
125 lines (92 loc) · 3.83 KB
/
task1.py
File metadata and controls
125 lines (92 loc) · 3.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
import os
import pyttsx3
engine = pyttsx3.init()
rate = engine.getProperty('rate')
engine.setProperty('rate', 180)
pyttsx3.speak("Hello Muskaan")
print()
pyttsx3.speak("I am your assistant Jack")
print(" \t\t!!!!!!!!WELCOME MUSKAN!!!!!!!")
pyttsx3.speak("How can I help you...?")
while True:
print()
p = input(" Hey user how can I help you: ")
if ("date" in p):
pyttsx3.speak("showing todays date")
os.system("date")
elif ("time" in p):
pyttsx3.speak("showing current time")
os.system("time")
elif ("Hello" in p) or ("hy" in p) or ("hey" in p):
pyttsx3.speak("Hello muskan")
elif ("tell" in p) or ("about" in p) or ("yourself" in p):
pyttsx3.speak("My name is jack im your assitant and i wil help you for your requirements")
elif ("chrome" in p):
pyttsx3.speak("opening chrome for you")
os.system("chrome")
elif ("aws" in p) or ("aws cloud services" in p):
pyttsx3.speak("opening amazon web services")
os.system("chrome aws.amazon.com")
elif ("gmail" in p):
pyttsx3.speak("opening your G mail")
os.system("chrome www.gmail.com")
elif (("run" in p) or ("open" in p) or ("launch" in p)) and ("turbo c++" in p) :
pyttsx3.speak("Opening turbo c++ for you plz wait")
os.system("Turbo C++")
elif (("run" in p) or ("open" in p) or ("launch" in p)) and ("ms excel" in p) :
pyttsx3.speak("Opening ms excel plz wait")
os.system("Excel")
elif ("yahoomail" in p) or ("yahoo mail" in p):
pyttsx3.speak("opening yahoo mail")
os.system("chrome www.yahoomail.com")
elif ("youtube" in p):
pyttsx3.speak("opening youtube for you plz wait")
os.system("chrome www.youtube.com")
elif ("twitter" in p):
pyttsx3.speak("opening twitter for you plz wait")
os.system("chrome www.twitter.com")
elif (("run" in p) or ("open" in p) or ("launch" in p)) and ("linkedin" in p) :
pyttsx3.speak("opening your linkedin account plz wait")
os.system("chrome www.linkedin.com")
elif (("run" in p) or ("open" in p) or ("launch" in p)) and (("notepad" in p) or ("editor" in p)):
pyttsx3.speak("opening notepad")
os.system("notepad")
elif ("virtualbox" in p) or ("virtual box" in p) or ("VM" in p) or ("vbox" in p) or ("vm" in p):
pyttsx3.speak("opening Vitualbox")
elif ("anydesk" in p):
pyttsx3.speak("opening anydesk")
os.system("anydesk")
elif (("run" in p) or ("open" in p) or ("launch" in p)) and (("Feem " in p) or ("Feem" in p)) :
pyttsx3.speak("Opening feem for you plz wait")
os.system("Feem")
elif (("run" in p) or ("open" in p) or ("launch" in p)) and ("codeblocks " in p):
pyttsx3.speak("Opening codeblocks for you plz wait")
os.system("codeblocks.exe")
elif (("run" in p) or ("open" in p) or ("launch" in p)) and ("Powerpoint " in p) :
pyttsx3.speak("Opening Powerpoint for you plz wait")
os.system("PowerPoint")
elif ("How" in p) or ("jack" in p):
pyttsx3.speak("i can help you in following ways")
print()
print("!! I can help you in following ways !!")
pyttsx3.speak("running window based commands")
print()
print(" - Window Based Commands")
pyttsx3.speak("Entertainment")
print()
print(" - Entertainment")
pyttsx3.speak("aws clouds")
print()
print(" - aws Clouds")
pyttsx3.speak("emails")
print()
print(" - Emails")
pyttsx3.speak("Social media")
print()
print(" - Social Media")
elif ("exit" in p) or ("quit" in p) or ("bye" in p):
pyttsx3.speak("see you soon,, have a nice day...!!!")
break
else:
print("\t \t \t \t don't support ")
pyttsx3.speak("such application doesn't support try another")