Skip to content

Latest commit

 

History

History
63 lines (54 loc) · 2.07 KB

README.md

File metadata and controls

63 lines (54 loc) · 2.07 KB

Virtual Assistant using Python

Introduction

This is a simple virtual assistant that can do variety of task like opening Google maps , telling weather and temperature information , sending email, create an instant meeting and much more just using voice command!


Modules Used:

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.

Installation

  • pip install pyttsx3
  • If you recieve errors such as No module named win32com.client,
  • No module named win32, or No module named win32api, you will need to additionally install pypiwin32.

Usage:

import pyttsx3
engine = pyttsx3.init()
engine.say("I will speak this text")
engine.runAndWait()

speech_recognition

Library for performing speech recognition, with support for several engines and APIs, online and offline.

Installation

  • pip install SpeechRecognition

Usage:

import speech_recognition as sr
engine = pyttsx3.init('sapi5')
voices = engine.getProperty('voices')
engine.setProperty('voice', voices[0].id)

selenium

The selenium package is used to automate web browser interaction from Python.

Installation

  • pip install selenium

Usage:

from selenium import webdriver from selenium.webdriver.common.keys import Keys

browser = webdriver.Firefox()

browser.get('http://www.yahoo.com') assert 'Yahoo' in browser.title

elem = browser.find_element_by_name('p') # Find the search box elem.send_keys('seleniumhq' + Keys.RETURN)

browser.quit()

tkinter

The tkinter package (“Tk interface”) is the standard Python interface to the Tk GUI toolkit.
Both Tk and tkinter are available on most Unix platforms, as well as on Windows systems.
(Tk itself is not part of Python; it is maintained at ActiveState.)

Installation

  • pip install tk

Usage:

from tkinter import *
root=Tk()
root.geometry("700x550")
root.resizable(0,0)
root.mainloop()

GUI TKINTER