Skip to content
Mohammed Zameel ali edited this page May 17, 2023 · 4 revisions

Welcome to the F.R.I.D.A.Y wiki!

Introduction:

In this Wiki, we'll explore a Python program that allows you to create your very own virtual assistant, similar to Siri or Alexa. Don't worry if you're just starting out with programming – this program is designed for beginners and will provide an exciting introduction to the world of coding. Let's dive in and understand how this program works!

Getting Started:

To begin, you'll need to set up a Python development environment on your computer. Once that's done, you can create a new Python file and start coding. Copy and paste the provided code into your file and save it with a .py extension.

Understanding the Code:

The code consists of various functions and classes that enable different functionalities for your virtual assistant. Let's look at some key elements of the code:

Importing Modules:

The program starts by importing several modules and libraries. These pre-built tools add extra functionality to our program, such as text-to-speech, speech recognition, web browsing, email sending, and image processing. Think of them as ready-made building blocks that we can use to make our virtual assistant smarter and more capable.

Classes:

The code defines two classes: Person and Friday. The Person class allows us to store the user's name, while the Friday class represents our virtual assistant. It's named "Friday" as a reference to the AI assistant in the Iron Man movies.

Functions:

The code includes several functions that enable different interactions with our virtual assistant. These functions perform various tasks, such as:

  • Greeting the user based on the current time.
  • Telling jokes to make you laugh.
  • Sending emails to your contacts.
  • Providing daily quotes for inspiration.
  • Fetching and speaking the latest news headlines.
  • Answering questions using the Wolfram Alpha API.
  • Performing actions like taking a screenshot, opening the command prompt, or capturing video from the webcam.
  • Retrieving information about your computer, such as IP address, CPU usage, and battery status.
  • Searching Wikipedia for information and reading out a summary.
  • Searching YouTube for videos based on your query.
  • Fetching stock market information through Google search.
  • Reading the contents of a PDF document aloud. These functions make the virtual assistant a versatile tool that can assist with various tasks and provide useful information.

Conclusion:

By exploring this Python program, you've taken the first step towards building your own virtual assistant. You've learned how to create a program that can perform a wide range of tasks, from sending emails to searching the web and providing information. As you continue your coding journey, you can further enhance your virtual assistant by adding new features and improving its capabilities.

Remember, programming is all about creativity and problem-solving. Feel free to modify the code, experiment with new ideas, and make your virtual assistant truly unique. Have fun exploring the world of coding and building your own virtual assistant!