void Start()
    {
        lunarcomController = LunarcomController.lunarcomController;
        if (lunarcomController.outputText == null)
        {
            Debug.LogError("outputText property is null! Assign a UI Text element to it.");
        }
        else
        {
            micPermissionGranted = true;
        }

        lunarcomController.onSelectRecognitionMode += HandleOnSelectRecognitionMode;

        if (GetComponent <LunarcomOfflineRecognizer>())
        {
            LunarcomOfflineRecognizer lunarcomOfflineRecognizer = GetComponent <LunarcomOfflineRecognizer>();
            if (lunarcomOfflineRecognizer.simulateOfflineMode != SimuilateOfflineMode.Enabled)
            {
                if (WakeWord != "" && WakeWord != "*")
                {
                    lunarcomController.HideTerminal();
                    BeginRecognizing();
                }
            }
        }
        else
        {
            if (WakeWord != "" && WakeWord != "*")
            {
                lunarcomController.HideTerminal();
                BeginRecognizing();
            }
        }
    }
 private void Update()
 {
     if (lunarcomController.CurrentRecognitionMode() == RecognitionMode.Disabled)
     {
         if (lunarcomController.Terminal.activeSelf)
         {
             if (recognizedString.ToLower().Contains(DismissWord.ToLower()))
             {
                 lunarcomController.HideTerminal();
             }
         }
         else
         {
             if (recognizedString.ToLower().Contains(WakeWord.ToLower()))
             {
                 lunarcomController.ShowTerminal();
             }
         }
     }
 }