Skip to content

Commit 3c3b743

Browse files
author
Alex Cooper (ANALOG)
committed
Revert SpeechSupported change
1 parent c6993dd commit 3c3b743

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

Assets/MixedRealityToolkit/_Core/Definitions/InputSystem/MixedRealityInputSystemProfile.cs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License. See LICENSE in the project root for license information.
33

4-
using System.Globalization;
5-
using System.Collections.Generic;
64
using Microsoft.MixedReality.Toolkit.Core.Definitions.Devices;
75
using Microsoft.MixedReality.Toolkit.Core.Definitions.Utilities;
86
using Microsoft.MixedReality.Toolkit.Core.Interfaces.Devices;
@@ -76,24 +74,6 @@ public MixedRealityPointerProfile PointerProfile
7674
/// </summary>
7775
public IMixedRealitySpeechSystem SpeechSystem => speechSystem ?? (speechSystem = MixedRealityToolkit.Instance.GetService<IMixedRealitySpeechSystem>());
7876

79-
80-
/// <summary>
81-
/// The list of cultures where speech recognition is supported. Cultures added as needed
82-
/// </summary>
83-
private List<CultureInfo> supportedVoiceCultures = new List<CultureInfo>
84-
{
85-
new CultureInfo("en-US")
86-
};
87-
88-
/// <summary>
89-
/// REturns whether speech is supported for the current language/culture or not
90-
/// </summary>
91-
public bool IsSpeechSupported
92-
{
93-
// Use UI Culture instead of just culture since that will match the current display lang/culture
94-
get { return supportedVoiceCultures.Contains(CultureInfo.CurrentUICulture); }
95-
}
96-
9777
/// <summary>
9878
/// Is the speech Commands Enabled?
9979
/// </summary>

0 commit comments

Comments
 (0)