Final Report

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 37

Project Report on

VIRTUAL ASSISTANT
Submitted in Partial Fulfillment of the Requirement for the Award of the Degree
of

DIPLOMA IN
COMPUTER SCIENCE AND ENGINEERING

TO

BOARD OF TECHNICAL EDUCATION, LUCKNOW


UTTARPARDESH

By

NIKHIL (15)
PIYUSH TIWARI (17)
ABHISHEK RAJBHAR (01)

Under the Guidance of


Mr. UMESH KUMAR

DEPARTMENT OF COMPUTER SCIENCE


AZAD POLYTECHINC AZAMGARH-276123
June-2024
©AZAD POLYTECHNIC , AZAMGARH-276123, 2024

ALL RIGHTS RESERVED


Department of COMPUTER SCIENCE
AZAD POLYTECHINC
Azamgarh-U.P.

CERTIFICATE
This is to certify that the project titled “Virtual Assistant” being submitted by Nikhil, Piyush
Tiwari and Abhishek Rajbhar in partial fulfillment of requirements for the award of the degree of
Diploma in Computer Science at Azad Polytechnic Azamgarh, under Board of Technical
Education Lucknow Uttar Pradesh.

This report is an authentic record of candidate’s own work carried out under our supervision and
guidance. The matter embodied in this project has not been submitted to any other
University/Institute for the award of any other degree or diploma.

Mr. Umesh Kumar (Co-Supervisor)


(Project Supervisor)

External Examiner Mr. R.S. Kannojiya


(Principal)
ACKNOWLEDGEMENT

It is indeed a great pleasure to express our sincere thanks to our august Mr. Umesh Kumar,
Department of Computer Science of Azad Polytechnic, Azamgarh for his continuous support in this
project. He was always there to listen and to give advice. He showed us different ways to approach a
research problem and the need to be persistent to accomplish any goal. He taught us how to write
academic paper, had confidence in us when we doubted ourselves, and brought out the good ideas in
us. He was always there to meet and talk about our ideas, to proofread and mark up our paper, and to
ask us good questions to help us think through our problems. Without his encouragement and
constant guidance, we could not have finished this project.

Mr. Ramsurat Kannaujiya Principal of Azad Polytechnic, Azamgarh, and Mr. Umesh Kumar ,
Head of Computer Science Department really deserves our heartiest honor for providing us all the
administrative support.

We are thankful to our family whose unfailing love, affection, sincere prayers and best wishes had
been a constant source of strength and encouragement.

Last, but not least, we thank our parents, for giving us life in the first place, for educating us with
aspects from both arts and sciences, for unconditional support and encouragement to pursue our
interests. We dedicate this work to our parents who will feel very proud of us. They deserve real
credit for getting us this far, and no words can ever repay for them.

Nikhil

Piyush Tiwari

Abhishek Rajbhar
ABSTRACT

The project aims to create a new and advanced version of a desktop assistant with more capabilities
and give service to human like a personal assistant .This assistant is designed in python programming
language .The interface of this assistant is very user friendly to the user and user can interact with
easily there will be no difficulty to interact with it.

User can interact with it with voice command or user can use keyboard input to interact with it.
This assistant perform every task whatever user ask as a query like – play video on you tubes, search
some things on Google , open any application in the system , send what’s app messages, take a
screenshot, send emails, and it will also tell us weather and news update.

The assistant will improve the interaction between the end user and the desktop system. It will be
very user friendly to the clients.

The Most used iPhone application is “SIRI” which helps the user to communicate user device with
voice command and it will responds the output in the voice commands of the user.

Same kind of application is also developed by the Google that is “Google Voice Search” which is
used for in Android Phones. But this Application mostly works with Internet Connections. But our
Assistant has capability to work with and without Internet Connectivity. It is named as Smart
Desktop Assistant with Voice Recognition Intelligence, which takes the user input in form of voice
or text and process it and returns the output in various forms like output to be performed or the
search result is dictated to the end user. In addition, this proposed system can change the way of
interactions between end user .

The system is being designed in such a way that all the services provided by the computer devices
are accessed by the end user on the user's voice form.

Functionalities of this project include:

1. It can send emails.

2. It can read PDF.

3. It can send text on WhatsApp.

4. It can open command prompt, your favorite IDE, notepad etc.

5. It can play music.

6. It can do Wikipedia searches for you.


7. It can open websites like Google, YouTube, etc., in a web browser.

8. It can give weather forecast.

9. It can give desktop reminders of your choice.

10. It can have some basic conversation.

Now the basic question arises in mind that how it is an AI? The virtual assistant that I have
created is like if it is not an A.I, but it is the output of a bundle of the statement. But
fundamentally, the mail purpose of A.I machines is that it can perform human tasks with the
same efficiency or even more efficiently than humans. It is a fact that my virtual assistant is not
a very good example of A.I., but it is an A.I.
TABLE OF CONTENT
a) CERTIFICATE 2
b) ACKNOWLEDGEMENT 3
c) ABSTRACT 4
d) CHAPTER 1 INTRODUCTION 5-8
i) INTRODUCTION 5
ii BACKGOUND 6
e) CHAPTER 2 SYSTEM ANALYSIS 9-10
f) i) OBJECTIVE 13
i i PURPOSE 14
iii) SCOPE 14
iv) APPLICABILITY 14
v Present system
g) Chapter 3 Proposed System
h) CHAPTER 4 SOFTWARE DETAILS
i) Chapter 4 MATERIAL AND METHODS
j) CHAPTER 4 SYSTEM REQURIMENTS 11-16
i) SYSTEM REQURIMENT 15
ii) MODULES 15
k) CHAPTER 5 SYSTEM DESIGN SPECIFICATION 17-21

l) i) DESIGN SPECIFACTION 19
ii) DESIGN DIAGRAM 19
(1) DATA FLOW DIAGRAM 19
(2) SEQUENCE DIAGRAM 20
(3) DEPLOYMENT DIAGRAM 24

j) CHAPTER 6 TESTING 32-33


i) RESPONSE 32
ii)ACCURACY 32
iii)APPROXIMATION 33
k) CHAPTER 7 CONCLUSION 34-37
i) FEATURES 34
ii) FUTURE ENHANCEMENT 34
iii) CONCLUSION 35
iv) REFERENCE 36
CHAPTER -1

INTRODUCTION

In today’s time the entire task are performed digitally. We have computer and laptops which means
we can access anything in the world. Nowadays we are not using our finger to perform any task

We just speak of the task and it just complete. There is system occur called virtual assistant by which
we say something and the task will be done.

The Smart Virtual Assistant is the software program that will help us to perform our day to day life
simple task and make it easy for us such creating reminders, sending messages and emails, solving
some mathematical calculations, weather report. It can take command in the form of voice. Virtual
Assistant needed a special name to revoke to activate the listener, followed by the query.

This system is designed to be used be efficiently on desktops. Smart Desktop Assistant software
improves user specific productivity by managing some specific task made by user.

We know that in today’s era Voice command input searches have dominated over text search. In
smart phone devices web searches conducted have only overtaken those carried out using a personal
desktop or laptop and it is predicting that 50% of searches will be via voice by 2021 because it’s
simple and fast. Virtual assistants are turning out to be intelligent than ever.

Allow our intelligent assistant to do email work for you. Detect personal information, take important
information, make our process automatic and give a good output.
Virtual assistant is also known as digital assistant . Virtual Assistant are typically cloud based program that require
internet connected devices and applications to functions.

The Technologies that power virtual assistant required vast amount of knowledge ,powering the platform as well
as machine learning.

Language communication process and speech recognition arena. There are dedicated devices to provide virtual
assistant.
BACKGROUND :-
If we talk about the desktop assistant then there are already exist a number of desktop assistant.
Now there are few assistant that are already available in market so we are going to talk about
them and we will also talk about their task they can perform and also we will talk about their
drawbacks.

SIRI from Apple:-


SIRI is also known as a personal assistant. This assistant also interacts with the user through
the voice command. This assistant take the input from the user in the form of voice and then
it recognize the command and act on them.

This assistant also integrates with contacts, calendar and also it can play music library
application on the device and it also can integrate with the camera and GPS on the device.
These things this assistant can do.

There are more number of task whom this assistant can perform –

Supported task –

 It can call someone from their contacts list.

 It can launch the application form their iPhone.

 It can send the text messages from their phone to another phone.

 It also can set a reminder for a meeting for 9 am tomorrow.

 It can also set an alarm.

 It can also play songs.

 It also can enter new notes.

Drawback:-
Every assistant has a drawback, and this assistant also have some drawback. This
assistant (SIRI)have some knowledgeable data base and it does not maintain their
database of it’s own. So this is the drawback of this assistant.
Google assistant from android:-
Google assistant is also a type of a personal assistant that are available in android phones.

It also interact with the user through voice command . this assistant take the input from the user
in the form of voice and then it recognize the command and give the output to the user . User
can active this assistant by just pressing and holding home key of their phones.

What ever the user ask this assistant provide all types of output

This assistant can perform many task for the user, there are some task that this assistant can
perform for the user –

Supported task:-
There are some tasks that this assistant can perform –

 It can play music from the device and also from online.

 It can make call any one in the contact list.

 It can search any things online.

 It can open any application in the device.

 It can set reminder.

 It can set alarm.

 It can tell the weather update.

 It can send messages.

 It can install any things from the play store.

 It also can enter new notes.


Drawback:-
There are some drawbacks of this assistant –

 The drawback of this assistant is that is work only online, it can’t work offline.

 There are some issues to relate to the user data privacy.

 The main drawback of this assistant is that it takes too much permission from the user .

 If you deny giving the permission then assistant will not work properly.

 So this is the Drawback of this assistant.


Microsoft Crotona:-
Microsoft Crotona is a assistant for the desktop .It also interact with the user the voice

command .

This assistant takes the input from the user in the form of voice and gives the output to the end
user

in the form of voice.

This is a pre install assistant that comes in every coming window desktop.

There is a good point about Crotona is that it not only operate through voice but user also
interact with keyboard.

This assistant found in bottom left of the icon to the start menu in the desktop.

There are many tasks that this assistant can perform –


Supported task:-
There are some tasks that this assistant can perform –

 It can set reminder for the time, places, and people.

 It can use natural language search.

 It can identify a song.

 It can search anything from the web.

 It can perform calculation.

 It can tracks flights and packages.

 It can check the weather.

 It can set alarm.

 It can launch program.

 Now we will talk about the drawback of this assistant.


Drawback:-
Here are some drawbacks of this assistant –

 This assistant is not much user friendly to the users.

 The assistant also lack the important dictation function.


CHAPTER -2

OBJECTIVE

The main objective of building this smart desktop assistant is to make the system more user friendly
to the user and it also reduces the human effort.

With the help of this assistant user don’t need to write any things they just can say whatever they
want and the assistant will give them directly in the form of voice. Now with the help of this the
assistant reduce the time and user don’t need to waste their time to write some things they can easily
say that.

One of the main purposes to making this desktop assistant is that to make the system user friendly
with the user and they can easily interact with it. If there is any illiterate person who don’t know any
things about the laptop, desktop even they can easily interact with this assistant.

All they need to do is they can just ask the query whatever they want to search and then the assistant
will perform the task according the query and give the output to the user in he from of voice .

The main advantages of this assistant is that it reduce the time of the user and user don’t need to
waste their time in writing the query they can just ask whatever they want in the form of voice and
the assistant will perform the task according the query. In facts, voice is fourth time faster than the
written search: so if someone writes about 40 words per minutes, then with the voice they can speak
around 150with the same amount of time.

Before this assistant people waste their time to write something and after that they search many hour
on Google but they don’t get the exact output what they are looking for. Now after coming this
assistant it reduce the human effort and time and user can easily ask whatever they want and they get
exact output what they are looking for.

This assistant can perform many task just like –

It can solve a complex mathematical problem, it can play videos from YouTube, it can search any
things from Google and there are many task that can be perform by the user.
Purpose:-
The main purpose of making this assistant is to it will give the service to the human like their
personal assistant. And we also want to make human to more friendly to the system that’s why we
are making this project.

If we talk about today scenario then there are two most important things that human are too sensitive
for then and that is “time”, and “security”.

So this project basically for those people, it will reduce the time and give the fast output and also it
maintain the security to the user data. User don’t need to type any things they can just say whatever
they want to search and the assistant will give the output in the form of voice.

Purpose of virtual assistant is to being capable of voice interaction, music playback, making to-do
lists, setting alarms, streaming podcasts, playing audiobooks, and providing weather, traffic, sports,
and other real-time information, such as news. Virtual assistants enable users to speak natural
language voice commands in order to operate the device and its apps. There is an increased overall
awareness and a higher level of comfort demonstrated specifically by millennial consumers. In this
ever-evolving digital world where speed, efficiency, and convenience are constantly being optimized,
it’s clear that we are moving towards less screen interaction.

Scope:-
The scope of this project to reduce the human effort from the system. And the concept is to make the
system more user friendly to the human. There are many human who don’t know about this
environment, so our scope is that every human can easily interact with the system that why we are
making a user friendly assistant.

And there is an another scope of this project is that, since our projects is work on the voice
commands so there would be the great chance to reduce the time of the users and user don’t need to
waste their time in typing they can just say the command and the assistant will perform the command
and give the output in the form of voice.

So with the help operating system this we can save the time of the users.
Voice assistants will continue to offer more individualized experiences as they get better at

differentiating between voices. However, it’s not just developers that need to address the

complexity of developing for voice as brands also need to understand the capabilities of each

device and integration and if it makes sense for their specific brand. They will also need to focus on

maintaining a user experience that is consistent within the coming years as complexity becomes

more of a concern. This is because the visual interface with voice assistants is missing. Users simply

cannot see or touch a voice interface.

Applicability:-
If we talk about today scenario the mass adoption of the artificial intelligence in human is increasing
and they are fueling the shift toward the voice command assistant. The number of the IOT devices is
increasing day by day.

In voice command assistant the smart speaker is increasing day by day. Many industry and many
human are using this voice command are using this voice command assistant speaker.

After twenty year from now the virtual assistant will also enhance the system of the internet of
things(IOT). In present time there are many personal assistant is exist and as the world is developing
is very fast then after some time every thing will be digitally . And in being digitally the assistant
play a important role . It will also use full because it will reduce the human effort and every thing
easy and human an access then by just using their voice .

The mass adoption of artificial intelligence in users’ everyday lives is also fueling the shift towards
voice. The number of IoT devices such as smart thermostats and speakers are giving voice assistants
more utility in a connected user’s life. Smart speakers are the number one way we are seeing voice
being used. Many industry experts even predict that nearly every application will integrate voice
technology in some way in the next 5 years. The use of virtual assistants can also enhance the system
of IoT (Internet of Things). Twenty years from now, Microsoft and its competitors will be offering
personal digital assistants that will offer the services of a full-time employee usually reserved for the
rich and famous
PRESENT SYSTEM:-

We are familiar with many existing voice assistants like Alexa, Siri, Google Assistant, Cortana
which use concept of language processing, and voice recognition. They listens the command
given by the user as per their requirements and performs that specific function in a very
efficient and effective manner . As these voice assistants are using Artificial Intelligence hence
the result that they are providing are highly accurate and efficient. These assistants can help to
reduce human effort and consumes time while performing any task, they removed the concept
of typing completely and behave as another individual to whom we are talking and asking to
perform task. These assistants are no less than a human assistant but we can say that they are
more effective and efficient to perform any task. The algorithm used to make these assistant
focuses on the time complexities and reduces time. But for using these assistants one should
have an account (like Google account for Google assistant , Microsoft account for Cortana) and
can use it with internet connection only because these assistants are going to work with
internet connectivity. They are integrated with many devices like, phones, laptops, and
speakers etc.
CHAPTER - 3

PROPOSED SYSTEM

Based on the study of this system the proposed system is to simplify basic operations for the users, users
with faulty hardware users who could to busy to perform certain operations themselves elderly people
and even users with sight our motor disabilities.
For example a teacher could bs scanning exam papers and remembers that he must book a flight.
rather than learning the work he is doing he could simply tell the Virtual Assistant application to assist
him by saying “ Find nearby airpots”. And therefore the applications will help the user open his browser
and find airpots also will allow him on the brink of him and other flight details, inherently null
flying the necessity for him to do it himself. The appliance will also allow him to perform this tasks
significantly faster than he would how done otherwise the appliance also process speech sensing
capabilities to offer the user to inappropriate that he is talking and dealing with an actual assistant.
Speech Recognition will take an input file as a voice and map it into its textual representation.
It represent to basic commands like open applications , clear application , connect google , sent
mail to respective Person.

It was an interesting task to make my own assistant. It became easier to send emails without typing any
word, Searching on Google without opening the browser, and performing many other daily tasks like
playing music, opening your favorite IDE with the help of a single voice command. Virtual Assistant is
different from other traditional voice assistants in terms that it is specific to desktop and user does not
need to make account to use this, it does not require any internet connection while getting the instructions
to perform any specific task.

The IDE used in this project is PyCharm. All the python files were created in PyCharm and all the
necessary packages were easily installable in this IDE. For this project following modules and libraries
were used i.e. pyttsx3, Speech Recognition, Datetime, Wikipedia, Smtplib, pywhatkit, pyjokes,
pyPDF2, pyautogui, pyQt etc.
I have created a live GUI for interacting with the VIRTUAL ASSISTANT as it gives a design and
interesting look while having the conversation.
With the advancement VIRTUAL ASSISTANT can perform any task with same effectiveness or can say
more effectively than us. By making this project, I realized that the concept of AI in every field is
decreasing human effort and saving time. Functionalities of this project include, It can send emails, It
can read PDF, It can send text on WhatsApp.
It can open command prompt, your favorite IDE, notepad etc., It can play music, It can do Wikipedia
searches for you, It can open websites like Google, YouTube, etc., in a web browser, It can give
weather forecast, It can give desktop reminders of your choice. It can have some basic conversation
CHAPTER - 4

MATERIAL AND METHODS

REQUIREMENT AND ANALYSIS:

System Analysis is about complete understanding of existing systems and finding where the existing

system fails. The solution is determined to resolve issues in the proposed system. It defines the system.

The system is divided into smaller parts. Their functions and inter relation of these modules are studied in
system analysis. The complete analysis is followed below:-

Problem definition
Usually, user needs to manually manage multiple sets of applications to complete one task. For example,

a user trying to make a travel plan needs to check for airport codes for nearby airports and then check

travel sites for tickets between combinations of airports to reach the destination. There is need of a system

that can manage tasks effortlessly.

We already have multiple virtual assistants. But we hardly use it. There are number of people who have

issues in voice recognition. These systems can understand English phrases but they fail to recognize in

our accent. Our way of pronunciation is way distinct from theirs. Also, they are easy to use on mobile

devices than desktop systems. There is need of a virtual assistant that can understand English in Indian

accent and work on desktop system.

When a virtual assistant is not able to answer questions accurately, it’s because it lacks the proper context

or doesn’t understand the intent of the question. Its ability to answer questions relevantly only happens

with rigorous optimization, involving both humans and machine learning. Continuously ensuring solid

quality control strategies will also help manage the risk of the virtual assistant learning undesired bad
behaviors. They require large amount of information to be fed in order for it to work efficiently.
Virtual assistant should be able to model complex task dependencies and use these models to recommend
optimized plans for the user. It needs to be tested for finding optimum paths when a task has multiple sub-
tasks and each sub-task can have its own sub-tasks. In such a case there can be multiple solutions to paths,
and the it should be able to consider user preferences, other active tasks, priorities in order to recommend

a particular plan

REQUIREMENT SPECIFICATION:
Personal assistant software is required to act as an interface into the digital world by understanding user
requests or commands and then translating into actions or recommendations based on agent’s
understanding of the world.

Virtual Assistant focuses on relieving the user of entering text input and using voice as primary means of
user input. Agent then applies voice recognition algorithms to this input and records the input. It then use
this input to call one of the personal information management applications such as task list or calendar to
record a new entry or to search about it on search engines like Google, Bing or Yahoo etc.

Focus is on capturing the user input through voice, recognizing the input and then executing the tasks if
the agent understands the task. Software takes this input in natural language, and so makes it easier for
the user to input what he or she desires to be done

Feasibility Study:
Feasibility study can help We determine whether or not We should proceed with various project. It is
essential to evaluate cost and benefit. It is essential to evaluate cost and benefit of the proposed system.
Five types of feasibility study are taken into consideration.

Technical feasibility :-
It includes finding out technologies for the project, both hardware and software. For virtual assistant,
user must have microphone to convey their message and a speaker to listen when system speaks. These
are very cheap now a days and everyone generally possess them. Besides, system needs internet
connection. While using Virtual Assistant, make sure We have a steady internet connection. It is also not

an issue in this era where almost every home or office has Wi-Fi.

Operational feasibility :-
It is the ease and simplicity of operation of proposed system. System does not require any special skill

set for users to operate it. In fact, it is designed to be used by almost everyone. Kids who still don’t know

to write can read out problems for system and get answers.
Economical feasibility :-
Here, we find the total cost and benefit of the proposed system over current system. For this project, the
main cost is documentation cost. User also would have to pay for microphone and speakers. Again, they
are cheap and available. As far as maintenance is concerned, JIA won’t cost too much.

Organizational feasibility :-
This shows the management and organizational structure of the project. This project is not built by a team.
The management tasks are all to be carried out by a single person. That won’t create any management
issues and will increase the feasibility of the project.

Cultural feasibility :-
It deals with compatibility of the project with cultural environment. Virtual assistant is built in accordance
with the general culture. The project is named JIA so as to represent Indian culture without undermining
local beliefs. This project is technically feasible with no external hardware requirements. Also it is simple
in operation and does not cost training or repairs. Overall feasibility study of the project reveals that the
goals of the proposed system are achievable. Decision is taken to proceed with the project.
CHAPTER - 4

SYSTEM REQUIREMENTS

SYSTEM REQURIMENTS –

For making of Smart Desktop assistant run we need to have Python 3.6 or above version of python
and any IDE. I use visual studio code to run my code.

MODULES
Imported module:-

1) pyttsx3:-

p
It convert the text data into speech data .
This is a free module that available in python. This module is supported by both version of python
(python 2.0 & 3.0). This is a free module so we can just install it easily
to just type –
“pip install pyttsx3”
We can import it by typing this command in python –
“import pyttsx3”.

2)Time and Date


This is a inbuild library in python. This library is used for to get time and date from the system .
For example if some one wants to know the current date and time then with the help of this
module the assistant can easily tell them the current date and time .
We can just import this module and used in program .

We can import it by typing this command in python –


“import DateTime”.

3). Speech Recognition –


The first component of the speech recognition system is speech. Speech
needs to be converted from its physical from to an electrical signal with the
help of a microphone which is tightened using several mode.

For using this module first we need to install it in our system.


We can install it from the command to just type that –

“pip install speech recognition”.


After installing the module we can use it in our program by just import this module.
We can import it by typing this command in python –
“import speech recognition as sr”.
We are storing this library in “sr”. It means when ever we are calling this (sr) it means we are
calling this (speech recognition) module.

4.) Send what’s app messages:-


In this we can also send what’s app messages. We can send messages through web what’s app.
All we need to do is just install a module. And the module is -

“pip install pyautogui” .

With the help of this module we can send messages. Now we need to import this in our program

“import pyautogui”

“import webbrowser”

Web browser is used for open the what’s app from the web.

5). Wikipedia:-
It is a module in python that are used for search something from the Wikipedia as per the queries
and display the result to the user.
We can search any thing from Wikipedia we just need to install this module
and then we can use in our program .

We can just install like this –

“pip install Wikipedia”


After installing this we can import in our program .
“Import Wikipedia”.

6). Play you tubes videos:-


In this we can also play any video from the you tubes.

We can just ask the queries to the assistant and assistant can play the video from
the you tubes.
We need to install a module to perform this task.

“pip install pywhatkit”.

After the installing the module we can import it in the program for the
further use. We can import it by typing this command in python –

“Import pywhatkit”.

7) Jokes:-
This is inbuid library in python . It
used to tell us jokes. We can just
use this by installing this module

“pip install pyjokes”.
After installing this we can import in our program to used it . We can import it
by typing this command in python –
“import pyjokes”.

8). CPU and battery update:-


If user want to see the CPU utilization or the battery percentages then the assistant
also tell them.We can just install a module to perform this task –

“pip install psutill”.


With the help of this module the assistant can perform the task. We just need to
import this in our program.

We can import this by typing this command in python –

“import psutill”.

9.) weather update :-


The assistant will give us to live weather update .

When ever user ask for the weather report then assistant will
give us a weather report. User can ask for weather from any
city or any country in the world .

10). news update:-


This assistant also give us to daily news update if user ask for news to
assistant.

We just need to install a news API so with the help of this API the
assistant will tell the top headline of the topic what ever the user ask.

“pip install newsapi”.


Now we can import this by typing this command in python –
“from newsapi import NewsApiClient”.

11). SMTPLIB:-
Smtp(simple mail transfer protocol)
This is a inbuild library in python . We don’t need to install any
thing we can just simply import this library in our program and with
the help of this the assistant can send mail to any person whom the
user wants to send .

We can import this by just typing this command in python –

“import smtplib”.
12). Qr Code:-
(Qucik Response Code)

This is inbuilt library in python. It is used to create qr codes.


We can use this function by just installing this module:

“pip install qr code”.


After installing this we can import in our program to used it . We can import
it by typing this command in python –
“import qr code”

13). Appopener:-

This is inbuilt library in python. It is used to create open


applications or apps.
We can use this function by just installing this module:

“pip install Appopener”.

After installing this we can import in our program to used it . We can import it
by typing this command in python –
CHAPTER - 5

SYSTEM DESIGN

DATA FLOW DIAGRAM: -


A data flow diagram (DFD) is a graphical representation of the "flow" of data through an
information system, modelling its process aspects. A DFD is often used as a preliminary step to
create an overview of the system, which can later be elaborated.

User gives the input into the form of voice, this voice command is recognized by the application.
Then action is performed as per the command given. Command given is compared with the database.

Input is given by user in the form of voice. Using microphone, voice is converted in binary. Google
Voice API will convert this voice data in text form and then the action is performed according to the
command given by the user by comparing with the database.
Data flow in Assistant :-

This content that how the data is flow inside the assistant.

In the above figure the assistant take input in the form of voice and check it in query checker that
the query present or not then it will execute it by providing the task which is ask in the query by
the user .
Sequence Diagram :-

The following sequence diagram represent how the output is get on the query made by user from
the internet. The query in the form of voice is sent to web scraper and the web scraper searches the
output according to the query made by the user. It will sent the output to the speaker and the
speaker will speak the output.
USE CASE DIADRAM :-

In this project name Virtual Assistant there is only one user and the user made different queries and
the system will interact with it fetched the output . The output will be get in the form of voice to the
user .
CLASS DIAGRAM :-

In this project the user has 2 attributes commanded that it speak audio in form of input and response
it in form of audio. It will listen the user command. Interact with the web and provide output to us.

The task class also has the interpreted command in string format . has function like remainder,
making a notes, read etc.
DEPLOYMENT DIAGRAM :-

The user interacts with database to search different queries present or not according to input made by
user.
CHAPTER 6

SYSTEM TESTING

TEST CASE DESGINS

Test Case 1 –

Test Basis – Time Taken in Response


Test No. – T1
Test Priority : High
Test Objective : To Insure that the system responding in efficient time.
Description :
We are not typing the input in the system we will speak to give the input. So time is very
important in the system. As we know that time is very critical in Assistant based system. The
system must reply in few seconds. User must get a quick response instantly to their query.

Test Case 2 –
Test Basis – Accuracy of the system
Test No. – T2
Test Priority : High
Test Objective : To Insure that the system responding to the query made is
accurate as per information gathered.
Description :

The Smart Desktop assistant as said is smart because it give a precise answer to any query asked
and made. Getting answer in a quick time is not useful if the answer or response is incorrect. So
accuracy is most important in Desktop Assistant
Test Case 3 –
Test Basis – To check Approximation
Test No. – T3
Test Priority : Medium
Test Objective : To Insure that the system responding the answer about
calculation are approximate.
Description :
We know that at the time of mathematical calculation sometime we need some approximate
value. For example if someone ask for the value of PI the assistant must respond with
approximate value and not the accurate value. Getting exact value in such case are undesirable.
CHAPTER 7
CONCLUSION

Future Enhancement:-
 The assistant can fetch friend’s details.

 The assistant also can tell you your birthday , anniversary , and special holidays from
facebook twitter , and google accounts from the user and display a reminder to the user.

 The assistant can be modified into a home automation system.

 The assistant will improve the world with the help of IOT.

 With the help of IOT we can make home automation , security management for human and
many other things that will help full for human.

 In future the desktop will also improve and it will developed in later stages.

 Enhancement in the capacity of database for the data training set can be done on this for move

Situation on the data training set can be done in this for more the activities that can be faced by

Virtual Assistant.

Features:-
 This assistant can search any things from website through the user voice command.

 This assistant can set alarm.

 This assistant can tell us the weather update for any city or country what the user want
to know.

 This assistant can open any application from the system through user voice command .

 This assistant can play videos form the you tubes.

 This assistant also tell is news report update daily


Conclusion:-

In this project we have discuss “VIRTUAL ASSISTANT “ developed using “PYTHON”


programming language. This assistant can perform many task just listen the voice command from
the user . There is some task that this assistant can perform – it can play music from the system ,
give weather update , tell us news headline and so many task that this assistant can perform.

The efficiency and the feature of this desktop is improve day by day . It name a smart desktop
assistant because it has many advanced feature that are not represent in Microsoft cortana.

There are a reason why this assistant is good to compare then the Microsoft assistant because this
assistant is much user friendly to compare then the cortana . there are many user who don’t know
about this cortana and they are not user friendly to this assistant . many user off their cortana from
their laptop/desktop.

And our assistant is much user friendly to the user and user will not get any difficulty to use this
assistant.

Through this voice assistant, we have automated various services using a single line command. It
eases most of the tasks of the user like searching the web, retrieving weather forecast details,
vocabulary help and medical related queries. We aim to make this project a complete server assistant
and make it smart enough to act as a replacement for a general server administration. The future
plans include integrating Virtual Assistant with mobile using React Native to provide a synchronised
experience between the two connected devices. Further, in the long run, Virtual Assistant is planned
to feature auto deployment supporting elastic beanstalk, backup files, and all operations which a
general Server Administrator does. The functionality would be seamless enough to replace the Server
Administrator with Virtual Assistant.
REFERENCE:-

Website referred:-

 www.pythonprogramming.net

 https://en.wikipedia.org/wiki/Virtual_assistant

 https://www.researchgate.net/publication/26 4001644_Virtual_Personal_Assistant
1. https://www.geeksforgeeks.org/build-avirtual-assistant-using-python/

 https://www.geeksforgeeks.org/project-ideapersonal-assistant/ •
Book referred:-

 Python programming – Kiran Gurbani

 Learning python – Mark Lutz


You tubes Channels referred:-

 Code With Harry

 Programming With Harry

 .Edureka!

 Cs Dogo

DOCUMENT REFFERED:-

 1.INTERNATIONAL JOURNAL OF SCIENTIFIC & TECHNOLOGY RESEARCH


VOLUME 8, ISSUE 12, DECEMBER 2019 ISSN 2277-8616

 2.International Journal of Engineering Research and Technology. ISSN 0974- 3154


Volume 10, Number 1 (2017) © International Research Publication House
http://www.irphouse.com

 3.International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-


0056

You might also like