Virtual
Assistant
PRG1
Team Members
Darshan O
Amith Gowda E
Amrutha R
Aishwarya KB
What is Virtual Assistant ?
• Virtual assistant is a software agent
that can perform tasks or services
for an individual based on commands
or questions
• virtual assistants are able to interpret
human speech and respond via
synthesized voices
This Photo by Unknown author is licensed under CC BY-SA-NC.
• Users can ask their
assistants questions, control home
automation devices and media
playback via voice, and manage
other basic tasks such as email, to-
do lists, and calendars with verbal
commands
Virtual Assistant Has Two Tasks
1 LISTENING
• Listening to our command is the most basic functionality of any
virtual assistant, like: “Hey Alexa, play music,” “Hey Alexa, what’s
the time?”
• Alexa has to listen to our command, understand it, and then do
some action.
• 2. SPEAKING
• Once Alexa listens and understands your command, it performs
some action based on it. While doing that, it responds to you by
speaking otherwise it’ll be jobless
Implementation of those two features
To implement the above two features, we’ll need two Python
modules:
1. Speech Recognition
• This library performs speech recognition. It’ll help the assistant listen to
our commands, understand them, and act accordingly.
• a. The Recognizer class: This is the main class of this module which
has all the major functions to help us create a speech recognition
application.
•b. Listening to user speech: Once it has the microphone
access, the final step is to listen to your command. You can
do that with the help of the listen() method provided by the
Recognizer class
•c. Microphone access: As the assistant needs to listen to
your command, you’ll need to give it the power to access the
microphone of your machine. You can do that with the help of
the Microphone class
2. Python Text-To-Speech (pyttsx3)
• This is the Text-to-Speech (TTS) library for Python 2and Python
3and works without an internet connection or any delay.
• Since it’s a third-party module, first we have to install it:
• pip install pyttsx3
• Virtual assistant can finally speak with the help of this module.
• Secret: it is just converting text to speech here.
• Initialize the pyttsx3 module using the init() method and create its
object. We can then use its various functions to convert text to
speech:
Functions Virtual Assistance can do
• It is capable of voice interaction, music
playback, making to-do lists, setting alarms,
streaming podcasts, playing audiobooks, and
providing weather, traffic, sports, and other real-
time information, such as news. Virtual
Assistance can also control several smart
devices using itself as a home automation
system.
This Photo by Unknown author is licensed under CC BY-NC-ND.
Thank you
This Photo by Unknown author is licensed under CC BY.

Python project based on virtual assistantpptx

  • 1.
  • 2.
    Team Members Darshan O AmithGowda E Amrutha R Aishwarya KB
  • 3.
    What is VirtualAssistant ? • Virtual assistant is a software agent that can perform tasks or services for an individual based on commands or questions • virtual assistants are able to interpret human speech and respond via synthesized voices This Photo by Unknown author is licensed under CC BY-SA-NC.
  • 4.
    • Users canask their assistants questions, control home automation devices and media playback via voice, and manage other basic tasks such as email, to- do lists, and calendars with verbal commands
  • 5.
    Virtual Assistant HasTwo Tasks 1 LISTENING • Listening to our command is the most basic functionality of any virtual assistant, like: “Hey Alexa, play music,” “Hey Alexa, what’s the time?” • Alexa has to listen to our command, understand it, and then do some action. • 2. SPEAKING • Once Alexa listens and understands your command, it performs some action based on it. While doing that, it responds to you by speaking otherwise it’ll be jobless
  • 6.
    Implementation of thosetwo features To implement the above two features, we’ll need two Python modules: 1. Speech Recognition • This library performs speech recognition. It’ll help the assistant listen to our commands, understand them, and act accordingly. • a. The Recognizer class: This is the main class of this module which has all the major functions to help us create a speech recognition application.
  • 7.
    •b. Listening touser speech: Once it has the microphone access, the final step is to listen to your command. You can do that with the help of the listen() method provided by the Recognizer class •c. Microphone access: As the assistant needs to listen to your command, you’ll need to give it the power to access the microphone of your machine. You can do that with the help of the Microphone class
  • 8.
    2. Python Text-To-Speech(pyttsx3) • This is the Text-to-Speech (TTS) library for Python 2and Python 3and works without an internet connection or any delay. • Since it’s a third-party module, first we have to install it: • pip install pyttsx3 • Virtual assistant can finally speak with the help of this module. • Secret: it is just converting text to speech here. • Initialize the pyttsx3 module using the init() method and create its object. We can then use its various functions to convert text to speech:
  • 9.
    Functions Virtual Assistancecan do • It is capable of voice interaction, music playback, making to-do lists, setting alarms, streaming podcasts, playing audiobooks, and providing weather, traffic, sports, and other real- time information, such as news. Virtual Assistance can also control several smart devices using itself as a home automation system. This Photo by Unknown author is licensed under CC BY-NC-ND.
  • 10.
    Thank you This Photoby Unknown author is licensed under CC BY.