// Re-enable Vuforia // Show the indicator + instruction and hide the main content public override void RestartAlignment() { videoPlayer.Stop(); mainContent.SetActive(false); VuforiaBehaviour.Instance.enabled = true; speechInputSource.StartKeywordRecognizer(); instruction.SetActive(true); imageTarget.SetActive(true); }
public void EnableKeywordListener() { if (grammarActive) { Debug.Log("Enabling KeywordListener"); gt.StopGrammarRecognizer(); sis.StartKeywordRecognizer(); DisplayText.text = "KeywordListener Active"; grammarActive = false; } }
private IEnumerator RestartSpeechSystem(SpeechInputSource keywordToStart) { while (dictationRecognizer != null && dictationRecognizer.Status == SpeechSystemStatus.Running) { yield return(null); } keywordToStart.StartKeywordRecognizer(); }
private IEnumerator RestartSpeechSystem() { // Turn off the microphone and dictation recognizer. microphoneManager.StopRecording(); // Wait for the dictation recognizer to fully shut down. yield return(StartCoroutine(microphoneManager.WaitForDictationToStop())); // Start the keyword recognizer. speechInputSource.StartKeywordRecognizer(); }