private void OnRecognize(SpeechRecognitionEvent result)
 {
     if (result != null && result.results.Length > 0)
     {
         foreach (var res in result.results)
         {
             foreach (var alt in res.alternatives)
             {
                 if (res.final)
                 {
                     _cs.ShowRecognitionResult(alt.transcript);
                     _maybe_done = true;
                     _to_send   += alt.transcript;
                 }
                 else
                 {
                     _maybe_done = false;
                     _done_timer = 0f;
                     int effective_length = Math.Min((_to_send + alt.transcript).Split().Length, _max_thresh_len);
                     _done_threshold     = _max_done_thresh - (effective_length * _thresh_step);
                     _ongoingRecognition = true;
                     _cs.ShowRecognitionResult(_to_send + alt.transcript);
                 }
                 string text = string.Format("{0} ({1}, {2:0.00})\n", alt.transcript, res.final ? "Final" : "Interim", alt.confidence);
                 Log.Debug("ExampleStreaming.OnRecognize()", text);
                 //ResultsField.text = text;
             }
         }
     }
 }