-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMain.py
More file actions
34 lines (21 loc) · 678 Bytes
/
Main.py
File metadata and controls
34 lines (21 loc) · 678 Bytes
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
import os
import text_process as tp
import date_access as da
import assistant_speaks as ass
import get_audio as ga
def Main():
ass.assistant_speaks("Hello, Ashutosh This is Seja For You...")
n ="Ashutosh"
ass.assistant_speaks("Today's date is "+da.get_date())
while(1):
ass.assistant_speaks("Tell me What for today? Anything Special For me ...")
text = ga.get_audio()
if text == '':
continue
if "exit" in str(text) or "bye" in str(text) or "sleep" in str(text):
ass.assistant_speaks("Ok bye, "+ n+'.')
break
# calling process text to process the query
tp.process_speak(text)
if __name__ == "__main__":
Main()