EvilZone

Programming and Scripting => Scripting Languages => Topic started by: pyte on May 20, 2013, 07:45:57 AM

Title: AI with python
Post by: pyte on May 20, 2013, 07:45:57 AM
Ive been quite lost for the past months but here i am again .
i have a short code ive just written with an intention to have a conversation with my script.
i got the part where my script gets to speak but never the part to listen and respond accordingly.
Any advice on what to do from here(using Linux)
here is the script.


Code: [Select]
import subprocess
import time
import threading
def Talk():
      threading.Timer(10,Talk).start()
text = '"hi there "'
subprocess.call('espeak '+text, shell=True )