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

        keywordToStart.StartKeywordRecognizer();
    }
Ejemplo 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();
        }