public override void OnStart() { if (!PackageHost.HasControlManager) { PackageHost.WriteError("Unable to connect !"); return; } PackageHost.ControlManager.RegisterStateObjectLinks(this); // Adding our AI into the group which receive the information about the SpeechRecognition. PackageHost.AddToGroup("JarvisSpeech"); }