Mca 6 Semester: A Major Project Report ON
Mca 6 Semester: A Major Project Report ON
Mca 6 Semester: A Major Project Report ON
A
Major Project Report
ON
“PERSONAL VOICE ASSISTANT”
MCA 6th Semester
(Session: 2020-21)
SUBMITTED BY
SATYA PRAKASH
ROLL NO.-18606050
Enroll No:- GGV/18/5070
1|Page
CERTIFICATE OF COMPLETION
2|Page
ACKNOWLEDGMENT
“Task successful” makes everyone happy. But the happiness
will be gold without glitter if we didn’t state the persons who have
supported us to make it a success.
Success will be crowned to people who made it a reality but
the people whose constant guidance and encouragement made it possible
will be crowned first on the eve of success.
This acknowledgement transcends the reality of formality when
we would like to express deep gratitude and respect to all those people
behind the screen who guided, inspired and helped me for the completion
of our project work.
I consider myself lucky enough to get such a good project. This project
would add as an asset to my academic profile.
I would like to express my thankfulness to my project guide,
AKHILESH SHRIVAS for her constant motivation and valuable help
through the project work, and I express my gratitude to
VAIBHAV JAJODIYA, Director of JAJODIYA TECH SOLUTION, Bilaspur,
for his constant supervision, guidance and co-operation through-out the
project.
I also extend my thanks to my Team Members for their co-
operation during my course.
Finally I would like to thanks my friends for their co-operation
to complete this project.
3|Page
SATYA PRAKASH
4|Page
ABSTRACT
Adoption of social network sites and use of smart phones with number of
sensors in them has digitized user’s activities in real-time. Smart phone
applications such as calendar, email, and notes contain lot of user
information and provide a view into user’s activities, while sensors such as
GPS sensor can be used to passively find information about the user. In
addition to this user and device data, these devices have access to the
Internet that can be leveraged to build powerful applications.
5|Page
CONTENTS
1. INRODUCTION 1
1.1 INTRODUCTION 1
1.2 PROBLEM STATEMENT 2
1.3 BACKGROUND 3
1.4 OBJECTIVES 4
6|Page
6. BUILDING OF PERSONAL VOICE ASSISTANT 27
6.1 BUILDING A PERSONAL VOICE ASSISTANT 27
6.2 DEPENDENCIES AND REQUIREMENTS 28
6.3 LET’S START BUILDING OUR DESKTOP VOICE ASSISTANT
USING PYTHON 28
6.4 FLOW-CHART 32
6.5 DATA FLOW DIAGRAM 33
8 CONCLUSION 40
9. FUTURE ENHANCEMENTS 41
10. BIBLOGRAPHY 42
7|Page
CHAPTER-1
INTRODUCTION
1.1 INTRODUCTION
The basic idea behind this project is to create a simple stand-alone
application that helps less tech savvy people in the world to use the
computer without feeling ignorant or computer illiterate.
Computers have become a very important devices and as well as less
expensive over time.
The application works same like Siri/ Google Assistant etc. But the
application deals with the computer itself mainly.
The U.I of the application is self-explanatory and minimal.
Currently it takes text as input as most of the people are not very good at
speaking.
Nowadays the Mobile Technology is being very famous for the User
Experience, because it is very easy to access the applications and services
from anywhere of your Geo-location. Android, Apple, Windows, Blackberry,
etc. are various famous and commonly used Mobile Operating Systems. All
the Operating Systems provides plenty of applications and services for
users.
For an instance, the Contacts Applications is used to store the contact
details of the user's contact and also helps user to connect a call or send
an SMS to other person using the contents stored in this application. We
can get similar types of application all around the world via Apple Store,
Play Store, etc. All this features gives birth to various kinds of sensors or
functionalities to be implemented in the mobile devices.
The Most famous application of iPhone is “SIRI” which helps the end user
to communicate end user to mobile with voice and it also responds to 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 Proposed System has capability to work with and without Internet
Connectivity.
It’s named as Personal Assistant with Voice Recognition Intelligence, which
takes the user input in form of voice or text and process it and returns the
8|Page
output in various forms like action to be performed or the search result is
dictated to the end user.
9|Page
the six most renowned applications based on artificial intelligence concepts
that can help create your virtual AI assistant app.
1.3 BACKGROUND
Siri. Siri is Apple Inc.’s cloud software that can answer users’ various
questions and give recommendations, due to its voice processing
mechanisms. When in use, Siri studies the user's’ preferences (like
contextual advertising) to provide each person with an entirely individual
approach. This software solution is also useful for developers; the
presence of API called SiriKit provides smooth integration with new
applications developed for iOS and watchOS platforms.
Amazon Echo. Amazon Echo combines hardware and software that can
search the web, help with scheduling of upcoming tasks and play various
sound files all based on voice recognition. A small speaker equipped with
sound sensors, the device can be automatically activated by exclaiming
“Alexa.”
Nina. Software with AI elements that has a main goal of narrowing down
the amount of physical effort spent on the solution of daily tasks (web
search, scheduling, etc.) Due to elaborate analytical mechanisms, Nina
becomes “smarter” with every day of personal utilization.
10 | P a g e
Bixby. Samsung’s Bixby application is another successful implementation
of the AI concept. It also builds a unique user approach, based on interests
and habits. Bixby features advanced voice recognition mechanisms, and
uses the camera to identify images, based on markers and GPS.
1.4 OBJECTIVES
To design a smart agent that has contextual information about the user
and helps in managing and planning tasks, using python web technologies
and open data available on the Internet. Contextual information about the
user can be location, current time, calendar appointments, relation
between tasks, decomposition of tasks, past history of tasks, user
interests, likes etc. Agent can use data gathered about the user as well as
environment data to better understand what each of the tasks mean and
decompose the tasks based on sequence of steps stored in its knowledge
base and then plan individual tasks.
Planning part of the agent will strive to optimize resources and try to
improve productivity of the user. It can be used as a time management
application as well as a task management application. By combining,
related tasks together that can be completed at the same time and around
the same location, agent will optimize the user’s resources to complete
these tasks.
A feedback loop from the user will help the agent to make decisions when
there are multiple paths and agent does not have sufficient information to
make those decisions.
11 | P a g e
Assumptions, limitations and constraints in the solution will be highlighted
and any additional infrastructure necessary as a complement to the
system will be identified.
CHAPTER-2
PERSONAL ASSISTANT SOFTWARE IN THE
MARKET
12 | P a g e
2.2.1 VOICE RECOGNITION AS INPUT ENTRY MEDIUM
2.2.3 PLANNING
13 | P a g e
A modern history of Voice Assistants
In recent times, Voice assistants got the major platform after Apple
integrated the most astonishing Virtual Assistant — Siri which is
officially a part of Apple Inc. But the timeline of greatest evolution
began with the year 1962 event at the Seattle World Fair where
IBM displayed a unique apparatus called Shoebox. It was the actual
size of a shoebox and could perform scientific functions and can
perceive 16 words and also speak them in the human recognizable
voice with 0 to 9 numerical digits.
During the period of the 1970s, researchers at Carnegie Mellon
University in Pittsburgh, Pennsylvania — with the considerable help
of the U.S Department of Defence and its Defence Advanced
Research Projects Agency (DARPA) — made Harpy. It could
understand almost 1,000 words, which is approximately the
vocabulary of a three-year-old child.
Big organizations like Apple and IBM sooner in the 90s started to
make things that utilized voice acknowledgment. In 1993,
Macintosh began to building speech recognition with its Macintosh
PCs with PlainTalk.
In April 1997, Dragon NaturallySpeaking was the first constant
dictation product which could comprehend around 100 words and
transform it into readable content.
14 | P a g e
Having said that, how cool it would be to build a simple voice-based
desktop/laptop assistant that has the capability to:-
1. Open the YouTube in the browser.
2. Open any website in the browser.
3. Send an email to your contacts.
4. Launch any system application.
5. Tells you the current weather and temperature of almost any city
6. Tells you the current time.
7. Greetings
8. Play you a song on VLC media player(of course you need to
have VLC media player installed in your laptop/desktop)
9. Change desktop wallpaper.
10. Tells you latest news feeds.
11. Tells you about almost anything you ask.
So here in this article, we are going to build a voice-based
application which is capable of doing all the above-mentioned tasks.
15 | P a g e
calendar events, files, and to do lists. Some automated personal
assistants can perform concierge type tasks or provide information
based on voice input or commands and some smart personal
agents, which can automatically perform management or data
handling tasks based on online information without user initiation or
interaction.
Intelligent Agents can be classified based on their degree of
perceived intelligence and capability such as simple reflex agents,
model-based reflex agents, goal-based agents, utility-based agents
and learning agents.
The Intelligent Personal Assistant software is an application that has
been designed to assist people with basic tasks using an inbuilt
natural language user interface. Intelligent personal assistants help
answer and respond to queries based on the data that the user
inputs into it. They are ropersonal voice assistants that help solve
problems in real-time which enhances human capability and
productivity.
Calendar & Meeting Reminder: Intelligent Personal Assistant
schedule meetings & appointments reminders instantly on behalf
of the user. IPAs also helps the user remember everything they
have set it to remind them and send the user signals, photos,
links and more via SMS, emails or other means. This software
can set alarms to tell the user of an upcoming event or task.
Automation: Help to automate most of the essential functions
that the user wants. The user can utilize IPAs to do research,
identify landmarks, shop, and translate foreign languages among
other tasks.
Natural Conversation: Intelligent Personal Assistant can
understand and respond to complex questions. It recognizes the
intent of the user's inquiry, personalizes the responses based on
context, and troubleshoots the problem using conversational
strategies when answering social questions, reacting to customer
frustrations and even becomes a live chat agent when need be.
The user can create reminders, ask questions and even type
anything they want by speaking to the program.
16 | P a g e
Recommending: They can recommends things, places and
items to the user. The user can find whatever they need
including shops, hospitals and more with a swipe or tap.
Smarter Learning: Artificial intelligence technology uses
personal voice assistanth machine learning and natural language
understanding which allows it to obtain industry-specific
knowledge and unique business data and thus can do marketing
for an enterprise.
Integration: They can be set up in any digital channel instantly
or later on. IPA also integrates into the human-assisted
engagements by either consolidating with an unseen coach or
transferring all relevant data when switching to live chat, to
ensure that the user experience is never disturbed.
17 | P a g e
make these adjustments can be especially helpful if someone
named Alex or Alexis lives in the home.
CHAPTER-3
FEASIBILITY REPORT
Preliminary investigation examine project feasibility, the likelihood
the system will be useful to the organization. The main objective of
the feasibility study is to test the Technical, Operational and
Economical feasibility for adding new modules and debugging old
running system. All system is feasible if they are unlimited
resources and infinite time. There are aspects in the feasibility
study portion of the preliminary investigation:
1 Technical Feasibility
2 Operation Feasibility
3 Economic Feasibility
18 | P a g e
3 Will the proposed system provide adequate response to
inquiries, regardless of the number or location of users?
4 Can the system be upgraded if developed?
5 Are there technical guarantees of accuracy, reliability, ease of
access and data security?
Earlier no system existed to cater to the needs of ‘Secure
Infrastructure Implementation System’. The current system
developed is technically feasible. Thus it provides an easy access to
the users. The database’s purpose is to create, establish and
maintain a workflow among various entities in order to facilitate all
concerned users in their various capacities or roles. Permission to
the users would be granted based on the roles specified. Therefore,
it provides the technical guarantee of accuracy, reliability and
security. The work for the project is done with the current
equipment and existing software technology. Necessary bandwidth
exists for providing a fast feedback to the users irrespective of the
number of users using the system.
19 | P a g e
The well-planned design would ensure the optimal utilization of the
computer resources and would help in the improvement of
performance status.
CHAPTER-4
SOFTWARE AND HARWARE REQUIREMENT
SPECIFICATIONS
4.1 INTRODUCTION
4.1.1 Purpose: The main purpose for preparing this document is
to give a general insight into the analysis and requirements of the
existing system or situation and for determining the operating
characteristics of the system.
4.1.2 Scope: This Document plays a vital role in the development
life cycle (SDLC) and it describes the complete requirement of the
system. It is meant for use by the developers and will be the basic
during testing phase. Any changes made to the requirements in the
future will have to go through formal change approval process.
20 | P a g e
The developer is responsible for:
Developing the system, which meets the SRS and solving all the
requirements of the system?
Demonstrating the system and installing the system at client's
location after the acceptance testing is successful.
Submitting the required user manual describing the system
interfaces to work on it and also the documents of the system.
Conducting any user training that might be needed for using the
system.
Maintaining the system for a period of one year after installation.
21 | P a g e
Keyboard :- 104 keys
Mouse :- Any pointing device
CHAPTER-5
SELECTED SOFTWARE
5.1 SELECTED SOFTWARE
WINDOWS OS 10 HOME
Microsoft Windows 10 for desktop, the successor to Windows 8.1,
comes in two versions: Windows 10 Pro and Windows 10 Home. This is
a stark contrast to earlier versions of Windows, which came in as many
as seven editions. Of the two editions, Windows 10 Pro, as you may
have guessed, has more features. Unlike Windows 7 and 8.1, in which
the basic variant was markedly crippled with fewer features than its
professional counterpart, Windows 10 Home packs in a large set of
new features that should suffice most users' needs. This begs the
question, which among Windows 10 Pro and Windows 10 Home is the
right version for you.
What do you get with Windows 10 Home
Windows 10 Home is the basic variant of Windows 10. It comes with a
number of new features including the revamped Start Menu. The
22 | P a g e
company decided to chop it off from Windows 8 three years ago, but
on popular demand, this feature is making a return to the desktop
operating system. You also get a full-fledged version of Cortana, the
digital voice assistant formerly exclusively available on Windows
Phone. Other than that, the Home edition also gets you features like
Battery Saver, TPM support, and company's new biometrics security
feature called Windows Hello.
Battery Saver, for those unfamiliar, is a feature that makes your
system more power efficient. It does so by limiting the background
activity on the device. A TPM is a microchip that offers additional
security-related functions. Many motherboard manufacturers install
TPM chip on their device. Microsoft assures that if your motherboard
has that chip, Windows 10 Home will provide support for it.
Home users will also be able to utilise the all-new Virtual Desktops
option and Snap assist feature with up to 4 apps on one screen.
Furthermore, they can also give a whirl to Continuum, a flagship
feature of Windows 10 that lets you quickly switch from desktop mode
to tablet mode. You are also bestowed with Microsoft Edge, the brand
new browser in town.
The Home edition also supports Windows Update - eligible to snag
automatic updates from Microsoft - and also provides security
measures such as Microsoft Passport. The aforementioned features
should fit an average Joe's bill as the company is providing all the
essential features in the basic variant.
However, if you crave for more sophisticated protection, or if your
work requires features such as support for side-loading of business
apps, the Home edition could leave a lot to be desired, and you are
better off with the Pro edition.
What do you get with Windows 10 Pro
The Pro edition of Windows 10, in addition to all of Home edition's
features, offers sophisticated connectivity and privacy tools such as
Domain Join, Group Policy Management, Bitlocker, Enterprise Mode
Internet Explorer (EMIE), Assigned Access 8.1, Remote Desktop, Client
Hyper-V, and Direct Access.
Assigned Access 8.1, for instance, allows you to lock user accounts
and prevent them from accessing specific apps. BitLocker, on the other
hand, is one of the most powerful disk-encryption tools on Windows. It
lets you encrypt your external USB-drives. You also get tools that
facilitate seamless connectivity while joining Azure Active Directory,
and a Business Store for Windows 10. So should you get the Pro
edition instead?
23 | P a g e
It all comes down to this: do you need features such as Client Hyper-
V, which is a built-in virtualisation solution in Windows. Does your
work require you to connect to a Windows domain? If yes, you should
purchase the Pro edition. Else, the Home edition is what you need.
Beyond Home and Pro
While Windows 10 Home and Pro are direct paths for retail users,
there are other variants of Windows 10 as well like Windows 10
Enterprise and Windows 10 Student. The Enterprise edition, as you
may expect, is meant to meet the demands of medium and large sized
organisations. It comes with even more sophisticated features such as
Device Guard, which gives a company the ability to lock down devices.
Unlike the other two Windows 10 Editions, however, the Enterprise
variant won't be available for sale in retail stores. Instead, it will be
sold through volume licensing.
The Windows 10 Education edition is designed for schools - students,
teachers, staff, and administrators. The edition comes with most of
Enterprise edition's feature. It too won't be available on sale at retail
stores, though, and will be seeded out through academic volume
licensing.
Speaking of other Windows 10 editions, we also have Windows 10
Mobile, and Windows 10 Mobile Enterprise. As their names suggest,
personal voice assistanth are designed to empower smartphones and
not the desktop platform. Microsoft is also releasing Windows 10 Core,
an operating system for Internet of Things devices.
It is used for:
web development (server-side),
software development,
mathematics,
system scripting.
24 | P a g e
Python can connect to database systems. It can also read and modify
files.
Python can be used to handle big data and perform complex
mathematics.
Python can be used for rapid prototyping, or for production-ready
software development.
Why Python?
Python works on different platforms (Windows, Mac, Linux, Raspberry
Pi, etc).
Python has a simple syntax similar to the English language.
Python has syntax that allows developers to write programs with fewer
lines than some other programming languages.
Python runs on an interpreter system, meaning that code can be
executed as soon as it is written. This means that prototyping can be
very quick.
Python can be treated in a procedural way, an object-orientated way
or a functional way.
Good to know
The most recent major version of Python is Python 3, which we shall
be using in this tutorial. However, Python 2, although not being
updated with anything other than security updates, is still quite
popular.
In this tutorial Python will be written in a text editor. It is possible to
write Python in an Integrated Development Environment, such as
Thonny, Pycharm, Netbeans or Eclipse which are particularly useful
when managing larger collections of Python files.
25 | P a g e
object-oriented approach aim to help programmers write clear, logical
code for small and large-scale projects.
The Python interpreter is easily extended with new functions and data
types implemented in C or C++ (or other languages callable from C).
Python is also suitable as an extension language for customizable
applications.
26 | P a g e
This tutorial introduces the reader informally to the basic concepts and
features of the Python language and system. It helps to have a Python
interpreter handy for hands-on experience, but all examples are self-
contained, so the tutorial can be read off-line as well.
History
Guido van Rossum at OSCON 2006.
Main article: History of Python
Python was conceived in the late 1980s by Guido van Rossum at
Centrum Wiskunde & Informatica (CWI) in the Netherlands as a
successor to the ABC language (itself inspired by SETL), capable of
exception handling and interfacing with the Amoeba operating system.
Its implementation began in December 1989. Van Rossum continued
as Python's lead developer until July 12, 2018, when he announced his
"permanent vacation" from his responsibilities as Python's Benevolent
Dictator For Life, a title the Python community bestowed upon him to
reflect his long-term commitment as the project's chief decision-
maker.[36] In January, 2019, active Python core developers elected
Brett Cannon, Nick Coghlan, Barry Warsaw, Carol Willing and Van
Rossum to a five-member "Steering Council" to lead the project.
Python 2.0 was released on 16 October 2000 with many major new
features, including a cycle-detecting garbage collector and support for
Unicode.
27 | P a g e
its major features were backported to Python 2.6.x[40] and 2.7.x
version series. Releases of Python 3 include the 2to3 utility, which
automates (at least partially) the translation of Python 2 code to
Python 3.
Python 2.7's end-of-life date was initially set at 2015 then postponed
to 2020 out of concern that a large body of existing code could not
easily be forward-ported to Python 3. In January 2017, Google
announced work on a Python 2.7 to Go transcompiler to improve
performance under concurrent workloads.
28 | P a g e
with a large standard library and easily extensible interpreter stemmed
from his frustrations with ABC, which espoused the opposite approach.
29 | P a g e
PyCharm is a dedicated Python and Django IDE providing a wide range
of essential tools for Python developers, tightly integrated together to
create a convenient environment for productive Python development
and Web development.
PYCHARM FEATURES
30 | P a g e
Use the powerful debugger with a graphical UI for Python and
JavaScript. Create and run your tests with coding assistance and a
GUI-based test runner. Take full control of your code with Python
Profiler integration.
Database tools
Access Oracle, SQL Server, PostgreSQL, MySQL and other databases
right from the IDE. Rely on PyCharm’s help when editing SQL code,
running queries, browsing data, and altering schemas.
Web Development
In addition to Python, PyCharm provides first-class support for various
Python web development frameworks, specific template languages,
JavaScript, CoffeeScript, TypeScript, HTML/CSS, AngularJS, Node.js,
and more.
Scientific Tools
PyCharm integrates with IPython Notebook, has an interactive Python
console, and supports Anaconda as well as multiple scientific packages
including Matplotlib and NumPy.
31 | P a g e
Interactive Python console
You can run a REPL Python console in PyCharm which offers many
advantages over the standard one: on-the-fly syntax check with
inspections, braces and quotes matching, and of course code
completion.
Conda Integration
Keep your dependencies isolated by having separate Conda
environments per project, PyCharm makes it easy for you to create
and select the right environment
Debug Everywhere
Of course PyCharm can debug code that you’re running on your local
computer, whether it’s your system Python, a virtualenv, Anaconda, or
a Conda env. In PyCharm Professional Edition you can also debug code
you’re running inside a Docker container, within a VM, or on a remote
host through SSH.
32 | P a g e
from WebStorm. Personal voice assistanth in-browser JS and NodeJS
are supported by the JavaScript debugger.
This investigation can be in your test code or in the code being tested,
which is very helpful for Django integration tests (Django support is
available only in PyCharm Professional Edition). Use a breakpoint to
find out what is coming from a query in a test case:
Watches
33 | P a g e
Customize your variable view by adding watches. Whether they’re
simple or complex, you’ll be able to see exactly what you want to see.
Speed
Faster Than PDB
For Python 3.6 debugging, PyCharm’s debugger is the fastest
debugger on the market. Even faster than PDB. What this means is
that you can simply always run your code under the debugger while
developing, and easily add breakpoints when you need them. Just
make sure to click ‘install’ when PyCharm asks whether or not to
install the Cython speedups.
CHAPTER-6
BUILDING OF PERSONAL VOICE ASSISTANT
34 | P a g e
personal voice assistant, you don’t even need to know how to code.
There are apps available to help people create assistants that can
automate tasks or events.
Creating a voice activated personal voice assistant is much more
difficult. That’s where companies like Converse.AI. “We make it
easier for non-developers to build and automate the services that
they need. No coding experience is required,” Lucas says.
A text-based personal voice assistant automates tasks and interacts
with customers. It can also help answer questions for clients,
access databases, and help customers help themselves. For more
information about customer self-service portals, many of which use
personal voice assistants, read "Customer Service Portals: Help
Your Users Help Themselves."
If you choose to create a personal voice assistant, make sure it’s
representative of your brand. Also, make sure it works, since
technology will not do your business any good if it doesn’t help
customers. “The danger is that people will try it, it won’t work, and
they won’t go back,” Mutchler warns. She mentions Samsung’s
Bixby, which debuted on the Galaxy S8 phone but was not fully
functional when it came out. Many customers tried it a few times,
then asked Samsung to develop a way to disable it, which they did
in a software update.
Here are some other elements to consider when building a personal
voice assistant:
Remember the end user.
Choose useful features.
Give it personality.
Integrate it with various platforms.
Building a personal voice assistant takes time, so it’s better not to
rush it. Focus on doing a few things extraordinarily well instead of
trying to do many things (and, therefore, doing them
unsuccessfully). Also, remember to update the personal voice
assistant as necessary. It’s not a “build it and leave it” venture.
35 | P a g e
6.2 DEPENDENCIES AND REQUIREMENTS :
System requirements: Python 3.7, Pycharm IDE, WinOS (version 10)
import pyttsx3
import webbrowser
import smtplib
import random
import speech_recognition as sr
import wikipedia
import datetime
import wolframalpha
import os
import sys
36 | P a g e
For our voice-assistant to perform all the above-discussed
features, we have to code the logic of each of them in one
method.
So our first step is to create the method which will interpret
user voice response.
def myCommand():
r = sr.Recognizer()
with sr.Microphone() as source:
print("Listening...")
r.pause_threshold = 1
audio = r.listen(source)
try:
query = r.recognize_google(audio, language='en-in')
print('User: ' + query + '\n')
except sr.UnknownValueError:
speak('Sorry sir! I didn\'t get that! Try typing the command!')
query = str(input('Command: '))
return query
def speak(audio):
print('Computer: ' + audio)
engine.say(audio)
engine.runAndWait()
while True:
query = myCommand();
query = query.lower()
37 | P a g e
elif 'open google' in query:
speak('okay')
webbrowser.open('www.google.co.in')
if 'myself' in recipient:
try:
speak('What should I say? ')
content = myCommand()
except:
speak('Sorry Sir! I am unable to send your message at this
moment!')
38 | P a g e
speak('Hello Sir')
else:
query = query
speak('Searching...')
try:
try:
res = client.query(query)
results = next(res.results).text
speak('WOLFRAM-ALPHA says - ')
speak('Got it.')
speak(results)
except:
results = wikipedia.summary(query, sentences=2)
speak('Got it.')
speak('WIKIPEDIA says - ')
speak(results)
except:
webbrowser.open('www.google.com')
speak('Next Command! Sir!')
39 | P a g e
40 | P a g e
6.5 DATA FLOW DIAGRAM
41 | P a g e
CHAPTER-7
PROS AND CONS OF PERSONAL VOICE
ASSISTANT
7.1 PROS
42 | P a g e
7.2 CONS
Virtual assistants can save you valuable time and money, as well as
help keep your home secure, but it's important to use common sense
43 | P a g e
when it comes to cyber security, as you would with any other web-
connected device.
Personal Voice Personal Voice Assistant
Assistant Advantages Disadvantages
No Improvement with
Daily Application
Experience
No Breaks
1. Error Reduction:
Artificial intelligence helps us in reducing the error and the chance of
reaching accuracy with a greater degree of precision. It is applied in
various studies such as exploration of space.
Intelligent robots are fed with information and are sent to explore
space. Since they are machines with metal bodies, they are more
resistant and have a greater ability to endure the space and hostile
atmosphere.
They are created and acclimatized in such a way that they cannot be
modified or get disfigured or breakdown in a hostile environment.
2. Difficult Exploration:
Artificial intelligence and the science of robotics can be put to use in
mining and other fuel exploration processes. Not only that, these
complex machines can be used for exploring the ocean floor and hence
overcome the human limitations.
44 | P a g e
3. Daily Application:
Computed methods for automated reasoning, learning and perception
have become a common phenomenon in our everyday lives. We have
our lady Siri or Cortana to help us out.
We are also hitting the road for long drives and trips with the help of
GPS. The smartphone is an apt and everyday example of how we use
artificial intelligence. In utilities, we find that they can predict what we
are going to type and correct the human errors in spelling. That is
machine intelligence at work.
When we take a picture, the artificial intelligence algorithm identifies
and detects the person’s face and tags the individuals when we are
posting our photographs on social media sites.
Artificial Intelligence is widely employed by financial institutions and
banking institutions to organize and manage data. Detection of fraud
uses artificial intelligence in a smart card based system.
4. Digital Assistants:
Highly advanced organizations use ‘avatars’ which are replicas or
digital assistants who can actually interact with the users, thus saving
the need for human resources.
For artificial thinkers, emotions come in the way of rational thinking
and are not a distraction at all. The complete absence of the emotional
side, makes the robots think logically and take the right program
decisions.
Emotions are associated with moods that can cloud judgment and
affect human efficiency. This is completely ruled out for machine
intelligence.
5. Repetitive Jobs:
Repetitive jobs which are monotonous in nature can be carried out
with the help of machine intelligence. Machines think faster than
humans and can be put to multi-tasking. Machine intelligence can be
employed to carry out dangerous tasks. Their parameters, unlike
humans, can be adjusted. Their speed and time are calculation based
parameters only.
When humans play a computer game or run a computer-controlled
robot, we are actually interacting with artificial intelligence. In the
game we are playing, the computer is our opponent. The machine
intelligence plans the game movement in response to our movements.
We can consider gaming to be the most common use of the benefits of
artificial intelligence.
45 | P a g e
6. No Breaks:
Machines, unlike humans, do not require frequent breaks and
refreshments. They are programmed for long hours and can
continuously perform without getting bored or distracted or even tired.
7.4 DISADVANTAGES OF ARTIFICIAL INTELLIGENCE IN
PERSONAL VOICE ASSISTANT:
1. High Cost:
Creation of artificial intelligence requires huge costs as they are very
complex machines. Their repair and maintenance require huge costs.
They have software programs which need frequent up gradation to
cater to the needs of the changing environment and the need for the
machines to be smarter by the day.
In the case of severe breakdowns, the procedure to recover lost codes
and reinstating the system might require huge time and cost.
2. No Replicating Humans:
Intelligence is believed to be a gift of nature. An ethical argument
continues, whether human intelligence is to be replicated or not.
Machines do not have any emotions and moral values. They perform
what is programmed and cannot make the judgment of right or wrong.
Even cannot take decisions if they encounter a situation unfamiliar to
them. They either perform incorrectly or breakdown in such situations.
4. No Original Creativity:
Do you want creativity or imagination?
These are not the forte of artificial intelligence. While they can help
you design and create, they are no match to the power of thinking that
the human brain has or even the originality of a creative mind.
46 | P a g e
Human beings are highly sensitive and emotional intellectuals. They
see, hear, think and feel. Their thoughts are guided by the feelings
which completely lacks in machines. The inherent intuitive abilities of
the human brain cannot be replicated.
5. Unemployment:
Replacement of humans with machines can lead to large-scale
unemployment.
Unemployment is a socially undesirable phenomenon. People with
nothing to do can lead to the destructive use of their creative minds.
Humans can unnecessarily be highly dependent on the machines if the
use of artificial intelligence becomes rampant. They will lose their
creative power and will become lazy. Also, if humans start thinking in
a destructive way, they can create havoc with these machines.
Artificial intelligence in wrong hands is a serious threat to mankind in
general. It may lead to mass destruction. Also, there is a constant fear
of machines taking over or superseding the humans.
Based on the above discussion, the Association for the advancement of
artificial intelligence has two objectives – to develop and advance the
science of artificial intelligence and to promote and educate about the
responsible usage of artificial intelligence.
Identifying and studying the risk of artificial intelligence is a very
important task at hand. This can help in resolving the issues at hand.
Programming errors or cyber-attacks need more dedicated and careful
research. Technology companies and the technology industry as a
whole needs to pay more attention to the quality of the software.
Everything that has been created in this world and in our individual
societies is the continuous result of intelligence.
Artificial intelligence augments and empowers human intelligence. So
as long we are successful in keeping the technology beneficial, we will
be able to help this human civilization.
47 | P a g e
CHAPTER-8
CONCLUSION
Building an agent that can replace a human assistant has been a holy
grail for software industry, especially in the field of artificial
intelligence. Difficulties associated with capturing human intelligence in
models that can be used to drive the agent have been one of the
primary bottlenecks in building such agents. With the availability of
data in semantic form, where the data carries itself the meaning and
data sources are interlinked with each other, provides an opportunity
to first capture human knowledge in this form and then apply
reasoning engines that can interpret these models to make inferences
for simple tasks.
48 | P a g e
CHAPTER-9
FUTURE ENHANCEMENT
1. More Personalized Responses With Contextual
Understanding.
The last few years have been about what the user is saying, and
now it will be more about why and where they are saying it.
Contextual understanding is the next step for voice in order for it to
become an integral part of consumers’ lives.
2. Individualized Experiences
Voice assistants will also continue to offer more individualized
experiences as they get better at differentiating between voices.
It also includes features such as nicknames, work locations, payment
information, and linked accounts such as Google Play, Spotify, and
Netflix.
5. Voice Notifications
In terms of mobile app marketing, voice raises a new challenge-
user engagement and retention. Developers will need to find ways to
capture and maintain their user’s attention by giving them a push
notification to continue using the app.
49 | P a g e
CHAPTER-10
BIBLIOGRAPHY
1. Hoy, Matthew B. (2018). "Alexa, Siri, Cortana, and More: An
Introduction to Voice Assistants". Medical Reference Services
Quarterly. 37 (1): 81–
88. doi:10.1080/02763869.2018.1404391. PMID 29327988.
2. Daniel B. Kline (2017-01-30). "Alexa, How Big Is Amazon's
Echo?". The Motley Fool.
3. https://www.cnet.com/news/google-finding-its-voice
4. "Virtual digital assistants to overtake world population by 2021".
ovum.informa.com. Retrieved 2018-05-11.
5. Jump up to:a b c "Alexa and Siri Can Hear This Hidden
Command. You Can't". The New York Times. 2018-05-10. ISSN
0362-4331. Retrieved 2018-05-11.
6. "As voice assistants go mainstream, researchers warn of
vulnerabilities". CNET. 2018-05-10. Retrieved 2018-05-11.
7. "Virtual Assistant Industry Statistics « Global Market Insights,
Inc". Gminsights.wordpress.com. 2017-01-30.
8. "Amazon Lex, the technology behind Alexa, opens up to
developers". TechCrunch. 2017-04-20.
50 | P a g e