Docsity

Artificial Intellegent : Voice Assistant, Thesis of Computer Engineering and Programming

Toggle sidebar
bg1
Desktop AI Voice Assistant
P a g e | 1
List of Figures
Figure 2. 1 Time line chart ........................................................................................................ 11
Figure 2. 2 Use case diagram .................................................................................................... 17
Figure 2. 3 Data flow diagram level - 1 .................................................................................... 17
Figure 2. 4 Data flow diagram level - 2 ..................................................................................... 18
Figure 2. 5 Entity Relationship diagram .................................................................................... 18
Figure 2. 6 Component diagram ................................................................................................ 19
Figure 2. 7 Activity diagram...................................................................................................... 19
Figure 2. 8 Class diagram .......................................................................................................... 20
Figure 2. 9 Template ................................................................................................................. 23
Figure 3. 1 Accessing Wikipedia ............................................................................................... 25
Figure 3. 2 Weather information retrieval .................................................................................. 26
Figure 3. 3 Setting reminder ...................................................................................................... 27
Figure 3. 4 Sending emails through voice .................................................................................. 28
Figure 3. 5 Changing Wallpapers .............................................................................................. 29
Figure 3. 6 Retrieving latest news and opening apps through assistant ....................................... 30
Figure 3. 7 Tells the current time ............................................................................................... 31
Figure 3. 8 Finding meaning of words ....................................................................................... 32
List of Tables
Table 2. 1 Basic Comparison between developed and given assistants ......................................... 9
Table 2. 2 Login table for database............................................................................................ 21
Table 2. 3 User details table for database .................................................................................. 21
Table 2. 4 User actions table for database.................................................................................. 22
Table 3. 1 Testcases with brief summary ................................................................................... 34
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22

Partial preview of the text

Download Artificial Intellegent : Voice Assistant and more Thesis Computer Engineering and Programming in PDF only on Docsity!

List of Figures

  • Figure 2. 1 Time line chart
  • Figure 2. 2 Use case diagram
  • Figure 2. 3 Data flow diagram level -
  • Figure 2. 4 Data flow diagram level -
  • Figure 2. 5 Entity Relationship diagram
  • Figure 2. 6 Component diagram
  • Figure 2. 7 Activity diagram......................................................................................................
  • Figure 2. 8 Class diagram
  • Figure 2. 9 Template
  • Figure 3. 1 Accessing Wikipedia
  • Figure 3. 2 Weather information retrieval
  • Figure 3. 3 Setting reminder
  • Figure 3. 4 Sending emails through voice
  • Figure 3. 5 Changing Wallpapers
  • Figure 3. 6 Retrieving latest news and opening apps through assistant
  • Figure 3. 7 Tells the current time
  • Figure 3. 8 Finding meaning of words
  • Table 2. 1 Basic Comparison between developed and given assistants List of Tables
  • Table 2. 2 Login table for database............................................................................................
  • Table 2. 3 User details table for database
  • Table 2. 4 User actions table for database..................................................................................
  • Table 3. 1 Testcases with brief summary

Abstract

In the Modern Era of fast moving technology we can do things which we never thought we could do before but, to achieve and accomplish these thoughts there is a need for a platform which can automate all our tasks with ease and comfort. Thus we need to develop a Personal Assistant having brilliant powers of deduction and the ability to interact with the surroundings just by one of the materialistic form of human interaction i.e. HUMAN VOICE. The Hardware device captures the audio request through microphone and processes the request so that the device can respond to the individual using in-built speaker module. For Example, if you ask the device ’what’s the weather?’ then using its built-in skills, it looks up the weather and then returns the response to the user through connected speaker.

This Software aims at developing a desktop virtual assistant. The main purpose of the software is to perform the tasks of the user at certain commands, provided through speech. It will ease most of the work of the user as a complete task can be done on a single command. It draws its inspiration from Virtual assistants like Cortana for Windows and Siri for iOS. Users can interact with the assistant through voice commands. Currently, the project aims to provide the users with a Virtual Assistant that would not only aid in their daily routine tasks like searching the web, extracting weather data, vocabulary help and many others but also help in automation of various activities.

1.4 Project Modules

  1. Speech Recognition
  2. Login & Register
  3. Storage Module
  4. Accessing Information through webdriver
  5. Complete Voice Operated Queries
  6. Local File Access
  7. Data Access through API

1.5 Project Basic Requirements

Hardware Requirements  Desktop  Microphone  Speaker

 RAM : 512MB

Software Requirements:  Python 3.7

 Speech Recognition library : It allows Python to access audio from your system’s microphone, transcribe the audio, and save it.  gTTS : Google’s text-to-speech package, gTTS converts your audio questions to text. The response from the look-up function that you write for fetching answer to the question is converted to an audio phrase by gTTS. This package interfaces with Google Translate’s API.  OS : Windows 7 OR Above

2.2 Project Feasibility Study

Technical Feasibility: For voice assistant, user must have microphone to convey their message and a speaker to listen when system speaks. These are very cheap now adays and everyone generally possess them. Besides, system needs internet connection. While using JIA, make sure you have a steady internet connection. It is also not an issue in this era where almost every home or office has Wi-Fi. Operational feasibility: It is the ease and simplicity of operation of proposed system. System does not require any special skill set for users to operate it. In fact, it is designed to be used by almost everyone. Kids who still don’t know to write can readout problems for system and get answers. Economical feasibility: Here, we find the total cost and benefit of the proposed system over current system. For this project, the main cost is documentation cost. User also would have to pay for microphone and speakers. Again, they are cheap and available. As far as maintenance is concerned. Cultural feasibility: It deals with compatibility of the project with cultural environment. Virtual assistant is built in accordance with the general culture.

2.3 Project Timeline chart

Figure 2. 1 Time line chart

Chromedriver-binary-auto package can be used to automatically detect the latest chromedriver version required for the installed Chrome/Chromium browser. ChromeDriver is a separate executable that Selenium WebDriver uses to control Chrome. It is maintained by the Chromium team with help from WebDriver contributors. For Example If you want to know about any Narendra Modi according to Wikipedia, Then Our assistant will find the information on webdriver and tell you about it. **Functionalities :

  1. Queries from the web:** Making queries is an essential part of one’s life, and nothing changes even for a developer works on windows. We have addressed the essential part of a netizen’s life by enabling our voice assistant to search the web. Our assistant supports a Google search engines and displays the result by scraping the searched queries. 2) Dictionary meaning One of the usages of the web is to find word meaning and its usage in our day to day life. Instead of going through the bulky books, our users can simply search for it using the voice assistant and get the meaning within a fraction of seconds. 5) Complete Voice Operated Queries The task of sending emails and playing youtube videos require the user interaction physically, but the assistant is built to overcome the problem. Physical interaction require the user to touch or type something , the assistant instead, will perform the whole process through just voice command. It includes the sending emails, playing specific videos on youtube. **Functionalities :
  2. Accessing youtube videos** Videos have remained as a main source of entertainment, one of the most prioritized tasks of virtual assistants. They are equally important for

entertainment as well as educational purposes as most teaching and research activities in present times are done through Youtube. This helps in making the learning process more practical and out of the four walls of the classroom. 2) Sending Emails Integrating mailing features eases the job of mailing, which otherwise would have to be done by opening the concerned email address. With Our assistant, you do not need to go for another tab to do one of the major task of your day to day affairs. The user can send emails to the desired receiver. **Others : Tells you a jokes and some other entertainment tasks

  1. Local File Access** In this module our assistant interact with the file system. 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. **Functionalities :
  2. Launch any system application.** If you have said the word launch in your command then it will search for application name(if it is present in your system) in the user command. 2) Tells you the current time. Say “Can you tell me the current time?” or “what is the time now?” and it will tell you the current time of your timezone. 3) Set Reminders One of the main features of a voice assistant is to set a reminder for the user accordingly. The user can set reminders to be notified about a task

today”. If you have said the phrase news for today in your command then it will scrape data from Google News RSS() and read it for you. Other: Tells you Corona Information

2.5 Project SRS

2.5.1 Use Case Diagrams Figure 2. 2 Use case diagram 2.5.2 Data Flow Diagrams Figure 2. 3 Data flow diagram level - 1

Figure 2. 6 Component diagram 2.5.5 Activity diagram Figure 2. 7 Activity diagram 2.5.6 Class diagram

Figure 2. 8 Class diagram

2 Action_id Varchar(10) Primary key to store action id 3 Action_name Varchar(20) Not null Stores action name 4 Voice_txt Nvarchar(30) Not null To store password Table 2. 4 User actions table for database

2.7 Template Design

Figure 2. 9 Template