Update listener.py

pull/575/head
SoloVeniaASaludar 2017-03-17 18:21:06 +01:00 committed by GitHub
parent 04e147552a
commit 08e7778538
1 changed files with 6 additions and 6 deletions

View File

@ -198,12 +198,12 @@ class RecognizerLoop(EventEmitter):
threshold = self.config.get('threshold') threshold = self.config.get('threshold')
return LocalRecognizer(wake_word, phonemes, threshold, rate, lang) return LocalRecognizer(wake_word, phonemes, threshold, rate, lang)
@staticmethod def create_wakeup_recognizer(self, rate, lang):
def create_wakeup_recognizer(rate, lang): wake_word = self.config.get('standup_word', "wake up")
# Create a local recognizer to come out of sleep with 'wake up' phonemes = self.config.get('standup_phonemes', "W EY K . AH P")
# TODO - localization threshold = self.config.get('standup_threshold', 1e-10)
return LocalRecognizer("wake up", "W EY K . AH P", 1e-10, rate, lang) return LocalRecognizer(wake_word, phonemes, threshold, rate, lang)
def start_async(self): def start_async(self):
self.state.running = True self.state.running = True
queue = Queue() queue = Queue()