import speech_recognition as sr
import yagmail
recognizer=sr.Recognizer()
with sr.Microphone() as source:
print('Clearing background noise..')
recognizer.adjust_for_ambient_noise(source,duration=1)
print("waiting for your message...")
recordedaudio=recognizer.listen(source)
print('Done recording..!')
try:
print('Printing the message..')
text=recognizer.recognize_google(recordedaudio,language='en-US')
print('Your message:{}'.format(text))
except Exception as ex:
print(ex)
#Automate mails:
reciever=' Receiver's email id'
message=text
sender=yagmail.SMTP('Sender's email id ')
sender.send(to=reciever,subject='This is an automated mail',contents=message)
import yagmail
recognizer=sr.Recognizer()
with sr.Microphone() as source:
print('Clearing background noise..')
recognizer.adjust_for_ambient_noise(source,duration=1)
print("waiting for your message...")
recordedaudio=recognizer.listen(source)
print('Done recording..!')
try:
print('Printing the message..')
text=recognizer.recognize_google(recordedaudio,language='en-US')
print('Your message:{}'.format(text))
except Exception as ex:
print(ex)
#Automate mails:
reciever=' Receiver's email id'
message=text
sender=yagmail.SMTP('Sender's email id ')
sender.send(to=reciever,subject='This is an automated mail',contents=message)
import speech_recognition as sr
import wikipedia
import pyttsx3
engine=pyttsx3.init()
recognizer=sr.Recognizer()
with sr.Microphone() as source:
print('Clearing background noise...Please wait')
recognizer.adjust_for_ambient_noise(source,duration=1)
print("waiting for your message...")
recordedaudio=recognizer.listen(source)
print('Done recording')
try:
print('Printing your message...Please wait')
text=recognizer.recognize_google(recordedaudio,language='en-US')
print('Your Message:{}',format(text))
except Exception as ex:
print(ex)
#Input data
wikisearch=wikipedia.summary(text)
engine.say(wikisearch)
engine.runAndWait()
import wikipedia
import pyttsx3
engine=pyttsx3.init()
recognizer=sr.Recognizer()
with sr.Microphone() as source:
print('Clearing background noise...Please wait')
recognizer.adjust_for_ambient_noise(source,duration=1)
print("waiting for your message...")
recordedaudio=recognizer.listen(source)
print('Done recording')
try:
print('Printing your message...Please wait')
text=recognizer.recognize_google(recordedaudio,language='en-US')
print('Your Message:{}',format(text))
except Exception as ex:
print(ex)
#Input data
wikisearch=wikipedia.summary(text)
engine.say(wikisearch)
engine.runAndWait()
Python update : Guys when you installed python 3.9.2 version don't try to install Tensorflow package on that version. Please use lower version like ( 3.8.8 ) for installation otherwise it will not support so save your time..👍
Tech news..... 🖥
Tesla's co-founder is teaming up with specialized solve the problm of e-bike batteries.
JB Straubel’s Redwood Materials wants to help recycle the e-bike industry’s batteries.
Share support ✨
Tesla's co-founder is teaming up with specialized solve the problm of e-bike batteries.
JB Straubel’s Redwood Materials wants to help recycle the e-bike industry’s batteries.
Share support ✨
#ykyg :
Did you know?
Google’s first-ever tweet seemed gibberish to all of us who don’t “speak code”.
It read: “I’m 01100110 01100101 01100101 01101100 01101001 01101110 01100111 00100000 01101100 01110101 01100011 01101011 01111001 00001010”
Which means “I’m feeling lucky” when translated to English.
Share support ✨
Did you know?
Google’s first-ever tweet seemed gibberish to all of us who don’t “speak code”.
It read: “I’m 01100110 01100101 01100101 01101100 01101001 01101110 01100111 00100000 01101100 01110101 01100011 01101011 01111001 00001010”
Which means “I’m feeling lucky” when translated to English.
Share support ✨
import speech_recognition as sr
import datetime
import subprocess
import pywhatkit
import pyttsx3
import webbrowser
engine=pyttsx3.init()
voices=engine.getProperty('voices')
engine.setProperty('voice',voices[1].id)
recognizer=sr.Recognizer()
def cmd():
with sr.Microphone() as source:
print("Clearing background noises...Pleasw wait")
recognizer.adjust_for_ambient_noise(source,duration=0.5)
print('Ask me anything..')
recordedaudio=recognizer.listen(source)
try:
text=recognizer.recognize_google(recordedaudio,language='en_US')
text=text.lower()
print('Your message:',format(text))
except Exception as ex:
print(ex)
if 'chrome'in text:
a='Opening chrome..'
engine.say(a)
engine.runAndWait()
programName = "C:\Program Files\Google\Chrome\Application\chrome.exe"
subprocess.Popen([programName])
if 'time' in text:
time = datetime.datetime.now().strftime('%I:%M %p')
print(time)
engine.say(time)
engine.runAndWait()
if 'play' in text:
a='opening youtube..'
engine.say(a)
engine.runAndWait()
pywhatkit.playonyt(text)
if 'youtube' in text:
b='opening youtube'
engine.say(b)
engine.runAndWait()
webbrowser.open('www.youtube.com')
while True:
cmd()
import datetime
import subprocess
import pywhatkit
import pyttsx3
import webbrowser
engine=pyttsx3.init()
voices=engine.getProperty('voices')
engine.setProperty('voice',voices[1].id)
recognizer=sr.Recognizer()
def cmd():
with sr.Microphone() as source:
print("Clearing background noises...Pleasw wait")
recognizer.adjust_for_ambient_noise(source,duration=0.5)
print('Ask me anything..')
recordedaudio=recognizer.listen(source)
try:
text=recognizer.recognize_google(recordedaudio,language='en_US')
text=text.lower()
print('Your message:',format(text))
except Exception as ex:
print(ex)
if 'chrome'in text:
a='Opening chrome..'
engine.say(a)
engine.runAndWait()
programName = "C:\Program Files\Google\Chrome\Application\chrome.exe"
subprocess.Popen([programName])
if 'time' in text:
time = datetime.datetime.now().strftime('%I:%M %p')
print(time)
engine.say(time)
engine.runAndWait()
if 'play' in text:
a='opening youtube..'
engine.say(a)
engine.runAndWait()
pywhatkit.playonyt(text)
if 'youtube' in text:
b='opening youtube'
engine.say(b)
engine.runAndWait()
webbrowser.open('www.youtube.com')
while True:
cmd()