Skip to main content

Aritificial intelligence #2

so finally heyathena working

after installation do this in your python file

from athena import tts

tts.speak("how are you?")

it will something looks like cortana but not quite enough but it is well written.

Comments

Popular posts from this blog

Python Reads gmail

This is tutorial on how to read gmail emails with python programme : ----------------- #!/usr/bin/python __author__ = 'Robokishan' import email import imaplib import ctypes import getpass mail = imaplib.IMAP4_SSL('imap.gmail.com',993) unm = raw_input("insert Email : ") #pwd = raw_input("insert password : ") pwd = getpass.getpass("input : ") mail.login(unm,pwd) mail.select("INBOX") def loop():    mail.select("INBOX")    n=0    (retcode, messages) = mail.search(None, '(UNSEEN)')    if retcode == 'OK':             for num in messages[0].split() :          #print 'Processing '          n=n+1          print n          typ, data = mail.fetch(num,'(RFC822)')          for response_part in data:             if isinstance(response_part, tuple): ...

How to make stoppable thread in python

Python multi threading: stoppable thread:     many of you heard about threading in python is very bad. its not easy to stop it but there are several method to do that thing happen .     so lets get started.     create file name called <filename>.py then paste this code in your text editor. import threading import time ##writer = Robokishan ##stopable thread class ThreadingExample(object):     """ Threading example class     The run() method will be started and it will run in the background     until the application exits.     """     #NOTE: STOPING THREAD IS BAD METHOD     def __init__(self, interval=1):         """ Constructor         :type interval: int         :param interval: Check interval, in seconds       ...

Linux finding usb devices

i am stuck at one problem in linux since i have started using it. it is identifying lsusb output and then link it to /dev directory . okey in simple worlds using lsusb command to identify which /dev file is used to represent that lsusb bus. but i have not figure out any solution instead  i get something new. i have knowledge that linux can identify any type of device because it has inbuilt driver so ..... i have not apply it here. so to identify which device is lsusb . for mass storage. use lsblk that will link to /dev interface that was so easy but still stuck at if i have two 16GB or four 16GB how do i figure how which one is mine to use. right now i am just tring trial and error method . if you just let me know, i need it. so again i figured out about something new about linux love linux.