Skip to content

Accessing managers from modules

maxbachmann edited this page Oct 9, 2019 · 2 revisions

Modules can access Project Alice managers pretty simply. All the managers have a helper function so instead of using per exemple

from core.base.SuperManager import SuperManager
SuperManager.getInstance().MqttManager.foo()

You can simply call

self.MqttManager.foo()

Listing of available managers:

  • ConfigManager
  • ModuleManager
  • DeviceManager
  • DialogSessionManager
  • MultiIntentManager
  • ProtectedIntentManager
  • MqttServer
  • SamkillaManager
  • SnipsConsoleManager
  • SnipsServicesManager
  • UserManager
  • DatabaseManager
  • InternetManager
  • TelemetryManager
  • ThreadManager
  • TimeManager
  • ASRManager
  • LanguageManager
  • TalkManager
  • TTSManager
  • WakewordManager