void Update() { if (pristine) { // Checks to see if machine can use the speech recognition if (PhraseRecognitionSystem.isSupported) { CreateRecognizedCommands(); m_Recognizer = new KeywordRecognizer(m_Keywords.ToArray()); m_Recognizer.OnPhraseRecognized += OnPhraseRecognized; m_Recognizer.Start(); } // If not, make the speech toggle (in panel) non-interactable. else { PanelController.DeactivateSpeechToggle(); isSpeech = false; } pristine = false; } }