Esempio n. 1
0
 // 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);
 }
Esempio n. 2
0
 public void EnableKeywordListener()
 {
     if (grammarActive)
     {
         Debug.Log("Enabling KeywordListener");
         gt.StopGrammarRecognizer();
         sis.StartKeywordRecognizer();
         DisplayText.text = "KeywordListener Active";
         grammarActive    = false;
     }
 }
Esempio n. 3
0
    private IEnumerator RestartSpeechSystem(SpeechInputSource keywordToStart)
    {
        while (dictationRecognizer != null && dictationRecognizer.Status == SpeechSystemStatus.Running)
        {
            yield return(null);
        }

        keywordToStart.StartKeywordRecognizer();
    }
Esempio n. 4
0
        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();
        }