示例#1
0
 public void StopCancel()
 {
     if (speechPlugin != null)
     {
         speechPlugin.StopCancel();
     }
     Debug.Log(TAG + " StopCancel...  ");
 }
 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();
            }
        }
    }