Skip to content

Commit f66378b

Browse files
committed
clean up
1 parent 2030748 commit f66378b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Assets/MixedRealityToolkit/_Core/Devices/VoiceInput/WindowsSpeechInputDeviceManager.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,20 +85,17 @@ public override void Disable()
8585
keywordRecognizer.Dispose();
8686
}
8787
}
88-
#endif
8988

9089
/// <summary>
9190
/// Make sure the keyword recognizer is off, then start it.
9291
/// Otherwise, leave it alone because it's already in the desired state.
9392
/// </summary>
9493
public void StartRecognition()
9594
{
96-
#if UNITY_STANDALONE_WIN || UNITY_WSA || UNITY_EDITOR_WIN
9795
if (keywordRecognizer != null && !keywordRecognizer.IsRunning)
9896
{
9997
keywordRecognizer.Start();
10098
}
101-
#endif
10299
}
103100

104101
/// <summary>
@@ -107,19 +104,16 @@ public void StartRecognition()
107104
/// </summary>
108105
public void StopRecognition()
109106
{
110-
#if UNITY_STANDALONE_WIN || UNITY_WSA || UNITY_EDITOR_WIN
111107
if (keywordRecognizer != null && keywordRecognizer.IsRunning)
112108
{
113109
keywordRecognizer.Stop();
114110
}
115-
#endif
116111
}
117112

118113
private void KeywordRecognizer_OnPhraseRecognized(PhraseRecognizedEventArgs args)
119114
{
120115
OnPhraseRecognized(args.confidence, args.phraseDuration, args.phraseStartTime, args.text);
121116
}
122-
#endif // UNITY_STANDALONE_WIN || UNITY_WSA || UNITY_EDITOR_WIN
123117

124118
private void OnPhraseRecognized(ConfidenceLevel confidence, TimeSpan phraseDuration, DateTime phraseStartTime, string text)
125119
{

0 commit comments

Comments
 (0)