volume feature and speech rate with a feamle voice added
This commit is contained in:
parent
5e5b46c988
commit
d47e4adae2
@ -15,7 +15,20 @@ MASTER = "Tony Stark"
|
|||||||
|
|
||||||
engine = pyttsx3.init('sapi5') #
|
engine = pyttsx3.init('sapi5') #
|
||||||
voices = engine.getProperty('voices')
|
voices = engine.getProperty('voices')
|
||||||
engine.setProperty('voice', voices[0].id)
|
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',
|
popular_websites = {'google': 'https://www.google.com',
|
||||||
'youtube': 'https://www.youtube.com',
|
'youtube': 'https://www.youtube.com',
|
||||||
'wikipedia': 'https://www.wikipedia.org',
|
'wikipedia': 'https://www.wikipedia.org',
|
||||||
|
|||||||
@ -5,6 +5,14 @@ A Virtual Desktop Assistant Written in Python.
|
|||||||
<img src="https://github.com/Harsha200105/DesktopAssitant/blob/main/resource/JJ.jpeg"> <br>
|
<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>
|
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
|
||||||
|
|
||||||
|
step2. For windows user run Jarvis2_4windows.py script.
|
||||||
|
|
||||||
|
Wow All done! Now give the command to jarvis.
|
||||||
|
|
||||||
# Contributing Guidelines :<br>
|
# Contributing Guidelines :<br>
|
||||||
- We are Open for Pull Requests
|
- We are Open for Pull Requests
|
||||||
- Please contribute and add value to the code
|
- Please contribute and add value to the code
|
||||||
|
|||||||
4
requirements.txt
Normal file
4
requirements.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
pygame==2.0.1
|
||||||
|
pyttsx3==2.90
|
||||||
|
SpeechRecognition==3.8.1
|
||||||
|
wikipedia==1.4.0
|
||||||
Loading…
x
Reference in New Issue
Block a user