示例#1
0
 public void StopListening()
 {
     IsListening    = false;
     _infoText.text = "before stopping";
     _pocketSphinx.CancelRecognizer(); // _pocketSphinx.StopRecognizer() will trigger OnResult()
     _infoText.text = "stopped";
 }
示例#2
0
    private void switchSearch(string searchKey)
    {
        listening      = false;
        _infoText.text = "before stopping";
        _pocketSphinx.CancelRecognizer(); // _pocketSphinx.StopRecognizer() will trigger OnResult()
        _infoText.text = "stopped";

        StartCoroutine(delayStartListening());
    }