diff --git a/README.md b/README.md index 1f984dc..288b268 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# 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 : @@ -8,7 +8,7 @@ A project to build an AI voice assistant using Python . The Voice assistant inte ![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. @@ -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 diff --git a/venv/virtual.py b/venv/virtual.py index b8eda2f..64f08dd 100644 --- a/venv/virtual.py +++ b/venv/virtual.py @@ -10,6 +10,7 @@ import wolframalpha import json import requests +import smtplib print('Loading your AI personal assistant - G One') @@ -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() @@ -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")