Skip to content

Commit 6742801

Browse files
committed
Made suggested changes
1 parent b2f78b5 commit 6742801

File tree

5 files changed

+39
-35
lines changed

5 files changed

+39
-35
lines changed

Desktop-Voice-assistant/READme.md

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
# DESKTOP VOICE ASSISTANT #
1+
# DESKTOP VOICE ASSISTANT
22

3-
# LEVEL -2 #
3+
# LEVEL -2
44

55
It would be great to have a desktop voice assistant who could perform tasks like sending email, playing music, search wikipedia on its own when we ask it to. This desktop assistant does exactly that for the user.
66

7-
# What tasks can it perform? #
7+
8+
# What tasks can it perform?
89

910
1. It can send emails on your behalf.
1011
2. It can search wikipedia and read the first few lines for you.
@@ -14,27 +15,55 @@ It would be great to have a desktop voice assistant who could perform tasks like
1415
6. Tell date and time for you.
1516
7. Open apps on your device. (other.txt)
1617

17-
# How to use #
18+
19+
# How to use
1820

1921
1. Start the assistant.
2022
2. Keep giving the required commands
2123
3. If done say 'no thanks' and the assistant will stop itself
2224

23-
# Check requirements.txt and important.txt before using the assistant #
25+
# Check requirements.txt and important.txt before using the assistant
2426

25-
# Side note #
27+
28+
# Side note
2629

2730
Make sure you set Master as your name. (line 21)
2831
Enter the email and app password (check important,txt) (line 63)
2932
Also before making it read any pdf, enter the name of the pdf. (line 70)
30-
Check other.txt for opening some apps on your device.
33+
You need to be logged into whatsapp for using the assistant to send whatsapp messages.
34+
3135

32-
# Module used #
36+
# Additional features:
37+
You can use it to open apps on your device like word, one note, notepad, VS code etc
38+
The path will vary from user to user
39+
Here is the code you can use:
40+
41+
import os
42+
elif 'Open <App name>' in query:
43+
path= "Location of the application"
44+
os.startfile(path)
45+
46+
47+
# For using the mailSent function:
48+
Here for making the sent Email function work, there are certain changes that should be made in respective device or else the function won't work and a error will pop up
49+
For the function to work:
50+
1. In google search "Less secured apps in gmail"
51+
2. Select "Control access to less secure apps"
52+
3. Here enable the less secure apps for the account you will be using to send emails
53+
Now its a concern of security if we have to write our password this way
54+
for no privacy breach we can use the following steps:
55+
1. Go to goole and search "App passwords google"
56+
2. Open "App passwords-Sign in Google"
57+
3. Sign in the with the account you want to use for sending emails using this
58+
4.Under "select the app and device you want generate password for"
59+
i> Select App= Mail Select Device= Windows 10
60+
ii>Click on generate
61+
5. Copy the app password and use it here.
3362

34-
Check requirement.txt for this.
3563

3664
# Development Status #
3765

3866
The amount of things that can be done with this AI assistant is endless. This is just a basic structure which is at present complete. It might be using hotwords in future that will trigger the assistant, , might be used in sending the system to sleep mode, set alarm, send text messages to contacts on your phone and lot more.
3967

68+
4069
# Developed by Sayantani Saha #

Desktop-Voice-assistant/important.txt

Lines changed: 0 additions & 16 deletions
This file was deleted.

Desktop-Voice-assistant/other.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

Desktop-Voice-assistant/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#Following modules are being used here:
21
pyttsx3
32
datetime
43
speech_recognition

Desktop-Voice-assistant/voice_assistant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def mailSent(to, content):
6060
server.ehlo()
6161
server.starttls()
6262
server.login('your email', 'your app password') # when you start working with the assistant, save this on your device
63-
#check important.txt for creating an app password
63+
#check READme.md for creating an app password
6464
server.sendmail('Your email',to,content)
6565

6666
server.close()

0 commit comments

Comments
 (0)