0% found this document useful (0 votes)
20 views4 pages

Voice - Assistant - Research Paper

This document describes a voice assistant created using Python. The assistant can perform tasks like opening apps, searching the web, retrieving information from Wikipedia, getting weather and news, and taking notes. It uses speech recognition to understand voice commands and text-to-speech to respond verbally. Various Python libraries are utilized to enable these functions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views4 pages

Voice - Assistant - Research Paper

This document describes a voice assistant created using Python. The assistant can perform tasks like opening apps, searching the web, retrieving information from Wikipedia, getting weather and news, and taking notes. It uses speech recognition to understand voice commands and text-to-speech to respond verbally. Various Python libraries are utilized to enable these functions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

Voice Assistant for User

XXX-X-XXXX-XXXX-X/XX/$XX.00 ©20XX IEEE


Introduction—  Schedule calendar

The voice assistant which we have discussed in This voice assistant is just a basic
this paper runs on the user’s command. It can implementation of Artificial Intelligence, we can
recognize the user’s voice along with this it also do a lot more with AI. We can integrate IoT with
has its voice and it interacts with the user both by this voice assistant, then it will become a smart
writing and speaking. It understands the user’s home assistant. Machine learning, another
command and takes action accordingly. application of AI, can be used for predictions and
Neural Networks which is can be used for
This voice assistant is developed using Python capturing human emotions, or Natural Language
programming language, version 3.10.2. Python is Processing (NLP), which can be used to
a high-level, general programming language understand different languages.
developed by Guido van Rossum. It is open-
source and available on all platforms for free.
Along with this, we have also used various
modules of pip. Pip is a package manager of Methodology—
python, which contains various modules or code
libraries that are developed by different
developers and available for direct
implementation in the project. Pip is automatically
installed along with the python for version 3.2 or
higher.
This voice assistant is helpful for users who
want to interact with the machine using their
voice. This assistant automates the daily tasks like
opening an application, searching something on
Google, searching Wikipedia for information,
searching weather reports, and reading a
newspaper from any app or web. This assistant
can do all this with a single voice command.
The typical features of the voice assistant
include- 1. Speech Recognition module: Speech
Recognition module is the module which converts
 Open application the speech or human voice into text. We have
used the Google cloud API to convert human
 Display date and time speech into text. Once, the human speech is
converted into text, now we can process this text
 Crack a joke
into a desired outcome.
 Search anything on Google
2. Python Backend: Once the speech is converted
 Calculate numbers into text, the Python Backend come into action.
The Python process the text, it matches the text
 Retrieve information from Wikipedia with the predefined instructions and decides
whether to use a system call, or an API, or use a
 Weather reports web scraping library, or an in-built module of
Python.
 News headlines

 Take notes 3. API: API stands for Application Programming


Interface used as the bridge between two
 Play music applications or this is the way for one program to
interact with another program. APIs call, basically possibility to use the operating system-
when a user application submitted a request, and dependent feature.
APIs call to retrieve that request and send it back
to the user. API calls are the medium by which 5. pyjokes: The Python pyjokes module
they interact. provides random jokes and is used to create
one-line jokes which makes our program
4. Text to speech module: Microsoft text to more Interesting. Added pyjokes to the
speech module is used for converting one speech program because it added jokes to our
into text provided by the user. Microsoft TTS program.
allows us to include natural human-sounding in
our program. TSS has a wide selection for us to
use. The voices or sounds differ by language and 6. operator: This python module is in-built in
gender. python and used to perform all mathematical
operations, bitwise, relational, and logical but
5. Content Extraction: Context Extraction is a only with two inputs. So, many functions can
technique for extracting structured data from be performed in program like add(a,b),
machine-readable documents that are unstructured mul(a,b), mod(x,y), pow(x,y) etc.
or semi-structured. Natural language processing
(NLP) is used to process human language 7. Wikipedia: Python provides a Wikipedia
documents in this activity. Content extraction module and we can access the Wikipedia
includes activities such as automated annotation module with the use of Data Scraping. In data
and content extraction from various photos, scraping, we retrieve the data and information
videos, and audio. from various sources in our program. But, the
Wikipedia module scrap only limited
information in our program.
Library Used—
8. requests: The requests module in Python
1. datetime: datetime module contains both sends all kinds of HTTP requests using
data and time. There can be many Python. And here, HTTP request works as
applications that require the processing of request exchanges between server and client.
date and time. The datetime module is Python requests are used to simplify the HTTP
very useful for handling different types of code and make it easier for human use.
date and time formats.
9.JSON: JSON is JavaScript Object Notation
2. webbrowser: A web browser is and Python has an In-built JSON package.
application software for accessing the JSON is the syntax for storing and exchanging
WWW. When a user requests a web page data. It is commonly used in web scraping
from a particular website, the web browser (used for transmitting data in web
fetches the required content from the web applications) and used in transferring and
server and displays the page on the user's storing data.
device.
10. Speech Recognition: Speech recognition
3. calendar: The Python calendar module is a machine's ability to recognize spoken
already contains all the useful functions words from users and convert them into
and classes to support different calendar written text. It allows the computer to
operations. This is a Python built-in recognize the human language. This process is
module. initialized by taking input as sound energy and
convert into electrical energy using a
4. os: The Python OS module provides microphone. Then, this electric energy, analog
functions for interacting with the software to digital, and then to text.
system. The OS is one of Python's in-built
utility modules. This module provides the
11.pyttsx3: pyttsx3 is the text-to-speech
conversion library used in Python. It is
available in pip package manager. It supports
two in-built voices first one of a female and
the second one of a male.

12. pywhatkit: pywhatkit is an in-built library


in Python, it is used to perform the Google
search of the input text.

13. beautifulsoap: Beautiful Soap is a web-


scraping library of Python, it is not an in-built
library, we have to download it from pip
package manager. Web scraping is the process
of extracting data from HTML and XML
codes. It is generally used to extract data from
websites.

Result and Output—


This section of the paper describes the working of
the voice assistant. This voice assistant first
converts the voice of the user into a text and then
takes the actions according to the pre-coded
instructions.
We have used various modules from pip package
manager to provide a voice to the assistant,
speech-to-text, and text-to-speech. Retrieving
information from Wikipedia. Along with this, we
have used a web scraping library of python called
Beautiful Soup to display the news headlines.
Used os library to get access to the operating
system applications like chrome, power point,
notepad.

You might also like