Posts

Showing posts from October, 2020

CHATBOT programming tutorial in tamil

Image
PYTHON CODING import webbrowser import smtplib import random from datetime import datetime  import os import sys #from weather import Weather import urllib import requests #import urllib2 import time from bs4 import BeautifulSoup import speech_recognition as sr from playsound import playsound import wikipedia import urllib3 import pyttsx3 #from googlesearch import search engine = pyttsx3.init('dummy') voices = engine.getProperty('voices') engine.setProperty('voice', voices[len(voices)-1].id) def speak(audio):     print('Computer: ' + audio)     engine.say(audio)     engine.runAndWait() def greetMe():     now=datetime.now()     currentH = int(now.strftime("%H"))     if currentH >= 0 and currentH < 12:         speak('Good Morning!')     if currentH >= 12 and currentH < 18:         speak('Good Afternoon!')     if currentH >= 18 and currentH !=0:         speak('Good E