/// <summary> /// Raises the SpeakCompleted event /// </summary> /// <param name="spokenString"></param> /// <param name="operationResult"></param> protected void OnSpeakCompleted(string spokenString, SpeakOperationResult operationResult) { if (SpeakCompleted != null) { SpeakCompleted(this, spokenString, operationResult); } }
private void spGen_SpeakCompleted(SpeechGenerator sender, string spokenString, SpeakOperationResult result) { try { if (autoDisableSpRec && spRecState) { //if (autoDisableSpRec) commandManager.RobotSpeechRecognizer.Enabled = spRecState; } //commandManager.RobotSpeechRecognizer.Enabled = true; } catch { } switch (result) { case SpeakOperationResult.Error: Console("\tError"); break; case SpeakOperationResult.Canceled: Console("\tCanceled"); break; default: Console("\tDone!"); break; } }
/// <summary> /// Raises the SpeakCompleted event /// </summary> /// <param name="spokenString"></param> /// <param name="operationResult"></param> protected void OnSpeakCompleted(string spokenString, SpeakOperationResult operationResult) { if (SpeakCompleted != null) SpeakCompleted(this, spokenString, operationResult); }