Beispiel #1
0
 def __init__(self, text_to_speech, speech_to_text):
     Feature.__init__(self)
     Speaking.__init__(self, text_to_speech)
     self.speech_to_text = speech_to_text
     self.neural_network = None
     self.background_image = np.array([])
     self.iris_slide = np.array([])
Beispiel #2
0
 def __init__(self, text_to_speech):
     Feature.__init__(self)
     Speaking.__init__(self, text_to_speech)
     self.is_pyramid = False
     self.is_cube = False
     self.rotation = 0
     self.background_image = np.array([])
     self.speech_thread = None
Beispiel #3
0
 def __init__(self, text_to_speech):
     Feature.__init__(self)
     Speaking.__init__(self, text_to_speech)
     self.is_pyramid = False
     self.is_cube = False
     self.rotation = 0
     self.background_image = np.array([])
     self.speech_thread = None
Beispiel #4
0
 def __init__(self, text_to_speech):
     Feature.__init__(self)
     Speaking.__init__(self, text_to_speech)
     self.background_image = np.array([])
     self.slides = []
     self.blurbs = []
     self.current_item = 0
     self.current_slide = np.array([])
     self.blurb_thread = None
     self._get_slides_and_blurbs()
Beispiel #5
0
 def __init__(self, text_to_speech):
     Feature.__init__(self)
     Speaking.__init__(self, text_to_speech)
     self.background_image = np.array([])
     self.slides = []
     self.blurbs = []
     self.current_item = 0
     self.current_slide = np.array([])
     self.blurb_thread = None
     self._get_slides_and_blurbs()
    def __init__(self, text_to_speech, speech_to_text):
        Feature.__init__(self)

        # setup AV Table
        self.av_table = GameTable(13, 2)
        if (self.av_table.loadParameters() == False):
            self.av_table.initialize(0.)

        # setup a Q-Learning agent
        learner = Q(0.5, 0.0)
        learner._setExplorer(EpsilonGreedyExplorer(0.0))
        self.agent = LearningAgent(self.av_table, learner)

        # setup game interaction
        self.game_interaction = GameInteraction(text_to_speech, speech_to_text)

        # setup environment
        environment = GameEnvironment(self.game_interaction)

        # setup task
        task = GameTask(environment, self.game_interaction)

        # setup experiment
        self.experiment = Experiment(task, self.agent)
    def __init__(self, text_to_speech, speech_to_text):
        Feature.__init__(self)

        # setup AV Table
        self.av_table = GameTable(13, 2)
        if(self.av_table.loadParameters() == False):
            self.av_table.initialize(0.)
 
        # setup a Q-Learning agent
        learner = Q(0.5, 0.0)
        learner._setExplorer(EpsilonGreedyExplorer(0.0))
        self.agent = LearningAgent(self.av_table, learner)
 
        # setup game interaction
        self.game_interaction = GameInteraction(text_to_speech, speech_to_text)

        # setup environment
        environment = GameEnvironment(self.game_interaction)
 
        # setup task
        task = GameTask(environment, self.game_interaction)
 
        # setup experiment
        self.experiment = Experiment(task, self.agent)
 def __init__(self, text_to_speech):
     Feature.__init__(self)
     Speaking.__init__(self, text_to_speech)
Beispiel #9
0
 def __init__(self, text_to_speech, speech_to_text):
     Feature.__init__(self)
     Speaking.__init__(self, text_to_speech)
     self.speech_to_text = speech_to_text
     self.is_cloudy = False
Beispiel #10
0
 def __init__(self, text_to_speech, speech_to_text):
     Feature.__init__(self)
     Speaking.__init__(self, text_to_speech)
     self.speech_to_text = speech_to_text
     self.recognizer = sr.Recognizer()
     pygame.mixer.init(frequency=8000)
Beispiel #11
0
 def __init__(self, speech_to_text):
     Feature.__init__(self)
     self.is_speaking = False
     self.speech_to_text = speech_to_text
     self.phrases = self._load_config()
     pygame.mixer.init()
Beispiel #12
0
 def __init__(self):
     Feature.__init__(self)
     self.background_image = np.array([])
     self.video_capture = cv2.VideoCapture()
 def __init__(self, text_to_speech):
     Feature.__init__(self)
     Speaking.__init__(self, text_to_speech)
     self.neural_network = None
Beispiel #14
0
 def __init__(self):
     Feature.__init__(self)
     self.background_image = np.array([])
     self.video_capture = cv2.VideoCapture()
Beispiel #15
0
 def __init__(self, speech_to_text):
     Feature.__init__(self)
     self.is_speaking = False
     self.speech_to_text = speech_to_text
     self.phrases = self._load_config()
     pygame.mixer.init()
 def __init__(self, text_to_speech):
     Feature.__init__(self)
     Speaking.__init__(self, text_to_speech)
Beispiel #17
0
 def __init__(self, text_to_speech, speech_to_text):
     Feature.__init__(self)
     Speaking.__init__(self, text_to_speech)
     self.speech_to_text = speech_to_text
     self.recognizer = sr.Recognizer()
     pygame.mixer.init(frequency=8000)
Beispiel #18
0
 def __init__(self, text_to_speech, speech_to_text):
     Feature.__init__(self)
     Speaking.__init__(self, text_to_speech)
     self.speech_to_text = speech_to_text
     self.is_cloudy = False
Beispiel #19
0
 def __init__(self, text_to_speech):
     Feature.__init__(self)
     Speaking.__init__(self, text_to_speech)
     self.neural_network = None