public void OnError([GeneratedEnum] SpeechRecognizerError error) { Log.LogMessage("SpeechRecognizerError = " + error); //if (!_dialogWasManuallyAnswered && (error == SpeechRecognizerError.NoMatch || error == SpeechRecognizerError.SpeechTimeout)) // StartSpeechRecognition(); }
public void OnError(SpeechRecognizerError error) { if (error != SpeechRecognizerError.NoMatch) { Toast.MakeText(context, "Speech recognition error: " + error.ToString(), ToastLength.Long).Show(); } }
void IRecognitionListener.OnError(SpeechRecognizerError error) { string errorMessage = GetErrorText((int)error); Log.Debug(LOG_TAG, "FAILED " + errorMessage); Toast.MakeText(this, errorMessage, ToastLength.Short).Show(); toggleButton.Checked = false; }
void IRecognitionListener.OnError([GeneratedEnum] SpeechRecognizerError error) { if (IsStopped) { return; } RestartRecognizer(); }
public void OnError(SpeechRecognizerError error) { Log.Debug("On Error", error.ToString()); if (error == SpeechRecognizerError.NoMatch) { Message = null; } }
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; } }
public void OnError(SpeechRecognizerError error) { //string message; switch (error) { case SpeechRecognizerError.Audio: //message = "오디오 에러입니다."; break; case SpeechRecognizerError.Client: //message = "클라이언트 에러입니다."; break; case SpeechRecognizerError.InsufficientPermissions: SetTellmeBtnDefault(); Toast.MakeText(ApplicationContext, GetString(Resource.String.PleaseAllowAudioPermission), ToastLength.Long).Show(); break; case SpeechRecognizerError.Network: SetTellmeBtnDefault(); Toast.MakeText(ApplicationContext, GetString(Resource.String.NetworkError), ToastLength.Long).Show(); break; case SpeechRecognizerError.NetworkTimeout: //message = "네트워크 시간초과입니다."; break; case SpeechRecognizerError.NoMatch: //message = "해당 음성 녹음 결과가 없습니다."; ; break; case SpeechRecognizerError.RecognizerBusy: //message = "다시 시도해주세요."; break; case SpeechRecognizerError.Server: SetTellmeBtnDefault(); Toast.MakeText(ApplicationContext, GetString(Resource.String.ServerError), ToastLength.Long).Show(); break; case SpeechRecognizerError.SpeechTimeout: SetTellmeBtnDefault(); Toast.MakeText(ApplicationContext, GetString(Resource.String.RecordingTimeOut), ToastLength.Long).Show(); break; default: //message = "알수없음"; break; } RestartAudioAndVibarator(); }
public void OnError([GeneratedEnum] SpeechRecognizerError error) { Text_Error.Text = error.ToString(); if (error.ToString() == "NoMatch") { speech_recognition(); } else { Thread.Sleep(1750); speech_recognition(); } }
private void onError(int data) { Dispatcher.GetInstance().InvokeAction( () => { SpeechRecognizerError error = (SpeechRecognizerError)data; UpdateStatus(error.ToString()); if (resultText != null) { resultText.text = "Result: Waiting for result..."; } } ); }
public string GetErrorText(SpeechRecognizerError errorCode) { string message = ""; switch (errorCode) { case SpeechRecognizerError.Audio: message = "Audio recording error"; break; case SpeechRecognizerError.Client: message = "client side error"; break; case SpeechRecognizerError.InsufficientPermissions: message = "insufficient permissions"; break; case SpeechRecognizerError.Network: message = "network error"; break; case SpeechRecognizerError.NetworkTimeout: message = "network timeout"; break; case SpeechRecognizerError.NoMatch: message = "no match"; break; case SpeechRecognizerError.RecognizerBusy: message = "recognitionservice busy"; break; case SpeechRecognizerError.Server: message = "error from server"; break; case SpeechRecognizerError.SpeechTimeout: message = "no speech input"; break; default: message = "didn't understand, please try again"; break; } return(message); }
public void OnError([GeneratedEnum] SpeechRecognizerError error) { string errorMensaje = errorText.GetErrorText(error); if (error == SpeechRecognizerError.NoMatch) { record = true; textToSpeak = "Lo siento, no le he entendido. ¿Cuál es su número de teléfono?"; toSpeech = new TextToSpeech(this, this); } else if (error == SpeechRecognizerError.Network || error == SpeechRecognizerError.NetworkTimeout) { record = false; textToSpeak = "No hay conexión a Internet. Por favor, inténtelo mas tarde."; } }
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); } ); }
public void OnError([GeneratedEnum] SpeechRecognizerError error) { string errorMensaje = errorText.GetErrorText(error); if (error == SpeechRecognizerError.NoMatch) { record = true; textToSpeak = "Lo siento, no le he entendido. ¿Qué quiere hacer?. ¿Enviar, leer, contactos, configuración, cerrar sesión, o no hacer nada?"; toSpeech = new TextToSpeech(this, this); } else if (error == SpeechRecognizerError.Network || error == SpeechRecognizerError.NetworkTimeout) { record = false; textToSpeak = "No hay conexión a Internet. Por favor, inténtelo mas tarde."; } }
public void OnError([GeneratedEnum] SpeechRecognizerError error) { string errorMensaje = errorText.GetErrorText(error); if (error == SpeechRecognizerError.NoMatch) { record = true; count = 0; textToSpeak = "Lo siento, no le he entendido. ¿Quiere entrar a una conversación, borrarla, no hacer nada o volver atrás?"; toSpeech = new TextToSpeech(this, this); } else if (error == SpeechRecognizerError.Network || error == SpeechRecognizerError.NetworkTimeout) { record = false; textToSpeak = "No hay conexión a Internet. Por favor, inténtelo mas tarde."; } }
public void OnError([GeneratedEnum] SpeechRecognizerError error) { string errorMensaje = errorText.GetErrorText(error); if (error == SpeechRecognizerError.NoMatch) { countSpeech = 0; textToSpeak = "Lo siento, no le he entendido. ¿Quiere modificar su nombre de usuario, el tipo de voz, la velocidad de lectura " + "o la activación de la voz, no hacer nada o volver atrás?"; toSpeech = new TextToSpeech(this, this); } else if (error == SpeechRecognizerError.Network || error == SpeechRecognizerError.NetworkTimeout) { record = false; textToSpeak = "No hay conexión a Internet. Por favor, inténtelo mas tarde."; } }
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..."; } } ); }
public void OnError([GeneratedEnum] SpeechRecognizerError error) { string errorMensaje = errorText.GetErrorText(error); if (error == SpeechRecognizerError.NoMatch) { record = true; countSpeech = 0; textToSpeak = "Lo siento, no le he entendido. ¿Quiere buscar un contacto, actualizar, eliminar, bloqueados, no hacer nada o volver atrás?"; toSpeech = new TextToSpeech(this, this); } else if (error == SpeechRecognizerError.Network || error == SpeechRecognizerError.NetworkTimeout) { record = false; textToSpeak = "No hay conexión a Internet. Por favor, inténtelo mas tarde."; } }
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()); } }
public void OnError([GeneratedEnum] SpeechRecognizerError error) { string errorMensaje = errorText.GetErrorText(error); if (error == SpeechRecognizerError.NoMatch) { record = true; count = 0; textToSpeak = "Lo siento, no le he entendido. Por favor, diga el nombre del contacto a quien quiere enviar un mensaje"; toSpeech = new TextToSpeech(this, this); } else if (error == SpeechRecognizerError.Network || error == SpeechRecognizerError.NetworkTimeout) { record = false; textToSpeak = "No hay conexión a Internet. Por favor, inténtelo mas tarde."; } }
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"; } } ); }
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(); } ); }
private void RecListener_Error(object sender, SpeechRecognizerError e) => Log.Debug(nameof(MainActivity), $"{nameof(RecListener_Error)}={e.ToString()}");
public void OnError([GeneratedEnum] SpeechRecognizerError error) { }
public void OnError([GeneratedEnum] SpeechRecognizerError error) { var webView = FindViewById <Android.Webkit.WebView>(Resource.Id.voiceWebView); webView.Visibility = ViewStates.Invisible; }
public void OnError(SpeechRecognizerError err) { Log.Debug(TAG, "FAILED " + err.ToString()); }
public void OnError([GeneratedEnum] SpeechRecognizerError error) { lisenTome.Text = error.ToString(); audioManager.SetStreamVolume(Stream.Music, musicOrigVol, 0); }
public void OnError(SpeechRecognizerError error) { throw new NotImplementedException(); }
private void RecListener_Error(object sender, SpeechRecognizerError e) { isRecording = false; MessagingCenter.Send <IVoiceToCommandService, string>(this, "STT", e.ToString()); }
public void OnError(SpeechRecognizerError error) { Debug.WriteLine("Error: " + error); this.Error?.Invoke(error); }
public void OnError([GeneratedEnum] SpeechRecognizerError error) => Error?.Invoke(this, error);