0% found this document useful (0 votes)
3 views16 pages

PWP Micro-Project Report

This document is a micro-project report on Desktop Artificial Intelligence submitted by Kshirsagar Pranav Prabhakar for the Diploma in Computer Technology at Government Polytechnic, Solapur. It outlines the project's significance, scope, and the programming code developed using Python, along with various libraries for speech recognition and automation. The conclusion emphasizes the potential of desktop AI to enhance productivity and improve interactions with technology while addressing ethical considerations.

Uploaded by

pranav.ias2026
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views16 pages

PWP Micro-Project Report

This document is a micro-project report on Desktop Artificial Intelligence submitted by Kshirsagar Pranav Prabhakar for the Diploma in Computer Technology at Government Polytechnic, Solapur. It outlines the project's significance, scope, and the programming code developed using Python, along with various libraries for speech recognition and automation. The conclusion emphasizes the potential of desktop AI to enhance productivity and improve interactions with technology while addressing ethical considerations.

Uploaded by

pranav.ias2026
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Maharashtra Board of Technical Education,

Mumbai

GOVERNMENT POLYTECHNIC, SOLAPUR

DIPLOMA IN COMPUTER TECHNOLOGY


Academic year 2022-23

PROGRAMMING WITH PYTHON (22616)

MICRO-PROJECT

ON

DESKTOP ARTIFICAL INTELLIGENCE

Submitted by:

Name: Kshirsagar Pranav Prabhakar

Roll No: 60

Enrollment No: 2000150069

1
CERTIFICATE

It is certified that this Micro-Project Report

DESKTOP ARTIFICAL INTELLIGENCE

is the work of

Roll Enrolment
Student Name
No. No.
60 2000150069 Kshirsagar Pranav Prabhakar

The student of Semester Sixth, Subject Name – Programming


With Python (PWP-22616) Diploma in Computer Technology, 2022-23.
This report is partial fulfillment for the award of the Micro-Project
Diploma in Computer Technology by MSBTE, Mumbai.

Guide Name – Smt. Kurapati I. S.

Date & Sign –

HOD PRINCIPAL

2
INDEX

Sr. No. Title Page No.


1. Acknowledgement 4
2. Abstract 5
3. Introduction 6
4. Scope and Significance 7
5. Overview 9
6. Program Code 10
7. Conclusion 13
8. References 14

3
ACKNOWLEDGEMENT

In the accomplishment of this micro-project successfully, many


people have best owned upon me their blessings and heart-privileged
support. Primarily, I would like to express a special thanks of gratitude to
the Principal Sir of the Government Polytechnic, Solapur for giving this
golden opportunity with all the required facilities for completing this micro-
project of our group.

I would like to extend my gratitude to our PWP subject teacher,


Smt. I. S. Kurapati mam, whose valuable guidance has been the ones that
helped us patch this project and make it full proof success. Their
suggestions and instructions has served as the major contributor towards
the completion of the micro-project.

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).

Desktop Artificial Intelligence (AI) refers to the development of


intelligent software programs that run on desktop computers. It enables
machines to learn from data, make decisions, and perform tasks that
typically require human-like intelligence. Desktop AI can be used for a
variety of applications, including image and speech recognition, natural
language processing, predictive analytics, and automated decision-
making.

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.

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.

Desktop Artificial Intelligence (AI) refers to the development of AI-


powered software programs that can be installed and run on desktop
computers. Unlike cloud-based AI services, desktop AI can operate offline,
providing faster response times and improved data privacy. Desktop AI
can also leverage the computing power of desktops, enabling more
complex computations and analysis to be performed locally.

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)

if hour>=0 and hour<=12:


speak("good morning mam")
elif hour>12 and hour<18:
speak("good afternoon mam")
else:
speak("good evening mam")
speak("I am Desktop artificial intelligence mam and my name is jarvis. please tell me how can i
help you")

def TaskExecution() :
wish()
while True:
#if 1:

query = takecommand().lower()

if "open notepad" in query:


npath = "C://Program Files//Notepad++//notepad++.exe"
os.startfile(npath)

elif "open drive" in query:


ppath = "P:\\"
os.startfile(ppath)

elif "open eclipse " in query:


epath = "C:\\Users\\kshir\\eclipse\\java-2022-062\\eclipse\\eclipse.exe"
os.startfile(epath)

11
elif "close it" in query:
speak("Okay sir closing p drive")
os.system("taskkill /f /im P.exe")

elif "open command prompt" in query:


os.system("start cmd")

elif "play music" in query:


music_dir = "D:\\Music"
songs = os.listdir(music_dir)
rd = random.choice(songs)
os.startfile(os.path.join(music_dir, rd))

elif "ip address" in query:


ip = get('https://api.ipify.org').text
speak(f"your ip address is {ip}")

elif "wikipedia" in query:


speak("Searching wikipedia...")
query = query.replace("wikipedia","")
results = wikipedia.summary(query, sentences=2)
speak("according to wikipedia")
speak(results)
print(results)

elif "open youtube" in query:


webbrowser.open("www.youtube.com")

elif "open Stackoverflow" in query:


webbrowser.open("www.Stackoverflow.com")

elif "open facebook" in query:


webbrowser.open("www.facebook.com")

elif "open google" in query:


speak("sir, what should i search on google")
cm = takecommand().lower()
webbrowser.open(f"{cm}")

12
elif "play song on youtube" in query:
speak("sir, which song i search on youtube")
cm1 = takecommand().lower()
kit.playonyt(f"{cm1}")

#Close any application


elif "close notepad" in query:
speak("Okay sir closing notepad")
os.system("taskill /f /im notepade++.exe")

#to find joke


elif "tell me a joke" in query:
joke = pyjokes.get_joke()
speak(joke)

elif "shut down" in query:


os.system("shutdown /s /t 5")

elif "Restart system" in query:


os.system("shutdown /r /t 5")

elif "sleep the system" in query:


os.system()

elif "switch the window" in query:


pyautogui.keyDown("alt")
pyautogui.press("tab")
time.sleep(1)
pyautogui.keyUp("alt")

elif "instagram profile" in query:


speak("Sir please enter the user name correctly")
name = input("Enter the username here:")
webbrowser.open(f"www.instagram.com/{name}")
speak(f"sir here is the profile of the user {name}")
time.sleep(5)
speak("sir would you like to download picture of this account.")

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

elif "take a screenshot" in query:


speak("sir, tell me the name for this screenshot file")
name = takecommand().lower()
speak("please sir hold the screen for few sconds, i am taking screenshot")
time.sleep(3)
img = pyautogui.screenshot()
img.save(f"{name}.png")
speak("i am done sir, the scrrenshot is saved in main folder. now i am ready")

TaskExecution()

14
CONCLUSION

In conclusion, a project on desktop artificial intelligence has


significant potential to improve the way we interact with technology and
solve real-world problems. It can enhance productivity, improve decision-
making, and enable more personalized interactions with technology in
various fields such as healthcare, finance, customer service, and
education.

The scope of a project on desktop AI can be broad and diverse, including


research and development of algorithms and models, application
development, optimization of existing models, and consideration of ethical
and social issues related to the use of AI.

However, it is important to approach the development and


implementation of AI in a responsible and transparent manner to ensure
that its benefits are maximized while minimizing any negative impacts.
Therefore, it is crucial to address ethical and social issues related to the
use of AI and to prioritize the development of AI technologies that are
both effective and ethical.

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

You might also like