private void CanceledHandler(object sender, IntentRecognitionCanceledEventArgs e)
    {
        UnityEngine.Debug.LogFormat($"CANCELED: Reason={e.Reason}");

        errorString = e.ToString();
        if (e.Reason == CancellationReason.Error)
        {
            UnityEngine.Debug.LogFormat($"CANCELED: ErrorDetails={e.ErrorDetails}");
            UnityEngine.Debug.LogFormat($"CANCELED: Did you update the subscription info?");
        }
    }
示例#2
0
        public static void OnCancel(IntentRecognitionCanceledEventArgs e)
        {
            Console.WriteLine($"CANCELED: Reason={e.Reason}");

            if (e.Reason == CancellationReason.Error)
            {
                Console.WriteLine($"CANCELED: ErrorCode={e.ErrorCode}");
                Console.WriteLine($"CANCELED: ErrorDetails={e.ErrorDetails}");
                Console.WriteLine($"CANCELED: Did you update the subscription info?");
            }
        }
示例#3
0
    private void Recognizer_Canceled(object sender, IntentRecognitionCanceledEventArgs e)
    {
        readyToProcess = false;

        var cancellation = CancellationDetails.FromResult(e.Result);

        Debug.Log($"CANCELED: Reason={cancellation.Reason}");

        if (cancellation.Reason == CancellationReason.Error)
        {
            Debug.Log($"CANCELED: ErrorCode={cancellation.ErrorCode}");
            Debug.Log($"CANCELED: ErrorDetails={cancellation.ErrorDetails}");
            Debug.Log($"CANCELED: Did you update the subscription info?");
        }
    }
示例#4
0
 private void IntentRecognizer_Canceled(object sender, IntentRecognitionCanceledEventArgs e)
 {
     stopRecognition.TrySetResult(0);
 }