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();
 }
    //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();
            }
        }
    }