Exemplo n.º 1
0
        private void RecListener_Error(object sender, SpeechRecognizerError e)
        {
            Log.Debug(nameof(AndroidActivity), $"{nameof(RecListener_Error)}={e.ToString()}");
            mList.Add("RecListener_Error: " + e.ToString());

            if (!isListeningPaused)
            {
                seconds = -10;
            }
        }
Exemplo n.º 2
0
 public void OnError([GeneratedEnum] SpeechRecognizerError error)
 {
     Text_Error.Text = error.ToString();
     if (error.ToString() == "NoMatch")
     {
         speech_recognition();
     }
     else
     {
         Thread.Sleep(1750);
         speech_recognition();
     }
 }
Exemplo n.º 3
0
 public void OnError(SpeechRecognizerError error)
 {
     if (error != SpeechRecognizerError.NoMatch)
     {
         Toast.MakeText(context, "Speech recognition error: " + error.ToString(), ToastLength.Long).Show();
     }
 }
Exemplo n.º 4
0
        public void OnError(SpeechRecognizerError error)
        {
            Log.Debug("On Error", error.ToString());

            if (error == SpeechRecognizerError.NoMatch)
            {
                Message = null;
            }
        }
Exemplo n.º 5
0
    private void onError(int data)
    {
        Dispatcher.GetInstance().InvokeAction(
            () => {
            SpeechRecognizerError error = (SpeechRecognizerError)data;
            UpdateStatus(error.ToString());

            if (resultText != null)
            {
                resultText.text = "Result: Waiting for result...";
            }
        }
            );
    }
Exemplo n.º 6
0
    private void onError(int data)
    {
        dispatcher.InvokeAction(
            () => {
            // unmute beep
            CancelInvoke("DelayUnMute");
            Invoke("DelayUnMute", 0.3f);

            SpeechRecognizerError error = (SpeechRecognizerError)data;

            utilsPlugin.ShowToastMessage("Error while Listening: " + error.ToString());
            microphoneImage.gameObject.SetActive(true);
            dotsImage.gameObject.SetActive(false);
        }
            );
    }
Exemplo n.º 7
0
 public void OnError([GeneratedEnum] SpeechRecognizerError error)
 {
     Android.Util.Log.WriteLine(Android.Util.LogPriority.Debug, "OnError:", error.ToString());
     //sr.StopListening();
     //sr.StartListening(intent);
     if (error == Android.Speech.SpeechRecognizerError.NoMatch)
     {
         sr.StartListening(this.CreateSpeechIntent());
     }
     else if (error == Android.Speech.SpeechRecognizerError.SpeechTimeout)
     {
         sr.Destroy();
         sr = SpeechRecognizer.CreateSpeechRecognizer(this);
         sr.SetRecognitionListener(this);
         sr.StartListening(this.CreateSpeechIntent());
     }
 }
Exemplo n.º 8
0
    private void onError(int data)
    {
        Dispatcher.GetInstance().InvokeAction(
            () => {
            if (statusText != null)
            {
                SpeechRecognizerError error = (SpeechRecognizerError)data;
                statusText.text             = String.Format("Status: {0}", error.ToString());
            }

            if (resultText != null)
            {
                resultText.text = "Result: Waiting for result...";
            }
        }
            );
    }
Exemplo n.º 9
0
    private void onError(int data)
    {
        dispatcher.InvokeAction(
            () => {
            // unmute beep
            CancelInvoke("DelayUnMute");
            Invoke("DelayUnMute", 0.3f);

            SpeechRecognizerError error = (SpeechRecognizerError)data;
            UpdateStatus(error.ToString());

            if (resultText != null)
            {
                resultText.text = "Status: Unrecognized words";
            }
        }
            );
    }
Exemplo n.º 10
0
    private void onError(int data)
    {
        dispatcher.InvokeAction(
            () =>
        {
            // unmute beep
            CancelInvoke("DelayUnMute");
            Invoke("DelayUnMute", 0.3f);

            SpeechRecognizerError error = (SpeechRecognizerError)data;
            UpdateStatus(error.ToString());

            if (resultText != null)
            {
                //resultText.text = "Result: Waiting for result...";
            }
            this.StartListeningNoBeep();
        }
            );
    }
Exemplo n.º 11
0
 private void RecListener_Error(object sender, SpeechRecognizerError e) => Log.Debug(nameof(MainActivity), $"{nameof(RecListener_Error)}={e.ToString()}");
Exemplo n.º 12
0
 public void OnError(SpeechRecognizerError err)
 {
     Log.Debug(TAG, "FAILED " + err.ToString());
 }
Exemplo n.º 13
0
 public void OnError([GeneratedEnum] SpeechRecognizerError error)
 {
     lisenTome.Text = error.ToString();
     audioManager.SetStreamVolume(Stream.Music, musicOrigVol, 0);
 }
Exemplo n.º 14
0
 private void RecListener_Error(object sender, SpeechRecognizerError e)
 {
     isRecording = false;
     MessagingCenter.Send <IVoiceToCommandService, string>(this, "STT", e.ToString());
 }
Exemplo n.º 15
0
 public void OnError(SpeechRecognizerError err)
 {
     Log.Debug(TAG, "FAILED " + err.ToString());
     _tcs.TrySetResult(-1);
 }
Exemplo n.º 16
0
 public void OnError([GeneratedEnum] SpeechRecognizerError error)
 {
     Words = error.ToString();
     startover();
 }
 public void OnSpeechRecognitionError(SpeechRecognizerError error)
 {
     Toast.MakeText(this, error.ToString(), ToastLength.Short).Show();
 }
 public void OnError([GeneratedEnum] SpeechRecognizerError error)
 {
     Log.Debug("OnError", error.ToString());
 }
Exemplo n.º 19
0
 public void OnError([GeneratedEnum] SpeechRecognizerError error)
 {
     tv.Text = error.ToString();
 }