void OnRealtimeResult(RealTimePredictionResult rtPrediction)
    {
        var response = string.Empty;

        foreach (var intent in rtPrediction.intents)
        {
            var s = string.Format("label: {0} ({1:0.00})\n", intent.label, intent.prediction);
            response += s;
        }

        Hypothesis.text = rtPrediction.transcript.text;
        if (rtPrediction.isFinal)
        {
            var newMsg = string.Format("{0}\n(label:{1})\n\n", rtPrediction.transcript.text, rtPrediction.intents[0].label);
            Recognition.text = newMsg + Recognition.text;

            foreach (var intentResponse in m_responses.intentResponses)
            {
                if (rtPrediction.intents[0].label == intentResponse.intent)
                {
                    var newResponse = string.Format("{0}\n\n\n", intentResponse.response);
                    Response.text = newResponse + Response.text;
                    break;
                }
            }
        }

        IntentResults.text = response;
    }
 public void OnReceivedRealtimeResult(RealTimePredictionResult rtPrediction)
 {
     m_streamingResults.Enqueue(rtPrediction);
 }