Author Topic: AI with python  (Read 635 times)

0 Members and 1 Guest are viewing this topic.

Offline pyte

  • Peasant
  • *
  • Posts: 79
  • Cookies: -7
    • View Profile
AI with python
« 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 )
       
If you don't go into the tiger's cave, how will you get the cub?