Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# AI_Personal_Voice_Assistant_Using_Python
# AI_Personal_Voice_Commanding_Assistant_Using_Python

A project to build an AI voice assistant using Python . The Voice assistant interacts with the humans to perform basic tasks.
A project to build an AI voice commanding assistant using Python . The Voice commanding assistant interacts with the humans to perform basic tasks.


### About G-One :

![AI FINAL](https://user-images.githubusercontent.com/51138087/93668051-f7c4af00-fa3e-11ea-9b17-5913e954795f.png)


G-One is an AI personal voice assistant service built using Pychram. It can understand human speech and perform basic task designed by the client.
G-One is an AI personal voice commanding assistant service built using Pychram. It can recognize human speech and interpret to perform basic task designed by the client.

When the user specify the appropriate trigger words , The G-One gets activated and executes the user commands.

Expand All @@ -18,7 +18,7 @@ G-One AI Voice assistant:"Loading your personal Assistant G-One....



### The implemented Voice assistant can perform the following tasks:
### The implemented Voice commanding assistant can perform the following tasks:


1. Opens a wepage : Youtube , G-Mail , Google Chrome , StackOverflow
Expand Down
23 changes: 22 additions & 1 deletion venv/virtual.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import wolframalpha
import json
import requests
import smtplib


print('Loading your AI personal assistant - G One')
Expand Down Expand Up @@ -50,6 +51,15 @@ def takeCommand():
return "None"
return statement

# enable less secure app setting of your email for this functionality
def sendEmail(to, content):
server = smtplib.SMTP('smtp.gmail.com', 587)
server.ehlo()
server.starttls()
server.login('your email address', 'password')# add your email address here and password
server.sendmail('receiver email', to, content)
server.close()

speak("Loading your AI personal assistant G-One")
wishMe()

Expand Down Expand Up @@ -165,7 +175,18 @@ def takeCommand():
answer = next(res.results).text
speak(answer)
print(answer)

elif 'email to' in statement:
try:
speak("Sir, give me your message")
print('Give message.......')
content = takeCommand()
to = " receiver email "
sendEmail(to, content)
print('Sending mail........')
speak("Email has been sent!")
except Exception as e:
print(e)
speak("Sorry master . I am not able to send this email")

elif "log off" in statement or "sign out" in statement:
speak("Ok , your pc will log off in 10 sec make sure you exit from all applications")
Expand Down