Issue-895 - Adding uppercase support to wake words

pull/896/head
Sujan Patel 2017-07-08 11:35:58 -04:00
parent 3a6b9be389
commit 668eefe74f
1 changed files with 2 additions and 2 deletions

View File

@ -217,14 +217,14 @@ class RecognizerLoop(EventEmitter):
def create_mycroft_recognizer(self, rate, lang): def create_mycroft_recognizer(self, rate, lang):
# Create a local recognizer to hear the wakeup word, e.g. 'Hey Mycroft' # Create a local recognizer to hear the wakeup word, e.g. 'Hey Mycroft'
wake_word = self.config.get('wake_word') wake_word = self.config.get('wake_word').lower()
phonemes = self.config.get('phonemes') phonemes = self.config.get('phonemes')
threshold = self.config.get('threshold') threshold = self.config.get('threshold')
return PocketsphinxRecognizer(wake_word, phonemes, return PocketsphinxRecognizer(wake_word, phonemes,
threshold, rate, lang) threshold, rate, lang)
def create_wakeup_recognizer(self, rate, lang): def create_wakeup_recognizer(self, rate, lang):
wake_word = self.config.get('standup_word', "wake up") wake_word = self.config.get('standup_word', "wake up").lower()
phonemes = self.config.get('standup_phonemes', "W EY K . AH P") phonemes = self.config.get('standup_phonemes', "W EY K . AH P")
threshold = self.config.get('standup_threshold', 1e-18) threshold = self.config.get('standup_threshold', 1e-18)
return PocketsphinxRecognizer(wake_word, phonemes, return PocketsphinxRecognizer(wake_word, phonemes,