Mini Project
Mini Project
• Billions of devices belonging to different manufacturers and domains are connected to the Internet of Things.
The amount of consumer equipment that a single person can manage, however, is limited.
• Additionally, personal information is spread across several sources, which prevents a seamless integration.
Intelligent personal assistants are a solution to facilitate the integration of online services and data sources.
• However, the management of IoT equipment is still challenging due to difficulty of interaction, security
information integration, among other problems.
INTRODUCTION
• These software agents, called intelligent personal assistants (IPA), are capable of gathering
information and triggering actions from online services
EXISTING SYSTEM
• The network size and complexity of the Swarm, however, poses usability
challenges, as human users may not be able to easily interact with the
plethora of available services.
1.Complicity is high
2.Not understanding commands
3.Software Integration problems
PROPOSED SYSTEM
• There are various personal assistant devices designed to assist individuals with visual impairments
through voice analysis.
• Examples include Amazon Echo and Google Home, which offer voice-controlled features and can
provide information audibly.
• Additionally, specialized devices like OrCam My Eye are designed to help with tasks such as reading text
aloud.
• Always check for the latest advancements and specific features to find the most suitable option.
COMMUNICATION AGENT
• The Communication Agent is responsible for the user interaction, using different
methods, such as natural language, gestures and touch screens. The current version
of the Swarm Assistant uses natural language processing (NLP) for voice and text.
• This agent provides a multiplatform mobile web interface, and a backend that maps
intents in natural language to actual commands in the Swarm network. Intents are
associated to phrases that have the same semantic meaning.
PERSONAL DATABASE
Speech-to-Text
• Far from a being a fad, the overwhelming success of speech-enabled
products like Amazon Alexa has proven that some degree of speech support
will be an essential aspect of household tech for the foreseeable future.
• If you think about it, the reasons why are pretty obvious. Incorporating
speech recognition into your Python application offers a level of interactivity
and accessibility that few technologies can match.
SERVICE MANAGER
• Step 1 : After finding the match for the given command, run the
respective command
• Step 2 : Send the resource allocation for particular application are
within the console only depending up on type application we
need to access.
DESIGN ARCHITECTURE
• Design Engineering deals with the various UML [Unified Modelling language] diagrams for the
implementation of project. Design is a meaningful engineering representation of a thing that is to be
built. Software design is a process through which the requirements are translated into representation
of the software.
SYSTEM ARCHITECTURE
UML DIAGRAMS
• 1.Use Case Diagram
• The main purpose of a use case diagram is to show what system functions are performed for
which actor. Roles of the actors in the system can be depicted. The above diagram consists of
user as actor. Each will play a certain role to achieve the concept.
• 2.Class Diagram
• In this class diagram represents how the classes with attributes and methods are linked together to
perform the verification with security. From the above diagram shown the various classes involved
in our project.
• 3.Sequence Diagram
• Activity diagrams are graphical representations of workflows of stepwise activities and actions with
support for choice, iteration and concurrency. In the Unified Modeling Language, activity diagrams can be
used to describe the business and operational step-by-step workflows of components in a system. An
activity diagram shows the overall flow of control
.
• 4.Activity Diagram
• Activity diagrams are graphical representations of workflows of stepwise activities and actions
with support for choice, iteration and concurrency. In the Unified Modeling Language, activity
diagrams can be used to describe the business and operational step-by-step workflows of
components in a system. An activity diagram shows the overall flow of control.
SAMPLE CODE
import pyttsx3
import webbrowser
import smtplib
import random
import speech_recognition as sr
import Wikipedia
import datetime
import wolframalpha
import os
import sys
import glob
engine = pyttsx3.init('sapi5’)
client = wolframalpha.Client('Your_App_ID’)
voices = engine.getProperty('voices’)
engine.setProperty('voice', voices[len(voices)-1].id)
def speak(audio):
engine.say(audio)
engine.runAndWait():
def greetMe():
currentH = int(datetime.datetime.now().hour)
speak('Good Morning!’)
speak('Good Afternoon!’)
:speak('Good Evening!')
greetMe()
def myCommand():
print("Listening...")
r.pause_threshold = 1
audio = r.listen(source)try:
except sr.UnknownValueError:
return query
if _name_ == '_main_’:
while True:
query = myCommand();
query = query.lower()
speak('okay’)
webbrowser.open('www.youtube.com’)
speak('okay’)
webbrowser.open('www.google.co.in’)
speak('okay’)
webbrowser.open('www.facebook.com’)
speak('okay’)
webbrowser.open('www.gmail.com’)
speak('okay’)
webbrowser.open('www.twitter.com’)
stMsgs = ['Just doing my thing!', 'I am fine!', 'Nice!', 'I am nice and full of energy’]
elif 'email' in query:
recipient = myCommand()
if 'me' in recipient:
try:
content = myCommand()
server.ehlo()
server.starttls()
server.login("Your_Username", 'Your_Password’)
server.close()
speak('Email sent!’)
except:
speak('okay’)
sys.exit()
speak('Hello Sir’)
elif 'bye' in query:
sys.exit()
music_folder = 'music’
music=glob.glob("music/*.mp3")
os.system('start '+random.choice(music))
sys.exit()
else:
query = query
speak('Searching...’)
try:
try:
res = client.query(query)
results = next(res.results).text
speak('WOLFRAM-ALPHA says - ‘)
speak('Got it.’)
speak(results)
except:
This paper proposed architecture for a personal assistant that fulfills the challenges of interacting
with the system to perform the operations that user wants to execute. It was built on top of the
Swarm platform, and added natural language processing and semantic integration of personal
data gathered from different sources.
REFERENCES
[1] L. C. P. Costa, J. Rabaey, A. Wolisz, M. Rosan, and M. K. Zuffo, “Swarm os control plane: an architecture
proposal for heterogeneous and organic networks,” IEEE Transactions on Consumer Electronics, vol. 61, no. 4, pp.
454–462, November 2015.
[2] L. C. De Biase, P. C. Calcina-Ccori, F. S. Silva, and M. K. Zuffo, “The semantic mediation for the swarm An
adaptable and organic solution for the internet of things,” in Consumer Electronics (ICCE), 2017 IEEE International
Conference on. IEEE, 2017, pp. 78–79.
[3] J. Santos, J. J. P. C. Rodrigues, J. Casal, K. Saleem, and V. Denisov, “Intelligent personal assistants based on
internet of things approaches,” IEEE Systems Journal, vol. 12, no. 2, pp. 1793–1802, June 2018.
[4] M. Funk, L.-L. Chen, S.-W. Yang, and Y.-K. Chen, “Addressing the need to capture scenarios, intentions and
preferences: Interactive intentional programming in the smart home,” International Journal of Design, vol. 12, no. 1,
pp. 53–66, 2018.