// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using Microsoft.MixedReality.Toolkit.Utilities; using UnityEngine; namespace Microsoft.MixedReality.Toolkit.Input { /// /// Configuration profile settings for setting up and consuming Speech Commands. /// [CreateAssetMenu(menuName = "Mixed Reality/Toolkit/Profiles/Mixed Reality Speech Commands Profile", fileName = "MixedRealitySpeechCommandsProfile", order = (int)CreateProfileMenuItemIndices.Speech)] [HelpURL("https://docs.microsoft.com/windows/mixed-reality/mrtk-unity/features/input/speech")] public class MixedRealitySpeechCommandsProfile : BaseMixedRealityProfile { [SerializeField] [Tooltip("Whether the recognizer should be activated on start.")] private AutoStartBehavior startBehavior = AutoStartBehavior.AutoStart; /// /// The list of Speech Commands users use in your application. /// public AutoStartBehavior SpeechRecognizerStartBehavior => startBehavior; [SerializeField] [Tooltip("Select the minimum confidence level for recognized words")] private RecognitionConfidenceLevel recognitionConfidenceLevel = RecognitionConfidenceLevel.Medium; /// /// The speech recognizer's minimum confidence level setting that will raise the action. /// public RecognitionConfidenceLevel SpeechRecognitionConfidenceLevel => recognitionConfidenceLevel; [SerializeField] [Tooltip("The list of Speech Commands users use in your application.")] private SpeechCommands[] speechCommands = System.Array.Empty(); /// /// The list of Speech Commands users use in your application. /// public SpeechCommands[] SpeechCommands => speechCommands; } }