private static void PhraseRecognitionSystem_InvokeErrorEvent(SpeechError errorCode) { ErrorDelegate onError = OnError; if (onError != null) { onError(errorCode); } }
private static void PhraseRecognitionSystem_InvokeErrorEvent(SpeechError errorCode) { PhraseRecognitionSystem.ErrorDelegate onError = PhraseRecognitionSystem.OnError; if (onError != null) { onError(errorCode); } }
private static void PhraseRecognitionSystem_InvokeErrorEvent(SpeechError errorCode) { var onError = OnError; if (onError != null) { onError(errorCode); } }
public void onError(Recognizer recognizer, SpeechError error) { string text = error.getErrorDetail(); TraceHelper.AddMessage("onError: " + text); speechStateDelegate.DynamicInvoke(SpeechHelper.SpeechState.Finished, text); // trace a bad state if (recognizer != _recognizer) { TraceHelper.AddMessage("recognizer doesn't match"); } _recognizer.cancel(); _recognizer = null; _speechKit.release(); _speechKit = null; speechOperationInProgress = false; }
public void onSpeakingDone(Vocalizer vocalizer, string text, SpeechError error, object context) { Logger.info(this, "onSpeakingDone()"); // for debugging purpose: logging the speechkit session id Logger.info(this, "session id: [" + _speechKit.getSessionId() + "]"); hidePopup(); if (error != null) { Deployment.Current.Dispatcher.BeginInvoke(() => { MessageBox.Show(error.getErrorDetail()); }); } _vocalizer.cancel(); }
public void onError(Recognizer recognizer, SpeechError error) { Logger.info(this, "onError()"); // for debugging purpose: logging the speechkit session id Logger.info(this, "session id: [" + _speechKit.getSessionId() + "]"); if (recognizer != _recognizer) { return; } hidePopup(); Deployment.Current.Dispatcher.BeginInvoke(() => { MessageBox.Show(error.getErrorDetail()); }); _recognizer.cancel(); _recognizer = null; }
// Token: 0x060007F9 RID: 2041 RVA: 0x0002FC1A File Offset: 0x0002DE1A private void OnVoiceRecognitionError(SpeechError error) { Debug.LogError("Speech Recognition has stopped working: " + error); }
// Close the game when the recognier encounters an error private void EncounterError(SpeechError code) { GameManager.instance.QuitGame(); }
/// <summary>Callback method for recording error event</summary> public void onError(Recognizer recognizer, SpeechError error) { System.Diagnostics.Debug.WriteLine("PhoneGapSpeechPlugin: Recognizer.Listener.onError: Entered method."); if (recognizer != currentRecognizer) return; currentRecognizer = null; recording = false; // Display the error + suggestion in the edit box String detail = error.getErrorDetail(); String suggestion = error.getSuggestion(); System.Diagnostics.Debug.WriteLine("PhoneGapSpeechPlugin: Recognizer.Listener.onError: Detail = " + detail + "Suggestion = "+suggestion); ReturnObject returnObject = new ReturnObject(); try{ setReturnCode(returnObject, RC_RECO_FAILURE, "Reco Failure"); returnObject.eventName = EVENT_RECO_ERROR; returnObject.result = detail; } catch(Exception e){ System.Diagnostics.Debug.WriteLine("PhoneGapSpeechPlugin: Recognizer.Listener.onError: Error storing results: " + e); } PluginResult result = new PluginResult(PluginResult.Status.OK, returnObject); DispatchCommandResult( result ); // for debugging purpose: printing out the speechkit session id System.Diagnostics.Debug.WriteLine("PhoneGapSpeechPlugin: Recognizer.Listener.onError: Leaving method."); }
} // 0x000000018134BFD0-0x000000018134C0B0 private void u0925u091Au0921u0926u091Bu091Bu0927u0924u0920u0920u0926(SpeechError u0921u0924u091Cu0927u0927u0920u091Eu091Bu091Bu0921u091B) { } // 0x000000018134D060-0x000000018134D0E0
} // 0x000000018134D4F0-0x000000018134D540 private void u0923u0927u091Bu0929u091Eu0922u0922u091Cu0926u091Cu091B(SpeechError u0921u0924u091Cu0927u0927u0920u091Eu091Bu091Bu0921u091B) { } // 0x000000018134CE60-0x000000018134CEE0
} // 0x000000018134BAB0-0x000000018134BB20 private void u0928u091Du0927u0925u0928u0924u091Fu0923u0925u0921u0922(SpeechError u0921u0924u091Cu0927u0927u0920u091Eu091Bu091Bu0921u091B) { } // 0x000000018134D350-0x000000018134D3D0
} // 0x000000018134C3D0-0x000000018134C440 private void u0920u0921u091Du0925u091Du0920u0927u091Cu0926u0924u0921(SpeechError u0921u0924u091Cu0927u0927u0920u091Eu091Bu091Bu0921u091B) { } // 0x000000018134C670-0x000000018134C6F0
} // 0x000000018134D1F0-0x000000018134D250 private void u091Fu0926u0927u091Du0925u0926u0928u0923u091Eu0921u091C(SpeechError u0921u0924u091Cu0927u0927u0920u091Eu091Bu091Bu0921u091B) { } // 0x000000018134C4A0-0x000000018134C520
/// <summary>Callback method for TTS speaking done</summary> public void onSpeakingDone(Vocalizer vocalizer, String text, SpeechError error, Object context) { System.Diagnostics.Debug.WriteLine("PhoneGapSpeechPlugin: Vocalizer.Listener.onSpeakingDone: Context = [" + context + "], last context = " + _lastTtsContext); // Use the context to detemine if this was the final TTS phrase if (context != _lastTtsContext) { ReturnObject returnObject = new ReturnObject(); setReturnCode(returnObject, RC_SUCCESS, "TTS Playing..."); returnObject.eventName = EVENT_TTS_PLAYING; System.Diagnostics.Debug.WriteLine("PhoneGapSpeechPlugin: Vocalizer.Listener.onSpeakingDone: TTS Playing..."); PluginResult result = new PluginResult(PluginResult.Status.OK, returnObject); result.KeepCallback = true; DispatchCommandResult(result); } else { ReturnObject returnObject = new ReturnObject(); setReturnCode(returnObject, RC_SUCCESS, "TTS Playback Complete"); returnObject.eventName = EVENT_TTS_COMPLETE; System.Diagnostics.Debug.WriteLine("PhoneGapSpeechPlugin: Vocalizer.Listener.onSpeakingDone: TTS Complete..."); PluginResult result = new PluginResult(PluginResult.Status.OK, returnObject); DispatchCommandResult(result); } System.Diagnostics.Debug.WriteLine("PhoneGapSpeechPlugin: Vocalizer.Listener.onSpeakingDone: Leaving method."); }
public void onError(Recognizer recognizer, SpeechError error) { string text = error.getErrorDetail(); TraceHelper.AddMessage("onError: " + text); speechStateDelegate.DynamicInvoke(SpeechHelper.SpeechState.Finished, text); // trace a bad state if (recognizer != _recognizer) TraceHelper.AddMessage("recognizer doesn't match"); _recognizer.cancel(); _recognizer = null; _speechKit.release(); _speechKit = null; speechOperationInProgress = false; }
private static void PhraseRecognitionSystem_InvokeErrorEvent(SpeechError errorCode) { PhraseRecognitionSystem.OnError?.Invoke(errorCode); }
private void PhraseRecognitionSystem_OnError(SpeechError errorCode) { throw new NotImplementedException(); }