microsoft / MixedRealityToolkit-Unity

This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
https://aka.ms/mrtkdocs
MIT License
6k stars 2.12k forks source link

Dictation Example: Dictation Recognizer Fails to Start. Microphone, InternetClient, and Dictation Input Service Provider added. #10582

Closed polygonfuture closed 9 months ago

polygonfuture commented 2 years ago

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:

  1. Set up scene with MRTK 2.7.3 using MRTK Feature Tool
  2. Import MRTK Examples
  3. Open Dictation Example
  4. Verify InternetClient + Microphone capabilities are active under Player Settings
  5. Verify Windows Dictation Input data provider is added and configured
  6. Verify Speech Input Data provider is added and configured
  7. Use either Holographic Remoting for Play Mode or Build New Project
  8. Deploy / Play demo scene
  9. Click "Start Recording"
  10. "Dictation Recognizer Failed to Start" will display.

Expected behavior

Clicking Start Recording would properly initialize and begin Dictation Recognizer

Screenshots

file

Your setup (please complete the following information)

Target platform (please complete the following information)

Additional context

polygonfuture commented 2 years ago

Any word?

polygonfuture commented 2 years ago

Checking in again. This was almost a month ago.

mia-li commented 2 years ago

I encountered the same problem, but solved it by turn on Speech in Settings-->Privacy

you can have a try

ZFHung commented 1 year ago

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

raucal commented 1 year ago

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

raucal commented 1 year ago

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/d10: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/d10> (Microsoft.MixedReality.Toolkit.Windows.Input.WindowsDictationInputProvider/d10&) Microsoft.MixedReality.Toolkit.Windows.Input.WindowsDictationInputProvider:StartRecordingAsync (UnityEngine.GameObject,single,single,int,string) Microsoft.MixedReality.Toolkit.Windows.Input.WindowsDictationInputProvider/d7: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/d7> (Microsoft.MixedReality.Toolkit.Windows.Input.WindowsDictationInputProvider/d7&) 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)

image

Walidkila1 commented 1 year ago

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

janakanuwan commented 11 months ago

Try in "Setting - > Privacy -> Speech "-> Turn on "Online speech recognition" and "Speech recognition"

IssueSyncBot commented 9 months ago

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!