예제 #1
0
 public void StopCancel()
 {
     if (speechPlugin != null)
     {
         speechPlugin.StopCancel();
     }
     Debug.Log(TAG + " StopCancel...  ");
 }
예제 #2
0
 public void StopCancel()
 {
     if (speechPlugin != null)
     {
         speechPlugin.StopCancel();
     }
     UnityEngine.Debug.Log(TAG + " StopCancel...  ");
     this.StartListeningNoBeep();
 }
예제 #3
0
    //TextToSpeechPlugin Events

    public void ToggleSpeechState()
    {
        if (microphoneImage.gameObject.activeInHierarchy)
        {
            // start listening to speech
            StartListening();
        }
        else
        {
            if (speechPlugin != null)
            {
                speechPlugin.StopCancel();
            }
            if (textToSpeechPlugin != null)
            {
                textToSpeechPlugin.Stop();
            }
        }
    }