Exemple #1
0
 def start_async(self):
     self.state.running = True
     queue = Queue()
     AudioProducer(self.state, queue, self.microphone,
                   self.remote_recognizer, self).start()
     AudioConsumer(
         self.state, queue, self, self.wakeup_recognizer,
         self.mycroft_recognizer,
         RemoteRecognizerWrapperFactory.wrap_recognizer(
             self.remote_recognizer)).start()
Exemple #2
0
    def setUp(self):
        self.loop = RecognizerLoop()
        self.queue = Queue()
        self.recognizer = MockRecognizer()

        self.consumer = AudioConsumer(
            self.loop.state, self.queue, self.loop,
            self.loop.wakeup_recognizer, self.loop.mycroft_recognizer,
            RemoteRecognizerWrapperFactory.wrap_recognizer(
                self.recognizer, 'google'))
Exemple #3
0
    def setUp(self):
        self.loop = RecognizerLoop()
        self.queue = Queue()
        self.recognizer = MockRecognizer()

        self.consumer = AudioConsumer(
            self.loop.state, self.queue, self.loop,
            LocalRecognizer(self.loop.wakeup_recognizer.key_phrase,
                            self.loop.wakeup_recognizer.phonemes, "1e-16"),
            self.loop.mycroft_recognizer,
            RemoteRecognizerWrapperFactory.wrap_recognizer(
                self.recognizer, 'google'))
    def setUp(self):
        self.loop = RecognizerLoop()
        self.queue = Queue()
        self.recognizer = MockRecognizer()

        self.consumer = AudioConsumer(
            self.loop.state,
            self.queue,
            self.loop,
            self.loop.wakeup_recognizer,
            self.loop.mycroft_recognizer,
            RemoteRecognizerWrapperFactory.wrap_recognizer(
                self.recognizer, 'google'))
Exemple #5
0
 def start_async(self):
     self.state.running = True
     queue = Queue()
     AudioProducer(self.state,
                   queue,
                   self.microphone,
                   self.remote_recognizer,
                   self).start()
     AudioConsumer(self.state,
                   queue,
                   self,
                   self.wakeup_recognizer,
                   self.mycroft_recognizer,
                   RemoteRecognizerWrapperFactory.wrap_recognizer(
                           self.remote_recognizer)).start()