@@ -52,7 +52,7 @@ def process_text(input):
52
52
elif "calculate" in input .lower ():
53
53
54
54
# write your wolframalpha app_id here
55
- app_id = "W9442Y-EY56RQ96EP "
55
+ app_id = ""
56
56
client = wolframalpha .Client (app_id )
57
57
58
58
indx = input .lower ().split ().index ('calculate' )
@@ -62,13 +62,6 @@ def process_text(input):
62
62
assistant_speaks ("The answer is " + answer )
63
63
return
64
64
65
- # elif 'open' in input:
66
-
67
- # # another function to open
68
- # # different application availaible
69
- # open_application(input.lower())
70
- # return
71
-
72
65
else :
73
66
74
67
assistant_speaks (
@@ -133,37 +126,6 @@ def search_web(input):
133
126
134
127
return
135
128
136
-
137
- # function used to open application
138
- # present inside the system.
139
- # def open_application(input):
140
-
141
- # if "chrome" in input:
142
- # assistant_speaks("Google Chrome")
143
- # os.startfile('C:\Program Files (x86)\Google\Chrome\Application\chrome.exe')
144
- # return
145
-
146
- # elif "firefox" in input or "mozilla" in input:
147
- # assistant_speaks("Opening Mozilla Firefox")
148
- # os.startfile('C:\Program Files\Mozilla Firefox\\firefox.exe')
149
- # return
150
-
151
- # elif "word" in input:
152
- # assistant_speaks("Opening Microsoft Word")
153
- # os.startfile('C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Office 2013\\Word 2013.lnk')
154
- # return
155
-
156
- # elif "excel" in input:
157
- # assistant_speaks("Opening Microsoft Excel")
158
- # os.startfile('C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Office 2013\\Excel 2013.lnk')
159
- # return
160
-
161
- # else:
162
-
163
- # assistant_speaks("Application not available")
164
- # return
165
-
166
-
167
129
def get_audio ():
168
130
169
131
rObject = sr .Recognizer ()
0 commit comments