0% found this document useful (0 votes)
29 views5 pages

DT - Final

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

DT - Final

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

University Institute of Engineering

Department of Computer Science & Engineering

Final Worksheet for DT Lab

Branch: Computer Science & Engineering


Section/Group: 105/A Semester: 1
Subject Name: Disruptive Technology-1
Subject Code: 21ECP-102
Date of Performance: 20|12|2021

Group Number: 6

Student 1 Name: Mitushi Arora UID:21BCS5412

Student 2 Name: Harshjeet kumar UID:21BCS6719

Student 3 Name: Shambhavee Singh UID:21BCS5407

Student 4 Name: Harsh Dawani UID:21BCS4649

Student 5 Name: Mzwandile Moroka UID:21BCS4637


University Institute of Engineering
Department of Computer Science & Engineering

1. Project Title
Voice Assistant
Our project is based on virtual assistants which work on computers and
laptops.

2. Problem statement
Artificial Intelligence personal assistants have become plentiful over the last few years.
Applications such as Siri, Bixby, Ok Google, and Cortana make mobile device
users’ daily routines that much easier. You may be asking yourself how these
function. Well, the assistants receive external data (such as movement, voice,
light, GPS readings, visually defined markers, etc.) via the hardware’s sensors for
further processing - and take it from there to function accordingly. Not too long
ago, building an AI assistant was a small component of developers’ capacities;
however, nowadays, it is quite a realistic objective even for novice programmers.

To create a simple personal AI assistant, one simply


needs dedicated software and around an hour of working time. It would take
much more time, though, to create something more advanced and conceptually
innovative. Nonetheless, well-thought-out concepts
can result in a great base for a profitable startup. Let us consider the six most
renowned applications based on artificial intelligence concepts that can help
create your virtual AI assistant app.

3. Key Features/Benefits
1. Easy to use
2. Give Smart and perfect look to pc
3. IT works as an assistant for your pc which can run on your voice.
University Institute of Engineering
Department of Computer Science & Engineering

4. Software/Module used
1.PYTTSX3

2. SPEECH RECOGNITION

3. PYAUDIO

4. WEB BROWSER

5. Pycharm

4. Codes
import webbrowser
import speech_recognition as sr
import pyttsx3
import dateTime
import Wikipedia
import pyjokes

listener = sr.Recognizer()
engine = pyttsx3.init()
voices = engine.getProperty('voices')
engine.setProperty('voice', voices[1].id)

string = "lowercase"
print(string.lower())

def speak(text):
engine.say(text)
engine.runAndWait()
University Institute of Engineering
Department of Computer Science & Engineering

def take_command():
with sr.Microphone() as source:
print('listening...')
text = listener.listen(source)

try:
print('Searching...')
command = listener.recognize_google(text, language='en-in')
print(f"User said: {text}\n")

except:
return "None"
return command

def run_devil():
command = take_command()

print(command)

if 'hello' in command:
speak('hey bro,how are you)
elif 'time' in command:
time = datetime.datetime.now().strftime('%I:%M %p')
speak('Now time is' + time)
elif 'wikipedia' in command:
command = command.replace("wikipedia","")
found = wikipedia.summary(command)
speak('according to wikipedia')
print(found)
elif 'tell me joke' in command:
speak(pyjokes.get_joke())
elif 'devil i am getting bored' in command:
speak("i have one solution do you want to play some music")

elif 'I am fine' in command:


speak('tell me about yourself)
elif 'Youtube' in command:
webbrowser.open("https://www.youtube.com/")
elif 'Mail' in command:
webbrowser.open("https://mail.google.com/mail/u/0/?tab=om#inbox")
elif 'Netflix' in command:
University Institute of Engineering
Department of Computer Science & Engineering

webbrowser.open("https://www.netflix.com/browse")
elif 'who are you in command:
speak(('I am project, And my creator is Group 6'))

elif 'what you want in command:


speak('i didn’t want anything)
elif 'who do you like the most in command:
speak('yaa I am like my friends)

elif 'what is your code' in command:


speak('sorry i didn’t want to show my code')
else:
speak('sorry tell again please ')

while True:
run_devil()

5. References
 Online Websites
An online website like Github and StackOverflow helps in solving
errors in code and provides the best references for us.
 Python Books
Books are a major component in any project, so for this project, we
have taken references from these major books
 Learning python – 5th edition[Mark lutz]
 Learning with Python: How to Think Like a
Computer Scientist [Allen Downey]

You might also like