This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from playsound import playsound | |
import datetime | |
from time import sleep | |
def RingerNow(time,Sound): | |
Alarm_Time = str(time).replace(":","") | |
Alarm_Tim = str(time) | |
while True: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import pywhatkit | |
def Music(Name,Path): | |
if 'file' in Name: | |
os.startfile(str(Path)) | |
else: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import speech_recognition as sr | |
def Listen(): | |
r = sr.Recognizer() | |
with sr.Microphone() as source: | |
print(" ") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyttsx3 # pip install pyttsx3 | |
Assistant = pyttsx3.init('sapi5') | |
Voices = Assistant.getProperty('voices') | |
Assistant.setProperty('voices',Voices[2].id) | |
Assistant.setProperty('rate',170) | |
def Say(Audio): | |
print(f"Assistant : {Audio}") | |
print(" ") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyttsx3 | |
import speech_recognition as sr | |
import requests | |
from googletrans import Translator | |
Api_Key = "KrsOGOZLgYGcxYVBLZld2U65PevfTyOfbdqy7ggK" | |
engine = pyttsx3.init('sapi5') | |
voices = engine.getProperty('voices') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyttsx3 | |
import requests | |
from googletrans import Translator | |
import speech_recognition as sr | |
engine = pyttsx3.init('sapi5') | |
voices = engine.getProperty('voices') | |
engine.setProperty('voice', voices[2].id) | |
engine.setProperty('rate',180) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import speech_recognition as sr | |
def TakeCommand(): | |
r = sr.Recognizer() | |
with sr.Microphone() as source: | |
print(": Listening....") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyttsx3 | |
engine = pyttsx3.init('sapi5') | |
voices = engine.getProperty('voices') | |
engine.setProperty('voices',voices[2].id) | |
def Speak(audio): | |
print(" ") | |
print(f": {audio}") | |
engine.say(audio) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import webbrowser as web | |
import time | |
import keyboard | |
def Message(person,message): | |
if 'karan' in person: | |
karan = "+918527353664" | |
openChat = "https://web.whatsapp.com/send?phone=" + karan + "&text=" + message | |
web.open(openChat) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import speech_recognition as sr | |
def takecommand(): | |
command = sr.Recognizer() | |
with sr.Microphone() as source: | |
print("Listening......") | |
command.pause_threshold = 1 | |
audio = command.listen(source) |