AI Based Virtual Personal Assistant

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Volume 9, Issue 6, June – 2024 International Journal of Innovative Science and Research Technology

ISSN No:-2456-2165 https://doi.org/10.38124/ijisrt/IJISRT24JUN1884

AI Based Virtual Personal Assistant


Akhil Cherian Jacob1 Sharon Geo Reji2
Dept.of CSE Dept.of CSE
College of Engineering Kidangoor Kottayam, Kerala, India College of Engineering, Kidangoor Kottayam, Kerala, India

Harigovind Manoj3 Jyothis Joseph4


Dept.of CSE Dept.of CSE
College of Engineering, Kidangoor Kottayam, Kerala, India College of Engineering, Kidangoor Kottayam, Kerala, India

M Nikhil5
Dept.of CSE
College of Engineering, Kidangoor Kottayam, Kerala, India

Abstract:- In the contemporary era, Virtual Personal I. INTRODUCTION


Assistants (VPAs) have emerged as indispensable tools,
seamlessly integrat- ing into daily life to enhance In the whirlwind of ever-evolving technology, virtual
efficiency and convenience.Python, renowned for its as- sistants have become a game-changer in how we
versatility and user-friendly nature, with a plethora of interact with computers. These intelligent companions, often
libraries and frameworks, stands as an ideal choice for called AI assistants, have revolutionized human-computer
VPA development. This project embarks on the creation interaction by harnessing the power of natural language
of a personalized virtual assistant using Python, focusing processing. They understand and execute our commands
on fostering natural language interaction and tailoring seamlessly, making our lives easier. However, current AI
responses to individ- ual user needs.The undertaking assistants, while helpful, often have limitations.Here’s where
involves the implementation of advanced Natural AI based virtual personal assistant steps in, aiming to break
Language Processing (NLP) techniques, the in- tegration new ground. The proposed system is an innovative AI
of speech recognition capabilities, and the development assistant built with Python, known for its user-friendliness
of a sophisticated response generation module. The and versatility. Unlike some existing assistants that struggle
objective is to craft a fully functional virtual with speech recognition, it utilizes the SpeechRecognition
assistant.The Desktop Voice Assistant, an integral facet API for smooth voice-to-text conversion, creating a more
of this project, facilitates user- computer interaction natural and effortless way to communicate with your virtual
through voice commands, offering a hands- free and companion. But this AI based virtual per- sonal assistant’s
intuitive experience. This virtual assistant interprets user strengths go far beyond just understanding your voice.
input in the form of voice and executes actions, Where current AI assistants might excel at basic tasks, this
providing outputs in various formats such as actionable personal AI assistant aspires to be a true pro- ductivity
commands or dictated search results. In the powerhouse. Imagine composing emails, conducting
contemporary landscape, where time is of the essence, lightning-fast web searches, playing your favorite music, or
the virtual assistant proves to be an invaluable asset, even launching your preferred coding environment – all
streamlining human-computer interaction and with a simple voice command. The AI based virtual personal
contributing to an overall improvement in productivity. assistant goes beyond managing to-do lists; it streamlines
By leveraging the power of natural language your entire workflow, saving you precious time and mental
understanding and voice commands, this virtual assistant energy.It ushers in an era where human effort is augmented,
not only simplifies tasks but also elevates the user not replaced, and our time is optimized to focus on what
experience to new heights. As technology continues to truly matters.The VPA aims to be not just another voice-
advance, the integration of virtual assistants into daily activated tool, but a comprehensive AI partner that
life represents a pivotal step towards a more efficient empowers you to achieve more.
and connected future.
II. MOTIVATION
Keywords:- Artificial Intelligence, Natural Language Pro-
Cessing, Automatic Speech Recognition, Virtual Personal In today’s fast-paced world, where efficiency and
Assis- Tant. productiv- ity are paramount, the need for intelligent and
versatile techno- logical solutions has never been greater.
The advent of virtual assistants has undoubtedly transformed
how we interact with computers, offering unprecedented
convenience and streamlin- ing everyday tasks. However,

IJISRT24JUN1884 www.ijisrt.com 2460


Volume 9, Issue 6, June – 2024 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165 https://doi.org/10.38124/ijisrt/IJISRT24JUN1884

existing AI assistants often come with limitations that hinder IV. EXISTING SYSTEM
their full potential in enhancing human productivity. This
AI based virtual personal assistant an innovative AI Before the advent of AI-based voice assistants,
assistant developed with Python, poised to revolutionize the interacting with computer systems primarily relied on
landscape of virtual companionship. Unlike its predecessors, traditional input methods such as keyboards, mice, and
this VPA is not merely a voice-activated tool but a touchscreens. Users navigated through interfaces using
comprehensive AI partner designed to empower users across manual commands, typed queries, or utilized specific
a myriad of functionalities. From managing emails, to-do software applications for voice recognition. These
lists, and PDF documents, to seamlessly integrating with conventional systems lacked the natural language
communication platforms like WhatsApp and facilitating understanding and adaptive capabilities that AI- based
swift access to essential tools such as command prompt voice assistants bring to the table. Text-based inter-faces
and IDEs, the VPA embodies a new standard of required users to input explicit commands, limiting the
versatility and efficiency.Moreover, it’s ability to engage intuitive nature of human-computer interaction.
in respon- sive conversations, provide personalized Additionally, speech recognition technologies in the early
recommendations for movies and music, and execute stages were often less accurate and constrained by limited
mathematical calculations further underscores its potential vocabularies.In the absence of AI, tasks were performed
to enhance user experience and productivity. By harnessing through explicit, prede- fined commands,and interactions
the power of natural language processing and leveraging an were more rigid. The user experience was tethered to the
extensive array of functionalities, the VPA transcends the constraints of manual input methods, and system responses
limitations of traditional AI assistants, offering users a were typically formulaic. The introduction of AI voice
seamless and intuitive interface to optimize their workflow assistants marked a transformative shift, enabling more
and maximize their time. natural and context-aware interactions, bridging the gap
between users and machines. These advance- mentshave
III. LITERATURE SURVEY significantly enhanced the accessibility, efficiency, and user-
friendliness of technology,making computing more intuitive
The literature survey delves into the development and and inclusive.
impact of Virtual Personal AI Desktop Assistants (VPAs)
through various research papers and articles. It explores the V. PROPOSED SYSTEM
significance of voice assistants in revolutionizing human-
computer interaction and accessing information, The proposed system is a personalized virtual assistant
emphasizing their convenience, efficiency, and accessibility. built with Python and NLP techniques. It understands natural
The survey discusses the use of voice control and AI-based lan- guage commands through speech recognition, interprets
voice assistants in smartphones and laptops, as well as the them using NLP, and then executes tasks or provides
integration of natural language processing and deep learning information through its response generation and task
in Google Duplex. It also highlights the development of execution modules. It manages data to learn and
IoT-based voice assistants using Raspberry Pi and NLP personalize responses,and of- fers conveniences like
technology, as well as the integration of web automation automation, information retrieval, and streamlined
with smart virtual assistants. The survey provides a workflows.Essentially, it’s a one-stop shop for managing
comprehensive overview of the current landscape of VPAs, tasks and information using voice commands.
their functionalities, and their potential to enhance human
productivity and efficiency. VI. ADVANTAGES OF PROPOSED SYSTEM

Additionally, the survey covers the development of  Automation:


VPAs using Python, NLP, and AI, and their application in Manage notifications, set reminders, control smart
IoT, web automation, and smart virtual assistants. It also home devices, and maintain a to-do list, all through voice
discusses the use of voice recognition, language commands, freeing up your hands and focus.
apprehension, dialog manager, and natural language
generation in AI-based voice assistants, emphasizing their  Information Management:
ability to understand user queries and provide relevant Send emails and text mes- sages, receive news
information or perform requested actions. The literature summaries and personalized updates, and perform web
survey showcases the diverse range of func- tionalities and searches, making you a well-informed individual.
user-friendly interfaces of VPAs, highlighting their
transformative potential in simplifying complex tasks and  Efficiency:
fostering a more intuitive and personalized interaction with Handle all your daily tasks in one place, saving time
technology. Overall, the literature survey provides a and streamlining workflows. No more jug- gling between
comprehensive exploration of the development and impact different apps or remembering numerous passwords.
of VPAs, underscoring their potential to revolutionize
human- computer interaction and enhance productivity.  Convenience:
Make calls, receive personalized recom- mendations,
and enjoy the hands-free convenience of a virtual assistant
at your beck and call.

IJISRT24JUN1884 www.ijisrt.com 2461


Volume 9, Issue 6, June – 2024 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165 https://doi.org/10.38124/ijisrt/IJISRT24JUN1884

 Personalization: Behind the scenes, this user interface is built using the tried-
Tailored responses and recommendations based on your and-true web development trio: HTML for structure, CSS for
preferences and usage patterns, making the assistant feel like styling, and JavaScript for interactivity. This combination
a true helper and companion. ensures a familiar and user- friendly experience for
interacting with the VPA.
Overall, the proposed system promises to simplify your
life, boost your productivity, and keep you informed and B. Voice Command Interpretation Module
connected, all through the power of natural language This module bridges the gap between the spoken user
processing. input received from the User Interface Module and the
VPA’s internal understanding. The core functionality
VII. METHODOLOGY revolves around speech-to-text conversion, achieved by
leveraging Python’s Speech Recognition library. This
The goal of this project embarks on the creation of a library functions as a ro- bust speech recognition engine,
personalized virtual assistant using Python, focusing on fos- meticulously transforming the acoustic features of the user’s
tering natural language interaction and tailoring responses to voice into corresponding textual data. However, the process
individual user needs.The undertaking involves the imple- extends beyond simple transcrip- tion. The module delves
mentation of advanced Natural Language Processing (NLP) deeper to extract the underlying intent behind the user’s
techniques,the integration of speech recognition capabilities, utterance. This intent refers to the core objective or
and the development of a sophisticated response generation desired action communicated within the spoken query.
module. The given figure is a system architecture of the Techniques from Natural Language Processing (NLP) are
AI based Virtual Personal Assistant(VPA). It outlines the often employed at this stage. NLP algorithms analyze the
different components that work together to enable the VPA grammatical structure of the sentence, identify key terms,
to understand and respond to user queries. It is mainly and consider the context of the user’s interaction with the
divided into 5 modules - User Interface Module, Voice VPA. Through this combined approach of speech- to-text
Command Interpretation Module, Command Interpretation conversion and intent extraction, the Voice Command
Module, TaskExecution Module and Data Access Module. Interpretation Module establishes the foundation for the
VPA to interpret and respond to user requests in a
meaningful and targeted manner.

C. Command Interpretation Module


Within the virtual personal assistant (VPA) framework,
the command interpretation module plays a pivotal role in
bridging the gap between user queries and system actions.
This module functions as the cognitive core, responsible for
deciphering the user’s underlying intent behind their input. It
achieves this by catering to user interaction through two
distinct channels: (i) direct textual queries and (ii) processed
speech-to-text data. Regardless of the input modality, the
module meticulously analyzes the user’s intent and extracts
relevant information. This critical data is then encapsulated
within a predefined data structure, effectively acting as a
standardized message for the task execution module.

The implementation utilizes a rule-based approach,


Fig 1System Architecture
where a meticulously crafted set of patterns serves as a
matching mechanism. These patterns compare user input
A. User Interface Module
against pre- defined intents, enabling the module to
This module acts as the bridge between you and the
accurately classify the user’s desired action. This systematic
virtual personal assistant (VPA). It’s the first thing you
process ensures robust interpretation of user requests,
encounter when interacting with the VPA, and it allows you
paving the way for the Task Execution Module to
to provide instructions in two ways:
effectively execute tasks that align precisely with the user’s
goals.
Voice Commands: Speak your requests naturally, and
the VPA will use speech recognition technology (powered
D. Task Execution Module
by Python’s Speech Recognition library) to convert your
The Task Execution Module is a crucial component of
spoken words into text. This lets you interact with the VPA
in a hands- free and intuitive way. Text Commands: If you the Virtual Personal Assistant (VPA) responsible for
prefer typing, you can use a standard HTML input field translating user commands into actionable tasks. It leverages
various APIs and libraries to perform specific functions,
to directly enter your queries into the VPA interface. This
categorizes user commands into executable tasks through
approach is helpful for situations where speaking might be
Task Identification, interfaces with external services or
inconvenient or for users who prefer text-based interaction.
functionalities via API Integration, oversees the execution of

IJISRT24JUN1884 www.ijisrt.com 2462


Volume 9, Issue 6, June – 2024 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165 https://doi.org/10.38124/ijisrt/IJISRT24JUN1884

tasks through Task Management, and provides feedback or E. Data Access Module
results to the user through Task Reporting. This module is For the implementation of the Data Access Module,
pivotal in enabling the VPA to execute a diverse range of SQLite is employed as the database technology. To interact
actions based on user requests. with the SQLite database, a Python library like sqlite3 is
utilized for establishing connections and managing data
In its implementation, the Task Execution Module operations. Ad- ditionally, for seamless communication
receives a data structure from the command interpretation between the frontend and backend components, the Python
module to identify the task. For tasks such as extracting news eel module serves as a bridge, facilitating efficient data
and weather information, it utilizes the news API and open exchange and enhancing the overall functionality of the
weather map API, respectively. Additionally, for chatting system. This integration ensures a robust data access
with a chatbot and searching the web, it interfaces with mechanism, enabling effective retrieval, storage, and
the hugging face API and web API, respectively. Finally, management of information essential for deliver- ing
for reporting tasks in the form of a response to the user personalized user experiences within the Virtual Personal
interface module, it utilizes pyttsx3, a Python module for Assistant (VPA) ecosystem.
text-to-speech conversion. This comprehensive approach
ensures that the VPA can effectively execute a wide array of VIII. RESULTS
tasks, providing users with a seamless and efficient
experience. A. General Conversation

Fig 2 Chatting Screen

As shown in the Fig. 2 When we ask a query like ”What isa neural network ?” it gives the reply on the screen as chat.

B. Google Search Output

Fig 3 Output Screen of Google Search

IJISRT24JUN1884 www.ijisrt.com 2463


Volume 9, Issue 6, June – 2024 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165 https://doi.org/10.38124/ijisrt/IJISRT24JUN1884

As shown in below Fig. 3 When we ask the virtual personal AI assistant to search ”Elon Musk” on google it performs the
action by searching google.

C. Search Location

Fig 4 Output Screen of Location

When we ask the virtual personal assistant to give way to generate location-based information and services.
location it gives clear location of the place as shown in Fig 4
using Google Maps.The present location is found through D. Playing video/song on Youtube
fetchingof the IP address of the system.It offers a convenient

Fig 5 Output Screen of Playing Video on Youtube

As shown in Fig. 5 When we ask the VPA to play a seemingly specific scenario highlights a broader capability:
video about neural networks on Youtube it will perform the VPAs can access and play a vast library of YouTube videos
task by playing the efficient and easily understandable video based on user queries. By understanding natural language
of it.This figure showcases the versatility of virtual personal and leveraging YouTube’s search engine, VPAs streamline
assistants (VPAs) by depicting one responding to a request content discovery, allowing users to bypass traditional
to play a YouTube video on neural networks. This browsing methods and directly access their desired videos.

IJISRT24JUN1884 www.ijisrt.com 2464


Volume 9, Issue 6, June – 2024 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165 https://doi.org/10.38124/ijisrt/IJISRT24JUN1884

E. Current News multiple sources. This functionality demonstrates the ability


As shown below in Fig. 6 When we ask current of virtual assistants to access and process information from
news to the virtual personal assistant, it receives the request the real world through web searches and APIs.Fig. 7 depicts
and responds back by giving top news for that day VPA delivering news summaries in Malayalam, a regional
along with website name.The image depicts a user Indian language. By providing news summaries in their
interacting with a text-based interface to a virtual assistant. native language, VPAs can improve accessibility and
The assistant is able to understand and respond to the inclusivity for users who may not be comfortable with
user’s query for current news by summarizing stories from dominant languages like English.

Fig 6 Output Screen of Current News

Fig 7 Output Screen of News in Malayalam

IJISRT24JUN1884 www.ijisrt.com 2465


Volume 9, Issue 6, June – 2024 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165 https://doi.org/10.38124/ijisrt/IJISRT24JUN1884

IX. CONCLUSION [8]. Emad S. Othman .”Voice Controlled Personal


Assistant Using Raspberry Pi”. International Journal
The Virtual Personal Assistant (VPA) emerges as a of Scientific and Engineering Research Volume 8,
potent and adaptive tool, revolutionizing the landscape of Issue 11, November-2017
human- computer interaction. Its proficiency in Natural [9]. Aditya Sinha, Gargi Garg, GouravRajwani, Shimona
Language Processing (NLP) not only fosters a more Tayal, “Intelligent Personal Assistant”, International
intuitive exchange between users and machines but also Journal of Informative Futuristic Research, Volume.
lays the foundation for adaptive task execution. Through 4, Issue 8, April 2017.
sophisticated AI algo- rithms, the VPA dynamically tailors [10]. Ankit Pandey, Vaibhav Vashist, Prateek Tiwari,
its responses to user preferences, seamlessly transitioning Sunil Sikka, Priyanka Makkar”Smart Voice based
between basic commands and intricate operations. The Virtual Personal Assistants with Artificial
continuous evolution of this project, driven by Python’s Intelligence”. Artificial Computational Research
adaptability, signifies an ongoing commitment to staying at Society, Volume. 1, Issue 3, June 2020.
the forefront of AI advancements. As a result, the VPA [11]. V. Ke¨puska and G. Bohouta, ”Next-generation
holds transformative potential,promising to redefine our of virtual personal assistants (Microsoft Cortana,
interactions with computers and reshape the way we Apple Siri, Amazon Alexa and Google Home),” 2018
approach work, offering a glimpse into a future where IEEE 8th Annual Computing and Communication
technology seamlessly integrates into our daily lives, Work- shop and Conference (CCWC), 2018.
enhancing efficiency and user experience. [12]. Canbek, N.G. and Mutlu, M.E., 2016. On the track of
artificial intelli- gence: Learning with intelligent
REFERENCES personal assistants. Journal of Human Sciences,
13(1), pp.592-601
[1]. Dr.Kshama V.Kulhalli, Dr.Kotrappa Sirbi, [13]. Mohasi, L. and Mashao, D., 2006. ”Text-to-Speech
Mr.Abhijit J. Patankar, “Per- sonal Assistant with Technology in Human-Computer Interaction” In 5th
Voice Recognition Intelligence”, International Jour- Conference on Human Computer Interaction in
nal of Engineering Research and Technology. ISSN Southern Africa, South Africa (CHISA 2006, ACM
0974- 3154 Volume 10, Number. SIGHI) (pp. 79-84).
[2]. Deepak Shende, Ria Umahiya, Monika Raghorte, [14]. Hwang, I., Jung, J., Kim, J., Shin, Y. and Seol, J.S.,
Aishwarya Bhisikar, Anup Bhange, ”AI Based Voice 2017, March. ”Architecture for Automatic
Assistant Using Python”, Journal of Emerging Generation of User Interaction Guides with
Technologies and Innovative Research (JETIR), Intelligent Assistant”. In Advanced Information
February 2019, Volume 6. Networking and Applications Workshops (WAINA),
[3]. Subhash S,prajwal, Siddesh, Ullas, Santhosh B 2017 31st International Conference on (pp. 352-355).
“Artificial Intelligence-based voice Assistant” , IEEE.
IEEE,2020 Fourth World Conference on Smart [15]. Feng, H., Fawaz, K. and Shin, K.G., 2017, October.”
Trends in Systems, Security and Sustainability Continuous au- thentication for voice assistants”.23rd
(WorldS4). Annual International Conference on Mobile
[4]. Vadaboyina Appalaraju, V Rajesh, K Saikumar, P. Computing and Networking (pp. 343-355). ACM.
Sabitha” Design and Development of Intelligent
Voice Personal Assistant using Python” 2021 3rd
International Conference on Advances in Computing,
Communica- tion Control and Networking
(ICACCCN).
[5]. A. Sudhakar Reddy M, Vyshnavi, C. Raju Kumar,
and Saumya ,”VIR- TUAL ASSISTANT USING
ARTIFICIAL INTELLIGENCE AND PYTHON”
,Journal of Emerging Technologies and Innovative
Research (JETIR) March 2020, Volume 7, Issue 3 .
[6]. Rajakumar M. Gokul K, Suresh G,Darun Kumar
Boobalan, M archana,” IoT Based Voice Assistant
using Raspberry Pi and Natural Language
Processing”. 2022 International Conference on
Power, Energy, Control and Transmission Systems
(ICPECTS).
[7]. Harsh Mauny,Devarsh Panchal,Meet Bhavsar, ” A
prototype of smart virtual assistant integrated with
automation “,Proceedings of the Third International
Conference on Inventive Research in Computing
Applica- tion (ICIRCA-2021).

IJISRT24JUN1884 www.ijisrt.com 2466

You might also like