E-mail Sender using Voice Recognition
This is a gui program which utilises tkinter (for gui), smtplib (to send email), pyttsx3 (text to speech) and speech_recognition (for voice recognition) libraries to send emails with a very little effort. Code: from tkinter import * from PIL import ImageTk, Image import speech_recognition as sr import pyttsx3 import smtplib def speak ( c ): e = pyttsx3.init() e.say(c) e.runAndWait() r = sr.Recognizer() def click (): o = smtplib.SMTP( "smtp.gmail.com" , 587 ) o.starttls() o.login( "visualspprt@gmail.com" , "Help@123" ) while ( 1 ): try : with sr.Microphone() as st: r.adjust_for_ambient_noise(st, duration = 0.2 ) speak( "Welcome to the voice recognition mail sender, how may i help you" ) a2 = r.listen(st) mt = r.recognize_google(a2) mt = mt.lower() #print(f"Did you said '{mt