Sat - 10.Pdf - Smart Voice Assistant Using Python
Sat - 10.Pdf - Smart Voice Assistant Using Python
A Voice Assistant is one of the hot topics in the current world that are programs
that listens to human’s verbal command and respond to them which makes it a human-
computer/device interaction. In the current days, a voice assistant is everywhere which
is a lot useful in these busy days. Nowadays, almost everyone in the current world is
using voice assistant because it’s everywhere starting from Google smartphone
assistant which even 5 years old kids will know how to use because of the current world
pandemic which makes them use smartphones till Amazon's Alexa which will be very
useful to do works starting from entertaining the users till turning on and off the
household products (Internet of Things). One of the greatest features is that it will be
very useful to even physically challenged people, for example, people who aren't able to
walk use the Internet of Things (IoT) feature to operate the household products and
maintain them. So, we tend to develop a voice assistant which will be very useful to the
users same as the other voice assistants which are currently in the world.
v
TABLE OF CONTENTS
vi
3.7.2. SPEECH TO TEXT & TEXT TO SPEECH 17
CONVERSION
3.7.3. PROCESS & EXECUTES THE 17
REQUIRED COMMAND
3.8. SYSTEM DESIGN 18
3.8.1 USE CASE DIAGRAM 18
3.8.2 COMPONENT DIAGRAM 19
3.8.3 SEQUENCE DIAGRAM 19
3.9. FEASIBILITY STUDY 21
3.10. TYPES OF OPERATION 22
4 RESULTS AND DISCUSSION 25
4.1. WORKING 25
5 CONCLUSION 29
5.1. CONCLUSION 29
5.2. FUTURE WORK 29
REFERENCES 31
APPENDICES 32
A. SOURCE CODE 32
B. SCREENSHOTS 37
C. PLAGIARISM REPORT 39
D. JOURNAL PAPER 40
vii
LIST OF FIGURES
viii
LIST OF ABBREVIATIONS
ABBREVIATIONS EXPANSION
AI Artificial Intelligence
ix
CHAPTER 1
INTRODUCTION
The very first voice activated product was released in 1922 as Radio Rex. This toy was very
simple, wherein a toy dog would stay inside a dog house until the user exclaimed its name,
“Rex” at which point it would jump out of the house. This was all done by an electromagnet
tuned to the frequency similar to the vowel found in the word Rex, and predated modern
computers by over 20 years.
In the 21st century, human interaction is being replaced by automation very quickly. One of
the main reasons for this change is performance. There’s a drastic change in technology rather
than advancement. In today’s world, we train our machines to do their tasks by themselves or to
think like humans using technologies like Machine Learning, Neural Networks, etc. Now in the
current era, we can talk to our machines with the help of virtual assistants.
Virtual assistants are software programs that help you ease your day to day tasks, such as
showing weather reports, giving daily news, searching the internet etc. They can take
commands by voice. Voice-based intelligent assistants need an invoking word or wake word to
activate the listener, followed by the command. We have so many virtual assistants, such as
Apple’s Siri, Amazon’s Alexa and Microsoft’s Cortana and Amazon's Alexa and this has been
an inspiration for us to do this as a project. This system is designed to be used efficiently on
desktops. Voice assistants are programs on digital devices that listen and respond to verbal
commands. A user can say, “What's the weather?” and the voice assistant will answer with the
weather report for that day and location.
1
1.1 OVERVIEW
A disease is a condition that affects the individual functioning of body totally.
Diseases if neglected will lead to the death of an individual. Diseases can be
identified by the symptoms of the body of an individual. Health is the most important
in every human’s life. Weekly or monthly check up of one’s health is most important
for the prevention and also to stay healthy.
Healthcare is the most crucial parts of the human life. Nowadays, so many are
not willing to go to hospital, due to work overload and negligence of their health. The
doctors and nurses are putting up maximum efforts to save people’s lives without
even considering their own loves. There are also some villages which lack medical
facilities.
Accurate and on-time analysis of any health-related problem is important for the
prevention and treatment of the illness. The traditional way of diagnosis may not be
sufficient in the case of a serious ailment. In this situation, where everything has
turned virtual, the doctors and nurses are putting up maximum efforts to save
people’s lives even if they have to danger their own.
There are also some remote villages which lack medical facilities. The dataset
was processed in ML models Naive Bayes and Decision Tree. While processing the
data, symptoms are given as input and the disease was received as an output. This
project helps to get the idea about the disease of an individual based on the
symptoms he/she have, and get the treatment easily by contacting the concern
doctor.
2
1.2 DESIGN
a) The voice assistant takes an input word which is called as "signal word" to
be activated. so, it takes in the signal word and starts operating for the
user commands.
d) The text given by the user should contain one or two keywords that
determine what query is to be executed. If the keyword doesn’t match any
of the queries in the code then the assistant asks the user to speak again.
e) Finally, the output to the user's query will be given by converting speech
to text.
Usually, typing out and searching or doing day-to-day tasks becomes hectic. But our life
doesn’t need to be like that. One can ask for help to voice assistants. They let the users to
perform a task using a speech command, as well as retrieve information via voice
synthesis.
3
Following are the reasons to have a voice assistant.
Minimal Effort
It’s easier to say a few words than type them on a small smartphone screen.
Eyes Free
One can be as blind as a bat, but a voice assistant will always help you. Our ears are
enough. One can also ask the bot about something while cooking at the same time.
Fast response
Imagine how much time you have to spend to find some information on a website? Or
how many clicks do you need to make before you find the thing you need in a mobile
application? Voice assistants don’t generate such difficulties. One can ask a question
and you have the answer.
Voice search has been a hot topic of discussion. Voice visibility will undoubtedly be a
challenge. This is due to the lack of a visual interface for voice assistants. Users cannot
see or interact with a voice interface unless it is linked to the Alexa or Google Assistant
app. Search behavior patterns will change dramatically as a result.
4
CHAPTER 2
LITERATURE SURVEY
This field of virtual assistants having speech recognition has seen some major advancements
or innovations. This is mainly because of its demand in devices like smartwatches or fitness
bands, speakers, Bluetooth earphones, mobile phones, laptop or desktop, television, etc.
Almost all the digital devices which are coming nowadays are coming with voice assistants
which help to control the device with speech recognition only. A new set of techniques is being
developed constantly to improve the performance of voice automated search.
As the amount of data is increasing exponentially now known as Big Data the best way to
improve the results of virtual assistants is to incorporate our assistants with machine learning
and train our devices according to their uses. Other major techniques that are equally important
are Artificial Intelligence, Internet of Things, Big Data access and management, etc. With the
use of voice assistants, we can automate the task easily, just give the input to the machine in
the speech form and all the tasks will be done by it from converting your speech into text form to
taking out keywords from that text and execute the query to give results to the user.
Machine Learning is just a subset of Artificial Intelligence. This has been one of the most helpful
advancements in technology. Before AI we were the ones who were upgrading technology to do
a task but now the machine is itself able to counter new tasks and solve it without need to
involve the humans to evolve it.
This has been helpful in day-to-day lifestyle. From mobile phones to personal desktops to
mechanical industries these assistants are in very much demand for automating tasks and
increasing efficiency.
5
CHAPTER 3
METHODOLOGY
From the above literature survey, we have inferred that all the systemsexisting
predict only particular diseases namely lung disease, breast cancer, heartdisease,
diabetes by implementing various algorithms on the particular datasets.
After implementing various algorithms, the most accurate one is selected and it
is used for prediction of disease. Sometimes, we may get confused of what
algorithm to use. Also, all the systems find only the particular disease and not the
disease based on the symptoms.