# Path: IO.py
# VIDEO_SAMPLE_TIME = 100 # Milliseconds
# NAP_STRIDE = 441
# NAP_RATE = 22050
# FRAME_SIZE = (640,480)
# PROCESS_TIME_OUT = 5*60 
# SYSTEM_TIME_OUT = 30*60 
# CAMERA = 5561
# PROJECTOR = 5562
# MIC = 5563
# SPEAKER = 5564
# STATE = 5565
# EXTERNAL = 5566 # If you change this, you're out of luck.
# SNAPSHOT= 5567
# EVENT = 5568
# SCHEDULER = 5569
# ROBO = 5570
# COGNITION = 5571
# FACE = 5572
# BRAIN = 5573
# ASSOCIATION = 5574
# SENTINEL = 5575
# LOGGER = 5576
# DREAM = 5577
# COUNTER = 5578
# def video():
# def audio():


import time
import sys
from IO import send
    send('startrec')
    time.sleep(secs)
    send('stoprec')
    send('respond')
elif mode == 'learn':
    print 'learning'
    send('startrec')
    time.sleep(secs)
    send('stoprec')
    send('learn')
    print 'done learning'
elif mode == 'respond':
    print 'responding'
    send('startrec')
    time.sleep(secs)
    send('stoprec')
    send('respond')
elif mode == 'association':
    send('startrec')
    time.sleep(secs)
    send('stoprec')
    send('setmarker')
    time.sleep(autowait)
    send('startrec')
    time.sleep(secs)
    send('stoprec')
    send('learn')
elif mode == 'longshort':
    send('startrec')
    time.sleep(7)

# Path: IO.py
# VIDEO_SAMPLE_TIME = 100 # Milliseconds
# NAP_STRIDE = 441
# NAP_RATE = 22050
# FRAME_SIZE = (640,480)
# PROCESS_TIME_OUT = 5*60 
# SYSTEM_TIME_OUT = 30*60 
# CAMERA = 5561
# PROJECTOR = 5562
# MIC = 5563
# SPEAKER = 5564
# STATE = 5565
# EXTERNAL = 5566 # If you change this, you're out of luck.
# SNAPSHOT= 5567
# EVENT = 5568
# SCHEDULER = 5569
# ROBO = 5570
# COGNITION = 5571
# FACE = 5572
# BRAIN = 5573
# ASSOCIATION = 5574
# SENTINEL = 5575
# LOGGER = 5576
# DREAM = 5577
# COUNTER = 5578
# def video():
# def audio():


# Path: learnrespond.py
import time
import sys
from IO import send

    send('startrec')
    time.sleep(secs)
    send('stoprec')
    send('respond')
elif mode == 'learn':
    print 'learning'
    send('startrec')
    time.sleep(secs)
    send('stoprec')
    send('learn')
    print 'done learning'
elif mode == 'respond':
    print 'responding'
    send('startrec')
    time.sleep(secs)
    send('stoprec')
    send('respond')
elif mode == 'association':
    send('startrec')
    time.sleep(secs)
    send('stoprec')
    send('setmarker')
    time.sleep(autowait)
    send('startrec')
    time.sleep(secs)
    send('stoprec')
    send('learn')
elif mode == 'longshort':
    send('startrec')
    time.sleep(7)

    send('stoprec')