Make sure structure for wake word exist before use
==== Fixed Issues ==== #1105 ==== Tech Notes ==== Verify that the sub-config for the set wake word exist before writing to it.pull/1099/merge
parent
f5806b86c5
commit
605f0640ec
|
@ -221,6 +221,8 @@ class RecognizerLoop(EventEmitter):
|
|||
phonemes = self.config.get("phonemes")
|
||||
thresh = self.config.get("threshold")
|
||||
config = self.config_core.get("hotwords", {word: {}})
|
||||
if word not in config:
|
||||
config[word] = {}
|
||||
if phonemes:
|
||||
config[word]["phonemes"] = phonemes
|
||||
if thresh:
|
||||
|
|
Loading…
Reference in New Issue