private void DictationRecognizer_DictationComplete(DictationCompletionCause cause)
    {
        Debug.Log($"DictationRecognizer_DictationComplete: {cause.ToString()}");

        if (cause != DictationCompletionCause.Complete)
        {
            this.dictationRecognizer.Start();
            Debug.Log("dictationRecognizer.Start");
        }
    }
Ejemplo n.º 2
0
    private void DictationRecognizer_DictationComplete(DictationCompletionCause cause)

    {
        // If Timeout occurs, the user has been silent for too long.

        // With dictation, the default timeout after a recognition is 20 seconds.

        // The default timeout with initial silence is 5 seconds.

        if (cause == DictationCompletionCause.TimeoutExceeded)
        {
            Debug.Log("Dictation Complete Timeout");
        }
        else
        {
            Debug.Log("Dictation complete: " + cause.ToString());
        }

        Debug.Log("Dictation Start");
        dictationRecognizer.Start();
    }
Ejemplo n.º 3
0
 public void OnDictationComplete(DictationCompletionCause cause)
 {
     Debug.Log("Complete" + cause.ToString());
 }