Skip to content

Instantly share code, notes, and snippets.

View KaushikShresth07's full-sized avatar

Kaushik Shresth KaushikShresth07

View GitHub Profile
import pywhatkit
import webbrowser
def YouTubeDirectSearch(Title):
pywhatkit.playonyt(Title)
def YouTubeSearch(Title):
hhtp = "https://www.youtube.com/results?search_query=" + str(Title)
from geopy.distance import great_circle # pip install geopy
from geopy.geocoders import Nominatim # pip install geopy
import webbrowser # pip install webbrowser
import geocoder # pip install geocoder
import requests
def GoogleMaps(Place):
Url_Place = "https://www.google.com/maps/place/" + str(Place)
from keyboard import press_and_release
from keyboard import press
import webbrowser as web
def WindowsAuto(command):
query = str(command)
if 'home screen' in query:
import wikipedia
def Summary(About):
information = wikipedia.summary(About,2)
return information
import wolframalpha
def Calculator(Problem,Api_Key):
app_id = set(Api_Key)
client = wolframalpha.Client(app_id)
res = client.query(Problem)
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:
import os
import pywhatkit
def Music(Name,Path):
if 'file' in Name:
os.startfile(str(Path))
else:
import speech_recognition as sr
def Listen():
r = sr.Recognizer()
with sr.Microphone() as source:
print(" ")
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(" ")
import pyttsx3
import speech_recognition as sr
import requests
from googletrans import Translator
Api_Key = "KrsOGOZLgYGcxYVBLZld2U65PevfTyOfbdqy7ggK"
engine = pyttsx3.init('sapi5')
voices = engine.getProperty('voices')