예제 #1
0
 /// <summary>
 /// Function that is called when an interim text result is received.
 /// </summary>
 /// <param name="text">The interim text result</param>
 void OnDictationHypothesis(string text)
 {
     SmartLogger.LogFormat(DebugFlags.WindowsSpeechToText, "Dictation hypothesis: {0}", text);
     m_LastResult = new SpeechToTextResult(text, false);
     if (m_OnTextResult != null)
     {
         m_OnTextResult(m_LastResult);
     }
 }
예제 #2
0
 /// <summary>
 /// Function that is called when a final text result is received.
 /// </summary>
 /// <param name="text">The final text result</param>
 /// <param name="confidence">Confidence level of the text result</param>
 void OnDictationResult(string text, ConfidenceLevel confidence)
 {
     SmartLogger.LogFormat(DebugFlags.WindowsSpeechToText, "Dictation result: {0}", text);
     m_LastResult = new SpeechToTextResult(text, true);
     if (m_OnTextResult != null)
     {
         m_OnTextResult(m_LastResult);
     }
 }