From 6381d5448470e7b669b34f6044fdd1829a21575a Mon Sep 17 00:00:00 2001 From: Anuj Dubey <70852663+anujdube12@users.noreply.github.com> Date: Thu, 1 Oct 2020 12:14:19 +0530 Subject: [PATCH 1/2] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 From 631df92ab7e8cbc5e3cf7b5f5c7716709af05402 Mon Sep 17 00:00:00 2001 From: Anuj Dubey <70852663+anujdube12@users.noreply.github.com> Date: Thu, 1 Oct 2020 12:26:50 +0530 Subject: [PATCH 2/2] Added sending email functionality send email to given receiver --- venv/virtual.py | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) 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")