PWP Micro-Project Report
PWP Micro-Project Report
Mumbai
MICRO-PROJECT
ON
Submitted by:
Roll No: 60
1
CERTIFICATE
is the work of
Roll Enrolment
Student Name
No. No.
60 2000150069 Kshirsagar Pranav Prabhakar
HOD PRINCIPAL
2
INDEX
3
ACKNOWLEDGEMENT
I would also like to thank my parents who have helped with their
valuable suggestions and provided the required resources needed for the
micro-project.
4
ABSTRACT
As a student enrolled in the Government Polytechnic, Solapur, every
semester we require to do a micro-project on any one topic in the syllabus
of the respective subjects. Hence, I am created a project on Desktop
artificial intelligence as the micro-project for the subject PWP (22616).
5
Introduction
This project is based on Desktop Artificial intelligence which is
handle all operation on desktop. This project is developed with pyttsx3,
speech recognition, web browser package.
The potential applications of desktop AI are vast and varied, ranging from
image and speech recognition to natural language processing and
predictive analytics. Desktop AI can be used to automate routine tasks,
improve decision-making processes, and enhance customer experiences,
among other things.
Overall, desktop AI has the potential to revolutionize the way we live and
work, and is likely to play an increasingly important role in our daily lives
in the years to come.
6
▪ SIGNIFICANCE OF PROJECT –
The significance of a project on desktop artificial intelligence lies in its
potential to advance the development and implementation of AI
technologies that can improve our daily lives. As desktop AI enables
machines to learn from data and perform tasks that typically require
human-like intelligence, it can enhance productivity, improve decision-
making, and enable more personalized interactions with technology.
▪ SCOPE OF PROJECT –
The scope of a project on desktop artificial intelligence can include
research and development of algorithms and models, application
development for specific domains, optimization of existing models, and
consideration of ethical and social issues related to the use of AI.
▪ HARDWARE REQUIREMENTS –
1. Laptop or PC with 8GB RAM and 512GB SSD
▪ SOFTWARE REQUIREMENTS –
1. Operating System - Windows 11
2. Visual Studio Code IDE
3. Microsoft Office
7
OVERVIEW
Packages used in project:
Pyttsx3:
pyttsx3 is a text-to-speech conversion library in Python. Unlike alternative
libraries, it works offline and is compatible with both Python 2 and 3. An
application invokes the pyttsx3.init() factory function to get a reference to
a pyttsx3. Engine instance. it is a very easy to use tool which converts the
entered text into speech. The pyttsx3 module supports two voices first is
female and the second is male which is provided by “sapi5” for windows.
• Installation of package: pip install pyttsx3
Speech Recognition:
Speech Recognition is an important feature in several applications used
such as home automation, artificial intelligence, etc. This article aims to
provide an introduction to how to make use of the Speech Recognition
library of Python. This is useful as it can be used on microcontrollers such
as Raspberry Pi with the help of an external microphone.
• Installation of package: pip install speechRecognition
OS:
The OS module in Python provides functions for interacting with the
operating system. OS comes under Python’s standard utility modules. This
module provides a portable way of using operating system-dependent
functionality. The ‘os’ and ‘os.path’ modules include many functions to
interact with the file system.
• Installation of package: pip install os
8
Wikipedia:
The Internet is the single largest source of information, and therefore it
is important to know how to fetch data from various sources. And with
Wikipedia being one of the largest and most popular sources for
information on the Internet.
Wikipedia is a multilingual online encyclopedia created and maintained as
an open collaboration project by a community of volunteer editors using
a wiki-based editing system.
• Installation of package: pip install wikipedia
Webbrowser:
In Python, webbrowser module is a convenient web browser controller. It
provides a high-level interface that allows displaying Web-based
documents to users.
webbrowser can also be used as a CLI tool. It accepts a URL as the
argument with the following optional parameters: -n opens the URL in a
new browser window, if possible, and -t opens the URL in a new browser
tab.
• Installation of package: pip install webbrowser
Pyautogui:
Python pyautogui library is an automation library that allows mouse and
keyboard control. Or we can say that it facilitates us to automate the
movement of the mouse and keyboard to establish the interaction with
the other application using the Python script.
• Installation of package: pip install pyautogui
9
PROGRAM CODE
import time
import webbrowser
import pyttsx3;
import speech_recognition as sr
import datetime
import os
import random
from requests import get
import wikipedia
import webbrowser
import pywhatkit as kit
import pyjokes
import pyautogui
import instadownloader
engine = pyttsx3.init('sapi5')
voices = engine.getProperty('voices')
engine.setProperty('voices',voices[0].id)
def speak(audio):
engine.say(audio)
print(audio )
engine.runAndWait()
def takecommand():
r = sr.Recognizer()
with sr.Microphone() as source:
print("listening...")
r.pause_threshold = 1
audio = r.listen(source,timeout=5,phrase_time_limit=8)
try:
print("Recognizing...")
query = r.recognize_google(audio, language='en-us')
10
print(f"user said: {query}")
except Exception as e:
speak("Say that again please...")
return "none"
return query
def wish():
hour = int(datetime.datetime.now().hour)
def TaskExecution() :
wish()
while True:
#if 1:
query = takecommand().lower()
11
elif "close it" in query:
speak("Okay sir closing p drive")
os.system("taskkill /f /im P.exe")
12
elif "play song on youtube" in query:
speak("sir, which song i search on youtube")
cm1 = takecommand().lower()
kit.playonyt(f"{cm1}")
13
condition = takecommand.lower()
if "yes" in condition:
mod = instadownloader.Instaloader()
mod.download.profile(name, profile_pic_only=True)
speak("i am done sir, profile is saved in over main folder. now i am ready")
else:
pass
TaskExecution()
14
CONCLUSION
15
REFERENCES
1. www.google.com
2. www.youtube.com
3. www.w3schools.com
4. www.geeksforgeeks.com
5. www.tutorialspoint.com
6. www.python.org
16