From 668eefe74fa9ae308a585cffcf617e5a7cc72ba9 Mon Sep 17 00:00:00 2001 From: Sujan Patel Date: Sat, 8 Jul 2017 11:35:58 -0400 Subject: [PATCH] Issue-895 - Adding uppercase support to wake words --- mycroft/client/speech/listener.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mycroft/client/speech/listener.py b/mycroft/client/speech/listener.py index 89d280cbff..3c3eb5f74c 100644 --- a/mycroft/client/speech/listener.py +++ b/mycroft/client/speech/listener.py @@ -217,14 +217,14 @@ class RecognizerLoop(EventEmitter): def create_mycroft_recognizer(self, rate, lang): # 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') threshold = self.config.get('threshold') return PocketsphinxRecognizer(wake_word, phonemes, threshold, 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") threshold = self.config.get('standup_threshold', 1e-18) return PocketsphinxRecognizer(wake_word, phonemes,