From 04359f000ff0665e5d8230bfb038f71af5eb7057 Mon Sep 17 00:00:00 2001 From: Jonathan D'Orleans Date: Sat, 28 Jan 2017 00:11:14 -0500 Subject: [PATCH] #484 - Fixing STT config initialization - Ensuring config is set to the specified module - Initializing credential from the selected module configuration --- mycroft/stt/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mycroft/stt/__init__.py b/mycroft/stt/__init__.py index e0fef980ea..84f306658f 100644 --- a/mycroft/stt/__init__.py +++ b/mycroft/stt/__init__.py @@ -33,8 +33,9 @@ class STT(object): def __init__(self): config_core = ConfigurationManager.get() self.lang = str(self.init_language(config_core)) - self.config = config_core.get("stt") - self.credential = self.config.get(self.config.get("module"), {}) + config_stt = config_core.get("stt", {}) + self.config = config_stt.get(config_stt.get("module"), {}) + self.credential = self.config.get("credential", {}) self.recognizer = Recognizer() @staticmethod