Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions org.mixedrealitytoolkit.windowsspeech/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

## Unreleased

### Fixed

* Fixed compiler warning CS0414 for `confidenceLevel` on non-Windows platforms in `WindowsKeywordRecognitionSubsystemConfig` and `WindowsDictationSubsystemConfig`. [PR #1145](https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/pull/1145)

## [3.0.4] - 2025-11-12

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,23 @@ public class WindowsDictationSubsystemConfig : BaseSubsystemConfig
[SerializeField, Tooltip("The confidence threshold for the recognizer to return its result.")]
private WindowsSpeechConfidenceLevel confidenceLevel = WindowsSpeechConfidenceLevel.Medium;

/// <summary>
/// The recognition confidence level for this subsystem configuration.
/// </summary>
internal WindowsSpeechConfidenceLevel SpeechConfidenceLevel
{
get => confidenceLevel;
set => confidenceLevel = value;
}

#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN || UNITY_WSA
/// <summary>
/// The confidence threshold for the recognizer to return its result.
/// </summary>
public ConfidenceLevel ConfidenceLevel
{
get => confidenceLevel.ToUnityConfidenceLevel();
set => confidenceLevel = value.ToWindowsSpeechConfidenceLevel();
get => SpeechConfidenceLevel.ToUnityConfidenceLevel();
set => SpeechConfidenceLevel = value.ToWindowsSpeechConfidenceLevel();
}
#endif // UNITY_STANDALONE_WIN || UNITY_WSA || UNITY_EDITOR_WIN
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,23 @@ public class WindowsKeywordRecognitionSubsystemConfig : BaseSubsystemConfig
[SerializeField, Tooltip("The confidence threshold for the recognizer to return its result.")]
private WindowsSpeechConfidenceLevel confidenceLevel = WindowsSpeechConfidenceLevel.Medium;

/// <summary>
/// The recognition confidence level for this subsystem configuration.
/// </summary>
internal WindowsSpeechConfidenceLevel SpeechConfidenceLevel
{
get => confidenceLevel;
set => confidenceLevel = value;
}

#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN || UNITY_WSA
/// <summary>
/// The confidence threshold for the recognizer to return its result.
/// </summary>
public ConfidenceLevel ConfidenceLevel
{
get => confidenceLevel.ToUnityConfidenceLevel();
set => confidenceLevel = value.ToWindowsSpeechConfidenceLevel();
get => SpeechConfidenceLevel.ToUnityConfidenceLevel();
set => SpeechConfidenceLevel = value.ToWindowsSpeechConfidenceLevel();
}
#endif // UNITY_STANDALONE_WIN || UNITY_WSA || UNITY_EDITOR_WIN
}
Expand Down
2 changes: 1 addition & 1 deletion org.mixedrealitytoolkit.windowsspeech/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "org.mixedrealitytoolkit.windowsspeech",
"version": "3.0.4-development",
"version": "3.0.5-development",
"description": "Speech subsystem implementation for native Windows speech APIs enables native Windows text-to-speech and speech recognition features, producing events to drive XRI interactions using speech.",
"displayName": "MRTK Windows Speech",
"msftFeatureCategory": "MRTK3",
Expand Down
Loading