public void StopListening() { IsListening = false; _infoText.text = "before stopping"; _pocketSphinx.CancelRecognizer(); // _pocketSphinx.StopRecognizer() will trigger OnResult() _infoText.text = "stopped"; }
private void switchSearch(string searchKey) { listening = false; _infoText.text = "before stopping"; _pocketSphinx.CancelRecognizer(); // _pocketSphinx.StopRecognizer() will trigger OnResult() _infoText.text = "stopped"; StartCoroutine(delayStartListening()); }