Skip to content

Commit

Permalink
Merge pull request #41 from bhaskarkumar1/newfeature
Browse files Browse the repository at this point in the history
Newfeature added and conflict resolved
  • Loading branch information
Harsha200105 authored Oct 8, 2021
2 parents ede2b53 + 426c70e commit 407d3cc
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Jarvis2_4windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,31 @@
print("Initializing Jarvis....")
MASTER = "Tony Stark"


engine = pyttsx3.init('sapi5') #
voices = engine.getProperty('voices')
engine.setProperty('voice', voices[0].id) #for male voices
# engine.setProperty('voice', voices[1].id) #for female voice

""" RATE"""
rate = engine.getProperty('rate') # getting details of current speaking rate
print ("current voice rate is: ",rate) #printing current voice rate
engine.setProperty('rate',170) # setting up new voice rate
engine.runAndWait()

"""VOLUME"""
volume = engine.getProperty('volume') #getting to know current volume level (min=0 and max=1)
print ("volume level is at : ",volume) #printing current volume level
engine.setProperty('volume',1.0) # setting up volume level between 0 and 1

popular_websites = {'google': 'https://www.google.com',
'youtube': 'https://www.youtube.com',
'wikipedia': 'https://www.wikipedia.org',
'amazon': 'https://www.amazon.com'}
search_engines = {'google': 'https://www.google.com',
'youtube': 'https://www.youtube.com',
'bing': 'https://www.bing.com'}

engine = pyttsx3.init("sapi5")
voices = engine.getProperty("voices")
engine.setProperty("voice", voices[0].id)
Expand All @@ -31,6 +56,7 @@
}



def open_url(url):
webbrowser.open(url)
chrome_path = r"open -a /Applications/Google\ Chrome.app %s"
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ A Virtual Desktop Assistant Written in Python.
<img src="https://github.com/Harsha200105/DesktopAssitant/blob/main/resource/JJ.jpeg"> <br>
The basic purpose of this is to make work easier as it re-directs you to various main sites and performs various important functions for your PC as well just install it for your system and run it in your code editor or IDE. I will be soon updating it as an application for MacOS, Linux and Windows. Until then you can follow the Contributing Guidelines and Contribute into this Desktop Assistant.<br>


Steps to run the Assistant on your pc------------------(use python 3.9)

Step1. Installing all the necessary python module as mentioned in the requirements.txt file one by one as from the terminal pip install <module_name==version>
or
Install all the required module all at once by using the command pip install -r requirements.txt

Step2. For windows user run Jarvis2_4windows.py script.

Wow All done! Now give the command to jarvis.

# Installing :

- Clone the repo to make it available on your local system by using ```git clone <FORKED_REPO_URL>```
Expand All @@ -13,6 +24,7 @@ The basic purpose of this is to make work easier as it re-directs you to various




# Contributing Guidelines :<br>
- We are Open for Pull Requests
- Please contribute and add value to the code
Expand Down
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
pygame==2.0.1
pyttsx3==2.90
SpeechRecognition==3.8.1
wikipedia==1.4.0
PyAudio==0.2.11
pygame==2.0.1
pyttsx3==2.90
SpeechRecognition==3.8.1
wikipedia==1.4.0

0 comments on commit 407d3cc

Please sign in to comment.