0% found this document useful (0 votes)
28 views34 pages

Final

This project report details the development of a virtual assistant for task management, highlighting its capabilities in voice recognition and natural language processing. The report outlines the existing systems, proposed improvements, and the technical specifications required for implementation. It emphasizes the potential benefits of virtual assistants in enhancing productivity and accessibility for users, particularly those with disabilities.

Uploaded by

akhilsingh070307
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views34 pages

Final

This project report details the development of a virtual assistant for task management, highlighting its capabilities in voice recognition and natural language processing. The report outlines the existing systems, proposed improvements, and the technical specifications required for implementation. It emphasizes the potential benefits of virtual assistants in enhancing productivity and accessibility for users, particularly those with disabilities.

Uploaded by

akhilsingh070307
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 34

A PROJECT REPORT

on
VIRTUAL ASSISTANCE AND TASK MANAGEMENT

Submitted by
AKHIL KUMAR 221107140001
ROUSHAN KUMAR BARI 221107140003
RAUNAK SINGH 221107140007
RAUSHAN KUMAR 221107140028
Karishma Kumari 221107140048

in partial fulfillment for the award of the


degree of

DIPLOMA

in

COMPUTER SCIENCE AND ENGINEERING

SCHOOL OF VOCATIONAL EDUCATION AND TRAINING


PARALAKHEMUNDI CAMPUS
CENTURION UNIVERSITY OF TECHNOLOGY AND MANAGEMENT
ODISHA
BONAFIDE CERTIFICATE

Certified that this project report virtual assistance and management

is the Bona-fide work of “……………………………………………………………………………”

who carried out the project work under my supervision. This is to further

certify to the best of my knowledge, that this project has not been carried

out earlier in this institute and the university.

SIGNATURE

(Mr. Harendra Kumar)


Teaching Assistance of Computer Science and Engineering

Certified that the above-mentioned project has been duly carried out as
per the norms of the college and statutes of the university.

SIGNATURE
(Dr. PRABHAT RANJAN SAHOO)
PRINCIPAL OF THE DEPARTMENT
Professor of Computer Science and Engg

DEPARTMENT SEAL
DECLARATION

I hereby declare that the project entitled “virtual assistance and task

management” submitted for the “Minor Project” of 6th semester Diploma

in Computer Science and Engineering is my original work and the project has

not formed the basis for the award of Diploma or any other similar titles in

University.

Name of the Student:

Signature of the Student:

Registration No:

Place:

Date:
ACKNOWLEDGEMENTS

We wish to express my profound and sincere gratitude to Mr. Harendra


kumar , Department of Computer Science and Engineering, SoVET,
Paralakhemundi Campus, who guided me into the intricacies of this project
nonchalantly with matchless magnanimity.
We thank Mr. Lakshmidhar Behera, Head of the Dept. of Department of
Computer Science and Engineering, SoVET, Paralahemundi Campus and
Teaching Assistance Prafulla Panda Dean, School of Vocational Education
and Training, Paralakhemundi Campus for extending their support during
Course of this investigation.

We would be failing in my duty if I don’t acknowledge the cooperation


rendered during various stages of image interpretation by Mr. Harendra Kumar.

We am highly grateful to Mr. Harendra Kumar evinced keen interest and


invaluable support in the progress and successful completion of my project
work.
We am indebted to Mr. Harendra Kumar their constant encouragement, co-
operation and help. Words of gratitude are not enough to describe the
accommodation and fortitude which they have shown throughout my endeavor.

Name of the Student:

Signature of the Student:

Registration No:

Place:

Date:
TABLE OF CONTENTS

CHAPTER NO. TITLE PAGE


NO.

CERTIFICATE i

DECLARATION ii
ACKNOWLEDGEMENT iii
LIST OF ACRONYMS iv
LIST OF TABLE v

1. CHAPTER – 1 INTRODUCTION
1.1 INTRODUCTION
VIRTUAL ASSISTANCE AND TASK MANAGEMENT

2. CHAPTER – 2
EXISTING SYSTEM

3. CHAPTER – 3
LITERAURE SURVERY

4. CHAPTER – 4
SYSTEM SPECIFICATION

5. CHAPTER – 5
SYSTEM DESIGN

6. CHAPTER - 6
SYSTEM IMPLEMENTATION

7. CHAPTER – 7
SYSTEM STUDY

8. CHAPTER – 8
SOCIAL FEASIBILITY

9. CHAPTER – 9
CONCLUSION AND FUTURE WORK
CHAPTER 1
INTRODUCTION

The development of technology allows introducing more advanced


solutions in everyday life. This makes work less exhausting for
employees, and also increases the work safety. As the technology is
developing day by day people are becoming more dependent on it, one
of the mostly used platform is computer. We all want to make the use of
these computers more comfortable, traditional way to give a command to
the computer is through keyboard but a more convenient way is to input
the command through voice. Giving input through voice is not only
beneficial for the normal people but also for those who are visually
impaired who are not able to give the input by using a keyboard. For this
purpose, there is a need of a virtual assistant which can not only take
command through voice but also execute the desired instructions and
give output either in the form of voice or any other means

A Virtual Assistant is the software that can perform task and provide
different
services to the individual as per the individual’s dictated commands.
This is done through a synchronous process involving recognition of
speech patterns and then, responding via synthetic speech. Through these
assistants a user can automate tasks ranging from but not limited to
mailing, tasks management and media playback. It understands natural
language voice commands and complete the tasks for the user. It is
typically a cloud-based program that requires internet connected devices
and/or applications to work. The technologies that power virtual
assistants are machine learning, natural language processing and speech
recognition platforms. It uses sophisticated algorithms to learn from data
input and become better at predicting the end user's needs.

MOTIVATION

The main purpose of this project is to build a program that will be able to
service to humans like a personal assistant. This is an interesting concept
and many people around the globe are working it. Today, time and
security are the two main things to which people are more sensitive, no
one has the time to spoil; nobody would like their security breach, and
this project is mainly for those kinds of people.

This system is designed to be used efficiently on desktops. Virtual


Assistants software improves user productivity by managing routine
tasks of the user and by providing information from an online source to
the user. This project was started on the premise that there is a sufficient
amount of openly available data and information on the web that can be
utilized to build a virtual assistant that has access to making intelligent
decisions for routine user activities.

SCOPE OF THE PROJECT

Virtual 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 virtual assistants is missing. Users
simply cannot see or touch a voice interface. Virtual Assistants are
software programs that help you ease your day-to-day tasks, such as
showing weather report, playing music etc. They can take commands via
text (online chat bots) or by voice.

APPLICABILLITY

The mass adoption of artificial intelligence in users’ everyday lives is


also fuelling 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.

VIRTUAL ASSISTANT
CHAPTER 2

EXISTING SYSTEM

This project describes one of the most efficient ways for voice recognition. It
overcomes many of the drawbacks in the existing solutions to make the Virtual
Assistant more efficient. It uses natural language processing to carry out the
specified tasks. It has various functionalities like network connection and
managing activities by just voice commands. It reduces the utilization of input
devices like keyboard.

This project describes the method to implement a virtual assistant for desktop
using the APIs. In this module, the voice commands are converted to text
through Google Speech API. Text input is just stored in the database for further
process. It is recognized and matched with the commands available in database.
Once the command is found, its respective task is executed as voice, text or
through user interface as output.

DISADVANTAGES

 They propose a new detection scheme that gets two similar results
which could cause confusions to the user on deciding the
actual/desired output.
 Though the efficiency is high of the proposed module, the time
consumption for each task to complete is higher and also the
complexity of the algorithms would make it very tough to tweak it if
needed in the future.

PROPOSED SYSTEM

1. QUERIES FROM THE WEB:


Making queries is an essential part of one’s life. We have addressed the
essential part of a netizen’s life by enabling our voice assistant to search the
web. Virtual Assistant supports a plethora of search engines like Google,
displaying the result by scraping the searched queries.

2. ACCESSING NEWS:
Being up-to-date in this modern world is very important. In that way, news
plays a big crucial role in keeping ourselves updated. News keeps you
informed and also helps in spreading knowledge.

3. TO SEARCH SOMETHING ON WIKIPEDIA:


Wikipedia's purpose is to benefit readers by acting as a widely accessible
and free encyclopedia; a comprehensive written compendium that contains
information on all branches of knowledge.

4. ACCESSING MUSIC PLAYLIST:


Music has remained a main source of entertainment, one of the most
prioritized tasks of virtual assistants. You can play any song of your choice.
However, you can also play a random song with the help of a random
module. Every time you command to play music, the Virtual Assistant will
play any random song from the song directory.

5. OPENING CODE EDITOR:


Virtual Assistant is capable of opening your code editor or IDE with a single
voice command

ADVANTAGES

◻ Platform independence
◻ Increased flexibility
◻ Saves time by automating repetitive tasks
◻ Accessibility options for mobility and the visually impaired
◻ Reducing our dependence on screens
◻ Adding personality to our daily lives
◻ More human touch
◻ Coordination of IoT devices
◻ Accessible and inclusive
◻ Aids hands-free operation
CHAPTER 3

LITERAURE SURVERY

1. VOICE ASSISTANT USING java script


CONCEPT: Natural Language Processing.

2. DESKTOP VOICE ASSISTANT


CONCEPT: Prerequisite APIs For Virtual Assistant

3. SMART java script CODING THROUGH VOICE RECOGNITION


CONCEPT: User experience field for better programming Integrated
Development Environment Development (IDE)

4. VPA: VIRTUAL PERSONAL ASSISTANT


CONCEPT: Implementation of Functionalities of VPA.

5. SURVEY ON VIRTUAL ASSISTANT


CONCEPT: Functionalities of Existing IVAs.

6. PERSONAL ASSISTANT WITH VOICE RECOGNITION


INTELLIGENCE
CONCEPT: Developing a Personal Assistant which has capability to work
with and without Internet Connectivity.
CHAPTER 4

SYSTEM SPECIFICATION

HARDWARE REQUIREMENTS

◻ Processor - Intel Pentium 4


◻ RAM - 512 MB
◻ Hardware capacity: 80GB
◻ Monitor type - 15-inch colour monitor
◻ CD-Drive type - 52xmax
◻ Mouse
◻ Microphone
◻ Personal Computer / Laptop

SOFTWARE REQUIREMENTS

◻ Operating System - Windows


◻ Simulation Tools - Visual Studio Code
◻ java script - Version 3.9.6
◻ Packages:
1. Pyttsx3
2. Speech Recognition
3. Wikipedia
4. Pyaudio
5. Webbrowser
CHAPTER 5

SYSTEM DESIGN

ARCHITECTURE DIAGRAM

An architectural diagram is a diagram of a system that is used to abstract the


overall outline of the software system and the relationships, constraints, and
boundaries between components. It is an important tool as it provides an
overall view of the physical deployment of the software system and its
evolution roadmap. An architecture description is a formal description and
representation of a system, organized in a way that supports reasoning about
the structures and behaviors of the system. After going through the above
process, we have successfully enabled the model to understand the features.

SYSTEM ARCHITECTURE DIAGRAM


UML DIAGRAM

The Unified Modeling Language is a general-purpose, developmental,


modeling language in the field of software engineering that is intended to
provide a standard way to visualize the design of a system.
A UML diagram is a diagram based on the UML (Unified Modeling Language)
with the purpose of visually representing a system along with its main actors,
roles, actions, artifacts or classes, in order to better understand, alter, maintain,
or document information about the system.

UML defines several models for representing systems:

1. The class model captures the static structure.


2. The state model expresses the dynamic behavior of objects.
3. The use case model describes the requirements of the user.
4. The interaction model represents the scenarios and message flows.
5. The implementation model shows the work unit.

ADVANTAGES

 Most used and flexible.


 Development time is reduced.
 Provides a standard for software development.
 It has large visual elements to construct and is easy to follow

USE CASE DIAGRAM

In UML, use-case diagrams model the behavior of a system and help to


capture the requirements of the system. Use-case diagrams describe the
high-level functions and scope of a system. These diagrams also identify the
interactions between the system and its actors. In this project, there is only
one user. The user queries a command to the system. The system then
interprets it and fetches an answer. The response is sent back to the user.
USE CASE DIAGRAM

CLASS DIAGRAM

Class diagram is a static diagram. It represents the static view of an


application. Class diagram is not only used for visualizing, describing, and
documenting different aspects of a system but also for constructing
executable code of the software application.

The class User has 2 attributes:


 command (sent in audio format)
 response (received in audio format)

It performs functions to:
1. Listen to the user command
2. Interpret the command
3. Reply or send back a response accordingly
The Question class contains a command in string format, as interpreted by
the Interpret class. It directs the command to either general, about, or search
functions based on its identification.
The Task class also holds an interpreted command in string format.

CLASS DIAGRAM

ACTIVITY DIAGRAM

An activity diagram is a behavioral diagram. It depicts the behavior of a


system. An activity diagram portrays the control flow from a start point to a
finish point showing the various decision paths that exist while the activity is
being executed.

Initially, the system is in idle mode. As it receives any wakeup call it begins
execution. The received command is identified whether it is a question or
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 a quit command.
ACTIVITY DIAGRAM

SEQUENCE DIAGRAM

A sequence diagram is a Unified Modeling Language (UML) diagram that


illustrates the sequence of messages between objects in an interaction. A
sequence diagram consists of a group of objects that are represented by
lifelines, and the messages that they exchange over time during the
interaction.

The below sequence diagram shows how an answer asked by the user is
being fetched from the 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 the speaker, where it speaks the answer to the user.
SEQUENCE DIAGRAM QUERY - RESPONSE

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.
SEQUENCE DIAGRAM FOR TASK EXECUTION
CHAPTER 6

SYSTEM IMPLEMENTATION

 Pyttsx3
 Sapi5
 Speech recognition
 Pyaudio
 Wikipedia
 Webbrowser

MODULE DESCRIPTION

Pyttsx3 (java script Text to Speech) A java script library that will help us to
convert text to speech. It is a cross-platform java script wrapper for text-to-
speech synthesis. It is a java script package supporting common text-to-speech
engines on MacOS X, Windows, and Linux. It works for both java script2.x and
3.x versions. Its main advantage is that it works offline.

Sapi5 (Speech Application Programming Interface) The Speech Application


Programming Interface or SAPI is an API developed by Microsoft to allow the
use of speech recognition and speech synthesis within Windows applications.
To date, a number of versions of the API have been released, which have
shipped either as part of a Speech SDK, or as part of the Windows OS itself.

Applications that use SAPI include Microsoft Office, Microsoft Agent, and
Microsoft Speech Server. Many versions (although not all) of the speech
recognition and synthesis engines are also freely redistributable. SAPI 5
however was a completely new interface, released in 2000. Since then, several
sub-versions of this API have been released.
Speech recognition

Speech recognition is the process of converting spoken words to text. java script
supports many speech recognition engines and APIs, including Google Speech
Engine, Google Cloud Speech API, Microsoft Bing Voice Recognition, and
IBM Speech to Text.

Speech Recognition is an important feature in several applications used such as


home automation, artificial intelligence, etc.
Recognizing speech needs audio input, and Speech Recognition makes it really
simple to retrieve this input. This is a library for performing speech recognition,
with support for several engines and APIs, online and offline.

PyAudio

 To access your microphone with Speech Recognizer, you’ll have to


install the PyAudio package.
 PyAudio provides java script bindings for Port Audio, the cross-platform
audio I/O library.
 With PyAudio, you can easily use java script to play and record audio on
a variety of platforms.

Wikipedia

 Wikipedia is a java script library that makes it easy to access and parse
data from Wikipedia.
 It gets article summaries, gets data like links and images from a page, and
more.
 This module provides developers code-level access to the entire
Wikipedia reference.
Webbrowser
 The webbrowser module provides a high-level interface to allow
displaying Web-based documents to users.
 Under most circumstances, simply calling the open() function from this
module will do the right thing.
CHAPTER 7

SYSTEM STUDY

FEASIBILITY STUDY

Feasibility study can help you determine whether or not you should proceed
with your project. It is essential to evaluate cost and benefit of the proposed
system.

Three key considerations involved in the feasibility analysis are:


 Economical feasibility
 Technical feasibility
 Social feasibility

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 microphones and speakers. Again, they are cheap and available.

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 what system speaks. These are very cheap now a days and
everyone generally possess them.

SOCIAL FEASIBILITY

The aspect of study is to check the level of acceptance of the system by the user.
This includes the process of training the user to use the system efficiently. The
user must not feel threatened by the system, instead must accept it as a necessity.

The level of acceptance by the users solely depends on the methods that are
employed to educate the user about the system and to make him familiar with it.
His level of confidence must be raised so that he is also able to make some
constructive criticism, which is welcomed, as he is the final user of the system.
CHAPTER 8

SYSTEM STUDY

The purpose of testing is to discover errors. Testing is the process of trying to


discover every conceivable fault or weakness in a work product. It provides a
way to check the functionality of components, sub-assemblies, assemblies
and/or a finished product. It is the process of exercising software with the intent
of ensuring that the software system meets its requirements and user
expectations and does not fail in an unacceptable manner. There are various
types of tests. Each test type addresses a specific testing requirement.

TYPES OF TESTING

UNIT TESTING

Unit testing involves the design of test cases that validate that the internal
program logic is functioning properly, and that program inputs produce valid
outputs. It is the testing of individual software units of the application. It is done
after the completion of an individual unit before integration. This is a structural
testing that relies on knowledge of its construction and is invasive. Unit tests
perform basic tests at the component level and test a specific business process,
application, and/or system configuration.

INTEGRATION TESTING

Integration tests are designed to test integrated software components to


determine if they actually run as one program. Testing is event-driven and is
more concerned with the basic outcome of screens or fields. Integration tests
demonstrate that although the components were individually satisfactory, as
shown by successfully unit testing, the combination of components is correct
and consistent. Integration testing is specifically aimed at exposing the
problems that arise from the combination of components.

INTEGRATION TESTING

Integration tests are designed to test integrated software components to


determine if they actually run as one program. Testing is event driven and is
more concerned with the basic outcome of screens or fields. Integration tests
demonstrate that although the components were individually adequate, as shown
by successful unit testing, the combination of components is correct and
consistent. Integration testing is specifically aimed at exposing the problems
that arise from the combination of components.

FUNCTIONAL TESTING

Functional tests provide systematic demonstrations that functions tested are


available as specified by the business and technical requirements, system
documentation, and user manuals. Functional testing is centered on the
following items:

SYSTEM TESTING

 Valid input: identified classes of valid input must be accepted.


 Invalid output: identified classes of invalid input must be accepted.
 Functions: Identified functions must be exercised.
 Output: identified classes of application outputs must be exercised.
System testing ensures that the entire integrated software system. It tests a
configuration to ensure known and predictable results. System testing is based
on the process descriptions, flows, emphasizing pre-driven process links and
integration points.

WHITE BOX TESTING

White Box Testing is a testing in which the software tester has knowledge of the
inner workings, structure, and language of the software, or at least its purpose. It
is used to test areas that cannot be reached from a black box level.

BLACK BOX TESTING

Black Box Testing is testing the software without any knowledge of the inner
workings, structure, or language of the module being tested. Black box tests, as
most other kinds of tests, must be written from a definitive source document,
such as specification or requirements document.

TEST RESULTS

All the test cases mentioned above have passed successfully. No defects
encountered.
CHAPTER 9

CONCLUSION AND FUTURE WORK

Through this virtual assistant, we have automated various services using a


single line command. It eases most of the tasks of the user like searching the
web, playing music and doing Wikipedia searches. 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 project is built using available open-source
software modules with visual studio code community backing which can
accommodate any updates in future. The modular nature of this project makes it
more flexible and easier to add additional features without disturbing current
system functionalities. It not only works on human commands but also give
responses to the user based on the query being asked or the words spoken by the
user such as opening tasks and operations. The application should also eliminate
any kind of unnecessary manual work required in the user life of performing
every task.

FUTURE WORK

The virtual assistants which are currently available are fast and responsive but
we still have to go a long way. The understanding and reliability of the current
systems need to be improved a lot. The assistants available nowadays are still
not reliable in critical scenarios. The future plans include integrating our virtual
assistant with mobile using React Native to provide a synchronised experience
between the two connected devices. Further, in the long run, our virtual
assistant is planned to feature auto deployment supporting elastic beanstalk,
backup files, and all operations which a general Server Administrator does. The
future of these assistants will have the virtual assistants incorporated with
Artificial Intelligence which includes Machine Learning, Neural Networks, etc.
and IoT.
SOURCE CODE

// Select elements
const btn = document.querySelector("#btn");
const voice = document.querySelector("#voice");
const output = document.getElementById('output'); // Select the output element
const startBtn = document.getElementById('start-btn');

// Define the speak function


function speak(text) {
if ('speechSynthesis' in window) {
const utterance = new SpeechSynthesisUtterance(text);
utterance.rate = 1;
utterance.pitch = 1;
utterance.volume = 1;
utterance.lang = "hi-IN"; // Hindi language
window.speechSynthesis.speak(utterance);
} else {
console.log("Speech synthesis not supported by this browser");
}
}

// Define the wishMe function


function wishMe() {
const now = new Date();
const hour = now.getHours();

if (hour >= 0 && hour < 12)


{ speak("Good morning! Akhil");
speak("How are you?");
} else if (hour >= 12 && hour < 16)
{ speak("Good afternoon, Akhil");
} else {
speak("Good evening, Akhil");
}
}

// Initialize speech recognition


const speechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition;
const recognition = new speechRecognition();
let transcript = '';

recognition.onresult = (event) => {


transcript = event.results[0][0].transcript;
takeCommand(transcript.toLowerCase());
}

// Add event listener to the button


btn.addEventListener("click", () => {
recognition.start();
btn.style.display = "none";
voice.style.display = "block";
});

// Define the takeCommand function


function takeCommand(message) {
btn.style.display = "flex";
voice.style.display = "none";

// Display the recognized message in the output div


output.textContent = `You said: ${message}`;

switch (true) {
case message.includes("hello") || message.includes("hi"):
speak("Hello Guys, how can I help you?");
break;
case message.includes("about centurion university"):
speak("Centurion University (CUTM) is a private university from Odisha, India. With
its main campus earlier at Parlakhemundi in Gajapati and another constituent campus located at Jatni,
on the fringes of Bhubaneswar, which is now as main campus and it was accorded the status of a
university in 2010.[2] The university has been accredited by NAAC with 'A+' Grade,[3] thereby becoming
the youngest private university to have earned the distinction.[4] In 2016, the Bhubaneswar campus of
the university was ranked 81 among the institutions offering engineering education in India by the
Ministry of Education, Government of India under the NIRF.[5]");
window.open("https://drive.google.com/file/d/1csIPu1SooKHnkAFtFghCwE4P2JOdhin3/view?us
p=sharing", "_blank");
break;
case message.includes("who are you"):
speak("I am Sophia, a virtual assistant developed by Akhil at Centurion University of
Technology and Management, Paralekhemundi.");
break;
case message.includes("open instagram"):
window.open("https://www.instagram.com/", "_blank");
break;
case message.includes("open facebook"):
window.open("https://www.facebook.com/", "_blank");
break;
case message.includes("open google"):
window.open("https://www.google.com/", "_blank");
break;
case message.includes("open calculator"):
speak("opening caculator")
window.open("calculator:", "_self");
break;
case message.includes("oepn notepad"):
window.open("Notepad:", "_self");
break;
case message.includes("diploma office information"):
speak("diploma office near field");
case message.includes("open chrome"):
window.open("https://www.google.com/chrome/", "_blank");
break;
case message.includes("open task Maneger "):
window.open("Task Manager:", "-self");
function openApp(appName) {
switch (appName.toLowerCase())
{ case "phone":
window.open("tel:", "_self");
break;
case "messages":
window.open("sms:", "_self");
break;
case "email":
window.open("mailto:", "_self");
break;
case "open camera":
window.open("camera:", "_self");
break;
default:
speak("Sorry, I cannot open that app.");
break;
}
}

// Inside takeCommand function


switch (true) {
// Existing cases...
case message.includes("open phone"):
openApp("phone");
break;
case message.includes("open messages"):
openApp("messages");
break;
case message.includes("open email"):
openApp("email");
break;
case message.includes("open camera"):
openApp("camera");
break;
// Existing default case...
}

// Add more cases as needed...


default:
let finalText = "dear Akhil I found on the internet regarding " + message.replace("sophia",
"");
speak(finalText);
window.open(`https://www.google.com/search?q=${message.replace("sophia", "")}`, "_blank");
break;
}

// Date and Time


if (message.includes("time")) {
let time = new Date().toLocaleString(undefined, { hour: "numeric", minute: "numeric" });
speak(time);
}
if (message.includes("date")) {
let date = new Date().toLocaleString(undefined, { date: "numeric", month: "short", year:
"numeric" });
speak(date);
}
}

// Call the wishMe function when the page loads


window.addEventListener("load", wishMe);
REFERENCE

Books & Research Papers


1. "Voice Computing with java script" – Leverage NLP and Speech
Recognition for virtual assistants.
2. "Speech and Language Processing" – Jurafsky & Martin; a deep dive into
NLP fundamentals.
3. IEEE & ACM Research Papers – Papers on AI-based virtual assistants
and task automation.
Technologies & Frameworks
 java script Libraries: SpeechRecognition, pyttsx3, Pyaudio, Wikipedia
API
 AI & NLP Models: OpenAI GPT, Google Dialogflow, IBM Watson
Assistant
 Task Management Tools: Google Tasks API, Todoist API, Microsoft To-

SI NO RUBLIC FULL MARK MARK REMARK


OBTAIDE
1 Understanding The 10
relevance , Scope and
dimension of the
Project
2 Methodology 10

3 Quality of Analysis and 10


Results
4 Interpretations and 10
Conclusions
5 Report 10
TOTAL

DATE: Signature of the Faculty


COURSE OUTCOME (COs) ATTAINMENT

➢ Expected Course Outcomes (COs):


(Refer to COs Statement in the Syllabus)

➢ Course Outcome Attained:


How would you rate your learning of the subject based on the specified COs?

1 2 3 4 5 6 7 8 9 10
LOW HIGH
➢ Learning Gap (if any):

➢ Books / Manuals Referred:

Date: Signature of the Student


➢ Suggestions / Recommendations:
(By the Course Faculty)

Date: Signature of the Faculty

You might also like