Skip to content

Commit e491011

Browse files
Merge pull request #935 from Zod-/Fix-Using-Directive
Fix for speech cross platform support
2 parents 6565607 + fce8168 commit e491011

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Assets/HoloToolkit/Input/Scripts/Voice/SpeechInputSource.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,14 @@ public enum RecognizerStartBehavior { AutoStart, ManualStart };
4747
[Tooltip("Whether the recognizer should be activated on start.")]
4848
public RecognizerStartBehavior RecognizerStart;
4949

50-
[Tooltip("The confidence level for the keyword recognizer.")]
51-
public ConfidenceLevel RecognitionConfidenceLevel;
52-
5350
[Tooltip("The keywords to be recognized and optional keyboard shortcuts.")]
5451
public KeywordAndKeyCode[] Keywords;
5552

5653
#if UNITY_WSA || UNITY_STANDALONE_WIN
54+
[Tooltip("The confidence level for the keyword recognizer.")]
55+
//The serialized data of this field will be lost when switching between platforms and re-serializing this class.
56+
public ConfidenceLevel RecognitionConfidenceLevel;
57+
5758
private KeywordRecognizer keywordRecognizer;
5859

5960
#region Unity Methods

0 commit comments

Comments
 (0)