Skip to content

Commit 1d1fed5

Browse files
Update and rename personnalAssistant.py to Personal_Assistant.py
1 parent 23ce944 commit 1d1fed5

File tree

1 file changed

+1
-39
lines changed

1 file changed

+1
-39
lines changed

personnalAssistant.py renamed to Personal_Assistant.py

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def process_text(input):
5252
elif "calculate" in input.lower():
5353

5454
# write your wolframalpha app_id here
55-
app_id = "W9442Y-EY56RQ96EP"
55+
app_id = ""
5656
client = wolframalpha.Client(app_id)
5757

5858
indx = input.lower().split().index('calculate')
@@ -62,13 +62,6 @@ def process_text(input):
6262
assistant_speaks("The answer is " + answer)
6363
return
6464

65-
# elif 'open' in input:
66-
67-
# # another function to open
68-
# # different application availaible
69-
# open_application(input.lower())
70-
# return
71-
7265
else:
7366

7467
assistant_speaks(
@@ -133,37 +126,6 @@ def search_web(input):
133126

134127
return
135128

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-
167129
def get_audio():
168130

169131
rObject = sr.Recognizer()

0 commit comments

Comments
 (0)