Ejemplo n.º 1
0
 /// <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);
     }
 }
Ejemplo n.º 2
0
        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;
            }
        }
Ejemplo n.º 3
0
 /// <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);
 }