Skip to content

Commit f3e9870

Browse files
committed
Merge branch 'mrtk_development' into mrtk_development_hl2
2 parents b35b602 + ba2c579 commit f3e9870

File tree

13 files changed

+1985
-291
lines changed

13 files changed

+1985
-291
lines changed

Assets/MixedRealityToolkit.Providers/WindowsVoiceInput/WindowsDictationInputProvider.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@ public WindowsDictationInputProvider(
4040
uint priority = DefaultPriority,
4141
BaseMixedRealityProfile profile = null) : base(registrar, inputSystem, inputSystemProfile, playspace, name, priority, profile) { }
4242

43-
/// <summary>
44-
/// Is the Dictation Manager currently running?
45-
/// </summary>
43+
/// <inheritdoc />
4644
public bool IsListening { get; private set; } = false;
4745

46+
#if UNITY_STANDALONE_WIN || UNITY_WSA || UNITY_EDITOR_WIN
4847
private bool hasFailed;
4948
private bool hasListener;
5049
private bool isTransitioning;
@@ -151,6 +150,7 @@ public override async void Disable()
151150
}
152151
}
153152

153+
/// <inheritdoc />
154154
public override void Destroy()
155155
{
156156
if (Application.isPlaying)
@@ -326,6 +326,6 @@ private void DictationRecognizer_DictationError(string error, int hresult)
326326
textSoFar = null;
327327
dictationResult = string.Empty;
328328
}
329-
}
330329
#endif // UNITY_STANDALONE_WIN || UNITY_WSA || UNITY_EDITOR_WIN
330+
}
331331
}

Assets/MixedRealityToolkit.Providers/WindowsVoiceInput/WindowsSpeechInputProvider.cs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
using Microsoft.MixedReality.Toolkit.Input;
55
using Microsoft.MixedReality.Toolkit.Utilities;
6-
using System;
7-
using UnityEngine;
8-
using UInput = UnityEngine.Input;
96

107
#if UNITY_STANDALONE_WIN || UNITY_WSA || UNITY_EDITOR_WIN
8+
using System;
9+
using UnityEngine;
1110
using UnityEngine.Windows.Speech;
11+
using UInput = UnityEngine.Input;
1212
#endif // UNITY_STANDALONE_WIN || UNITY_WSA || UNITY_EDITOR_WIN
1313

1414
namespace Microsoft.MixedReality.Toolkit.Windows.Input
@@ -47,6 +47,12 @@ public WindowsSpeechInputProvider(
4747
/// </summary>
4848
public IMixedRealityInputSource InputSource = null;
4949

50+
/// <summary>
51+
/// The minimum confidence level for the recognizer to fire an event.
52+
/// </summary>
53+
public RecognitionConfidenceLevel RecognitionConfidenceLevel { get; set; }
54+
55+
#if UNITY_STANDALONE_WIN || UNITY_WSA || UNITY_EDITOR_WIN
5056
private KeywordRecognizer keywordRecognizer;
5157

5258
/// <inheritdoc />
@@ -55,8 +61,6 @@ public bool IsRecognitionActive
5561
get { return keywordRecognizer != null && keywordRecognizer.IsRunning; }
5662
}
5763

58-
public RecognitionConfidenceLevel RecognitionConfidenceLevel { get; set; }
59-
6064
/// <inheritdoc />
6165
public override void Enable()
6266
{
@@ -151,6 +155,6 @@ private void OnPhraseRecognized(ConfidenceLevel confidence, TimeSpan phraseDurat
151155
}
152156
}
153157
}
154-
}
155158
#endif // UNITY_STANDALONE_WIN || UNITY_WSA || UNITY_EDITOR_WIN
159+
}
156160
}

0 commit comments

Comments
 (0)