示例#1
0
    def initManagers(self):
        from core.commons.CommonsManager import CommonsManager
        from core.base.ConfigManager import ConfigManager
        from core.base.ModuleManager import ModuleManager
        from core.device.DeviceManager import DeviceManager
        from core.dialog.DialogSessionManager import DialogSessionManager
        from core.dialog.MultiIntentManager import MultiIntentManager
        from core.dialog.ProtectedIntentManager import ProtectedIntentManager
        from core.server.MqttManager import MqttManager
        from core.snips.SamkillaManager import SamkillaManager
        from core.snips.SnipsConsoleManager import SnipsConsoleManager
        from core.snips.SnipsServicesManager import SnipsServicesManager
        from core.user.UserManager import UserManager
        from core.util.DatabaseManager import DatabaseManager
        from core.util.InternetManager import InternetManager
        from core.util.TelemetryManager import TelemetryManager
        from core.util.ThreadManager import ThreadManager
        from core.util.TimeManager import TimeManager
        from core.voice.ASRManager import ASRManager
        from core.voice.LanguageManager import LanguageManager
        from core.voice.TalkManager import TalkManager
        from core.voice.TTSManager import TTSManager
        from core.voice.WakewordManager import WakewordManager
        from core.interface.WebInterfaceManager import WebInterfaceManager
        from core.snips.SnipsWatchManager import SnipsWatchManager

        self.commonsManager = CommonsManager()
        self.commons = self.commonsManager
        self.configManager = ConfigManager()
        self.databaseManager = DatabaseManager()
        self.languageManager = LanguageManager()
        self.snipsServicesManager = SnipsServicesManager()
        self.asrManager = ASRManager()
        self.ttsManager = TTSManager()
        self.threadManager = ThreadManager()
        self.protectedIntentManager = ProtectedIntentManager()
        self.mqttManager = MqttManager()
        self.timeManager = TimeManager()
        self.userManager = UserManager()
        self.dialogSessionManager = DialogSessionManager()
        self.multiIntentManager = MultiIntentManager()
        self.telemetryManager = TelemetryManager()
        self.moduleManager = ModuleManager()
        self.deviceManager = DeviceManager()
        self.internetManager = InternetManager()
        self.snipsConsoleManager = SnipsConsoleManager()
        self.samkillaManager = SamkillaManager()
        self.wakewordManager = WakewordManager()
        self.talkManager = TalkManager()
        self.webInterfaceManager = WebInterfaceManager()
        self.snipsWatchManager = SnipsWatchManager()

        self._managers = {
            name[0].upper() + name[1:]: manager
            for name, manager in self.__dict__.items()
            if name.endswith('Manager')
        }
示例#2
0
    def initManagers(self):
        from core.commons.CommonsManager import CommonsManager
        from core.base.ConfigManager import ConfigManager
        from core.base.SkillManager import SkillManager
        from core.device.DeviceManager import DeviceManager
        from core.device.LocationManager import LocationManager
        from core.dialog.MultiIntentManager import MultiIntentManager
        from core.server.MqttManager import MqttManager
        from core.user.UserManager import UserManager
        from core.util.DatabaseManager import DatabaseManager
        from core.util.InternetManager import InternetManager
        from core.util.TelemetryManager import TelemetryManager
        from core.util.ThreadManager import ThreadManager
        from core.util.TimeManager import TimeManager
        from core.asr.ASRManager import ASRManager
        from core.voice.LanguageManager import LanguageManager
        from core.voice.TalkManager import TalkManager
        from core.voice.TTSManager import TTSManager
        from core.voice.WakewordRecorder import WakewordRecorder
        from core.interface.WebInterfaceManager import WebInterfaceManager
        from core.interface.NodeRedManager import NodeRedManager
        from core.base.SkillStoreManager import SkillStoreManager
        from core.dialog.DialogTemplateManager import DialogTemplateManager
        from core.base.AssistantManager import AssistantManager
        from core.nlu.NluManager import NluManager
        from core.util.AliceWatchManager import AliceWatchManager
        from core.server.AudioServer import AudioManager
        from core.dialog.DialogManager import DialogManager
        from core.voice.WakewordManager import WakewordManager

        self.commonsManager = CommonsManager()
        self.commons = self.commonsManager
        self.configManager = ConfigManager()
        self.databaseManager = DatabaseManager()
        self.skillManager = SkillManager()
        self.deviceManager = DeviceManager()
        self.audioManager = AudioManager()
        self.languageManager = LanguageManager()
        self.asrManager = ASRManager()
        self.ttsManager = TTSManager()
        self.threadManager = ThreadManager()
        self.mqttManager = MqttManager()
        self.timeManager = TimeManager()
        self.userManager = UserManager()
        self.multiIntentManager = MultiIntentManager()
        self.telemetryManager = TelemetryManager()
        self.locationManager = LocationManager()
        self.internetManager = InternetManager()
        self.wakewordRecorder = WakewordRecorder()
        self.talkManager = TalkManager()
        self.webInterfaceManager = WebInterfaceManager()
        self.nodeRedManager = NodeRedManager()
        self.skillStoreManager = SkillStoreManager()
        self.dialogTemplateManager = DialogTemplateManager()
        self.assistantManager = AssistantManager()
        self.nluManager = NluManager()
        self.aliceWatchManager = AliceWatchManager()
        self.dialogManager = DialogManager()
        self.wakewordManager = WakewordManager()

        self._managers = {
            name[0].upper() + name[1:]: manager
            for name, manager in self.__dict__.items()
            if name.endswith('Manager')
        }