Encounter an error-- "Configuration could not be retrieved for Microsoft.MixedReality.Toolkit.Speech.Windows.WindowsPhraseRecognitionSubsystem+WindowsPhraseRecognitionProvider." --when MRTKLifecycleManager attempts to start the MRTK Windows PhraseRecognition Subsystem.
To reproduce
Steps to reproduce the behavior:
(In Editor) enable "MRTK Windows PhraseRecognition Subsystem" in Project Settings > MRTK3
Open Unity scene containing the default MRTK XR Rig prefab
Play
See above error in Console immediately after "[MRTKLifecycleManager] Starting Microsoft.MixedReality.Toolkit.Speech.Windows.WindowsPhraseRecognitionSubsystem"
Expected behavior
PhraseRecognition Subsystem starts with no errors.
Error does not occur after downgrading to com.microsoft.mrtk.windowsspeech 3.0.0-pre.12 .
I believe the problem is in WindowsPhraseRecognitionSubsystem.cs:
In WindowsPhraseRecognitionProvider.Start , changing the second type argument in:
config = XRSubsystemHelpers.GetConfiguration<WindowsPhraseRecognitionSubsystemConfig, WindowsPhraseRecognitionProvider>();
to:
config = XRSubsystemHelpers.GetConfiguration<WindowsPhraseRecognitionSubsystemConfig, WindowsPhraseRecognitionSubsystem>();
appears to fix the error and is consistent with other XRSubsystemHelpers.GetConfiguration calls e.g. in WindowsSpeechRecognitionProvider and the MRTK Hand Aggregator Subsystem.
Original issue opened by:
datglove
Describe the bug
Encounter an error-- "Configuration could not be retrieved for Microsoft.MixedReality.Toolkit.Speech.Windows.WindowsPhraseRecognitionSubsystem+WindowsPhraseRecognitionProvider." --when MRTKLifecycleManager attempts to start the MRTK Windows PhraseRecognition Subsystem.
To reproduce
Steps to reproduce the behavior:
Expected behavior
PhraseRecognition Subsystem starts with no errors.
Your setup
Target platform
Additional context
Error does not occur after downgrading to com.microsoft.mrtk.windowsspeech 3.0.0-pre.12 .
I believe the problem is in WindowsPhraseRecognitionSubsystem.cs: In WindowsPhraseRecognitionProvider.Start , changing the second type argument in:
config = XRSubsystemHelpers.GetConfiguration<WindowsPhraseRecognitionSubsystemConfig, WindowsPhraseRecognitionProvider>();
to:config = XRSubsystemHelpers.GetConfiguration<WindowsPhraseRecognitionSubsystemConfig, WindowsPhraseRecognitionSubsystem>();
appears to fix the error and is consistent with other XRSubsystemHelpers.GetConfiguration calls e.g. in WindowsSpeechRecognitionProvider and the MRTK Hand Aggregator Subsystem.ISSUE MIGRATION
Issue migrated from: https://github.com/microsoft/MixedRealityToolkit-Unity/issues/11366