Final Report
Final Report
On
Voice Assistant
In
Computer Science and Engineering
Submitted By
Abhinav Srivastav
Lt. Entry
Under the supervision of
Miss Dakshita Joshi
Affiliated to
DR. APJ ABDUL KALAM TECHNICAL UNIVERSITY
2021-22
Date:-
CERTIFICATE
This is to certify that Abhinav Srivastava (LT. ENTRY) has successfully
completed mini project entitled “Rubik’s Cube” and has submitted the report in
partial fulfilment for the award of the degree of B. Tech in Computer Science
and Engineering to the Department of CSE, Bansal Institute of Engineering and
Technology. It is further certified that Rishu Kumar has fulfilled all the
requirements laid down by Department of CSE, BIET, Lucknow for the
submission of project report.
Abstract………………………………………………... iv
List of figures…………………………………………. v
List of Tables………………………………………….. vi
1 Introduction…………………………………………… 1
1.1 Background………………………………………... 2
1.2 Objectives…………………………………………. 4
1.3 Purpose, Scope and Applicability…………………. 5
2 Survey of Technology………………………………… 6
3 Requirement and Analysis…………………………….. 8
3.1 Problem Definition………………………………... 8
3.2 Requirement Specification………………………... 9
3.3 Software and Hardware Requirement…………….. 11
4 System Design………………………………………… 12
4.1 ER Diagram……………………………………….. 12
4.2 Activity Diagram………………………………….. 13
4.3 Class Diagram…………………………………….. 14
4.4 Use Case Diagram………………………………… 15
4.5 Sequence Diagram………………………………… 16
4.6 Data Flow Diagram……………………………….. 18
Reference and Bibliography…………………………... 26
List Of Figures:
Figure1.5.1 Sequence
diagram for Query-
Response
The above diagram shows entities and their relationship for a virtual assistant
system. We have a user of a system who can have their keys and values. It can
be used to store any information about the user. Say, for key “name” value can
be “Jim”. For some keys user might like to keep secure. There he can enable
lock and set a password (voice clip).
Single user can ask multiple questions. Each question will be given ID to get
recognized along with the query and its corresponding answer. User can also be
having n number of tasks. These should have their own unique id and status i.e.
their current state. A task should also have a priority value and its category
whether it is a parent task or child task of an older task.
4.2 ACTIVITY DIAGRAM
Initially, the system is in idle mode. As it receives any wake up cal it begins
execution.
The received command is identified whether it is a questionnaire or a task to be
performed. Specific action is taken accordingly. After the Question is being
answered or the task is being performed, the system waits for another command.
This loop continues unless it receives quit command. At that moment, it goes
back to sleep.
4.3 CLASS DIAGRAM
The class user has 2 attributes command that it sends in audio and the response
it receives which is also audio. It performs function to listen the user command.
Interpret it and then reply or sends back response accordingly. Question class
has the command in string form as it is interpreted by interpret class. It sends it
to general or about or search function based on its identification.
The task class also has interpreted command in string format. It has various
functions like reminder, note, mimic, research and reader.
4.4 USE CASE DIAGRAM
In this project there is only one user. The user queries command to the system.
System then interprets it and fetches answer. The response is sent back to the
user.
4.5 SEQUENCE DIAGRAM
The above sequence diagram shows how an answer asked by the user is being
fetched from internet. The audio query is interpreted and sent to Web scraper.
The web scraper searches and finds the answer. It is then sent back to speaker,
where it speaks the answer to user.
4.5.2 Sequence diagram for Task Execution
The user sends command to virtual assistant in audio form. The command is
passed to the interpreter. It identifies what the user has asked and directs it to
task executer. If the task is missing some info, the virtual assistant asks user
back about it. The received information is sent back to task and it is
accomplished. After execution feedback is sent back to user.
4.6 DATA FLOW DIAGRAM