/// <summary> /// This event is fired after the user pauses, typically at the end of a sentence. The full recognized string is returned here. /// </summary> /// <param name="text">The text that was heard by the recognizer.</param> /// <param name="confidence">A representation of how confident (rejected, low, medium, high) the recognizer is of this recognition.</param> private void DictationRecognizer_DictationResult(string text, ConfidenceLevel confidence) { textSoFar.Append($"{text}. "); dictationResult = textSoFar.ToString(); IMixedRealityInputSystem inputSystem = Service as IMixedRealityInputSystem; inputSystem?.RaiseDictationResult(inputSource, dictationResult); }
/// <summary> /// This event is fired after the user pauses, typically at the end of a sentence. The full recognized string is returned here. /// </summary> /// <param name="text">The text that was heard by the recognizer.</param> /// <param name="confidence">A representation of how confident (rejected, low, medium, high) the recognizer is of this recognition.</param> private void DictationRecognizer_DictationResult(string text, ConfidenceLevel confidence) { Profiler.BeginSample("[MRTK] WindowsDictationInputProvider.DictationRecognizer_DictationResult"); textSoFar.Append($"{text}. "); dictationResult = textSoFar.ToString(); IMixedRealityInputSystem inputSystem = Service as IMixedRealityInputSystem; inputSystem?.RaiseDictationResult(inputSource, dictationResult); Profiler.EndSample(); // DictationResult }