Skip to content

Commit a796e2e

Browse files
committed
Update #if wrappings around speech providers
1 parent 6055d4e commit a796e2e

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Assets/MixedRealityToolkit.Providers/WindowsVoiceInput/WindowsDictationInputProvider.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313

1414
namespace Microsoft.MixedReality.Toolkit.Windows.Input
1515
{
16-
#if UNITY_STANDALONE_WIN || UNITY_WSA || UNITY_EDITOR_WIN
17-
1816
[MixedRealityExtensionService(SupportedPlatforms.WindowsStandalone | SupportedPlatforms.WindowsUniversal | SupportedPlatforms.WindowsEditor)]
1917
public class WindowsDictationInputProvider : BaseDeviceManager, IMixedRealityDictationSystem
2018
{
@@ -31,11 +29,10 @@ public WindowsDictationInputProvider(
3129
uint priority = DefaultPriority,
3230
BaseMixedRealityProfile profile = null) : base(registrar, name, priority, profile) { }
3331

34-
/// <summary>
35-
/// Is the Dictation Manager currently running?
36-
/// </summary>
32+
/// <inheritdoc />
3733
public bool IsListening { get; private set; } = false;
3834

35+
#if UNITY_STANDALONE_WIN || UNITY_WSA || UNITY_EDITOR_WIN
3936
private bool hasFailed;
4037
private bool hasListener;
4138
private bool isTransitioning;
@@ -130,6 +127,7 @@ public override async void Disable()
130127
}
131128
}
132129

130+
/// <inheritdoc />
133131
public override void Destroy()
134132
{
135133
if (Application.isPlaying)

Assets/MixedRealityToolkit.Providers/WindowsVoiceInput/WindowsSpeechInputProvider.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313

1414
namespace Microsoft.MixedReality.Toolkit.Windows.Input
1515
{
16-
#if UNITY_STANDALONE_WIN || UNITY_WSA || UNITY_EDITOR_WIN
17-
1816
[MixedRealityExtensionService(SupportedPlatforms.WindowsStandalone | SupportedPlatforms.WindowsUniversal | SupportedPlatforms.WindowsEditor)]
1917
public class WindowsSpeechInputProvider : BaseDeviceManager, IMixedRealitySpeechSystem
2018
{
@@ -41,6 +39,12 @@ public WindowsSpeechInputProvider(
4139
/// </summary>
4240
public IMixedRealityInputSource InputSource = null;
4341

42+
/// <summary>
43+
/// The minimum confidence level for the recognizer to fire an event.
44+
/// </summary>
45+
public RecognitionConfidenceLevel RecognitionConfidenceLevel { get; set; }
46+
47+
#if UNITY_STANDALONE_WIN || UNITY_WSA || UNITY_EDITOR_WIN
4448
private KeywordRecognizer keywordRecognizer;
4549

4650
/// <inheritdoc />
@@ -49,8 +53,6 @@ public bool IsRecognitionActive
4953
get { return keywordRecognizer != null && keywordRecognizer.IsRunning; }
5054
}
5155

52-
public RecognitionConfidenceLevel RecognitionConfidenceLevel { get; set; }
53-
5456
/// <inheritdoc />
5557
public override void Enable()
5658
{

Assets/MixedRealityToolkit/Interfaces/Devices/IMixedRealityDictationSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Microsoft.MixedReality.Toolkit.Input
1212
public interface IMixedRealityDictationSystem : IMixedRealityDeviceManager, IMixedRealityExtensionService
1313
{
1414
/// <summary>
15-
/// Is the system currently listing to dictation input?
15+
/// Is the system currently listing for dictation input?
1616
/// </summary>
1717
bool IsListening { get; }
1818

0 commit comments

Comments
 (0)