MixedRealityToolkit-Unity
MixedRealityToolkit-Unity copied to clipboard
Dictation Example: Dictation Recognizer Fails to Start. Microphone, InternetClient, and Dictation Input Service Provider added.
Describe the bug
The Dictation Example fails to work using MRTK 2.7.3 on Hololens 2.
Clicking "Start Recording" generates an error "Dictation Recognizer Failed to Start."
Both Microphone and Internet Client are enabled under player capabilities, and both Speech and Dictation Input are added under Input Provders in MRTK Game Object Settings.
Voice commands work as expected, but dictation does not work.
To reproduce
Steps to reproduce the behavior:
- Set up scene with MRTK 2.7.3 using MRTK Feature Tool
- Import MRTK Examples
- Open Dictation Example
- Verify InternetClient + Microphone capabilities are active under Player Settings
- Verify Windows Dictation Input data provider is added and configured
- Verify Speech Input Data provider is added and configured
- Use either Holographic Remoting for Play Mode or Build New Project
- Deploy / Play demo scene
- Click "Start Recording"
- "Dictation Recognizer Failed to Start" will display.
Expected behavior
Clicking Start Recording would properly initialize and begin Dictation Recognizer
Screenshots
Your setup (please complete the following information)
- Unity Version 2020.3.28f1
- MRTK Version 2.7.3.0
Target platform (please complete the following information)
- HoloLens 2
Additional context
Any word?
Checking in again. This was almost a month ago.
I encountered the same problem, but solved it by turn on Speech in Settings-->Privacy
you can have a try
i cannot find Speech in Settings-->Privacy
I encountered the same problem, but solved it by turn on Speech in Settings-->Privacy
you can have a try
no puedo encontrar Voz en Ajustes-->Privacidad
Encontré el mismo problema, pero lo resolví activando Voz en Configuración-->Privacidad puedes intentarlo
Configuración --> Voz --> Reconocimiento de voz en línea
My problem arises when I press the start recording button and the stop button. The console shows me an error when starting the recording: Unable to start recording UnityEngine.Debug:LogWarning (object) Microsoft.MixedReality.Toolkit.Windows.Input.WindowsDictationInputProvider/<StartRecordingAsync>d__10:MoveNext () (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation@f1a47e3e6ce9-1687845280098/Providers/Windows/WindowsDictationInputProvider.cs:91) System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start<Microsoft.MixedReality.Toolkit.Windows.Input.WindowsDictationInputProvider/<StartRecordingAsync>d__10> (Microsoft.MixedReality.Toolkit.Windows.Input.WindowsDictationInputProvider/<StartRecordingAsync>d__10&) Microsoft.MixedReality.Toolkit.Windows.Input.WindowsDictationInputProvider:StartRecordingAsync (UnityEngine.GameObject,single,single,int,string) Microsoft.MixedReality.Toolkit.Windows.Input.WindowsDictationInputProvider/<StartRecording>d__7:MoveNext () (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation@f1a47e3e6ce9-1687845280098/Providers/Windows/WindowsDictationInputProvider.cs:72) System.Runtime.CompilerServices.AsyncVoidMethodBuilder:Start<Microsoft.MixedReality.Toolkit.Windows.Input.WindowsDictationInputProvider/<StartRecording>d__7> (Microsoft.MixedReality.Toolkit.Windows.Input.WindowsDictationInputProvider/<StartRecording>d__7&) Microsoft.MixedReality.Toolkit.Windows.Input.WindowsDictationInputProvider:StartRecording (UnityEngine.GameObject,single,single,int,string) Microsoft.MixedReality.Toolkit.Input.DictationHandler:StartRecording () (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation@f1a47e3e6ce9-1687845280098/SDK/Features/Input/Handlers/DictationHandler.cs:64) UnityEngine.Events.UnityEvent:Invoke () Microsoft.MixedReality.Toolkit.UI.Interactable:SendOnClick (Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer) (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation@f1a47e3e6ce9-1687845280098/SDK/Features/UX/Interactable/Scripts/Interactable.cs:1274) Microsoft.MixedReality.Toolkit.UI.Interactable:TriggerOnClick (bool) (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation@f1a47e3e6ce9-1687845280098/SDK/Features/UX/Interactable/Scripts/Interactable.cs:1264) Microsoft.MixedReality.Toolkit.PhysicalPressEventRouter:OnHandPressTriggered () (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation@f1a47e3e6ce9-1687845280098/SDK/Features/UX/Scripts/PressableButtons/PhysicalPressEventRouter.cs:90) UnityEngine.Events.UnityEvent:Invoke () Microsoft.MixedReality.Toolkit.UI.PressableButton:UpdatePressedState (single) (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation@f1a47e3e6ce9-1687845280098/SDK/Features/UX/Scripts/PressableButtons/PressableButton.cs:543) Microsoft.MixedReality.Toolkit.UI.PressableButton:UpdateTouch () (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation@f1a47e3e6ce9-1687845280098/SDK/Features/UX/Scripts/PressableButtons/PressableButton.cs:342) Microsoft.MixedReality.Toolkit.UI.PressableButton:Update () (at Library/PackageCache/com.microsoft.mixedreality.toolkit.foundation@f1a47e3e6ce9-1687845280098/SDK/Features/UX/Scripts/PressableButtons/PressableButton.cs:327)
I encountered the same problem, but solved it by turn on Speech in Settings-->Privacy
you can have a try
i can't find the setting can you please post a screenshot would be helpfull thank you
Try in "Setting - > Privacy -> Speech "-> Turn on "Online speech recognition" and "Speech recognition"
We appreciate your feedback and thank you for reporting this issue.
Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority security issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.
Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.
Please note that MRTK3 was released in August 2023. It features an all-new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visit https://www.mixedrealitytoolkit.org.
Thank you for your continued support of the Mixed Reality Toolkit!