/// <summary> /// This event is fired while the user is talking. As the recognizer listens, it provides text of what it's heard so far. /// </summary> /// <param name="text">The currently hypothesized recognition.</param> private void DictationRecognizer_DictationHypothesis(string text) { // We don't want to append to textSoFar yet, because the hypothesis may have changed on the next event. dictationResult = $"{textSoFar} {text}..."; IMixedRealityInputSystem inputSystem = Service as IMixedRealityInputSystem; inputSystem?.RaiseDictationHypothesis(inputSource, dictationResult); }
/// <summary> /// This event is fired while the user is talking. As the recognizer listens, it provides text of what it's heard so far. /// </summary> /// <param name="text">The currently hypothesized recognition.</param> private void DictationRecognizer_DictationHypothesis(string text) { Profiler.BeginSample("[MRTK] WindowsDictationInputProvider.DictationRecognizer_DictationHypothesis"); // We don't want to append to textSoFar yet, because the hypothesis may have changed on the next event. dictationResult = $"{textSoFar} {text}..."; IMixedRealityInputSystem inputSystem = Service as IMixedRealityInputSystem; inputSystem?.RaiseDictationHypothesis(inputSource, dictationResult); Profiler.EndSample(); // DictationHypothesis }