I am using Windows 10 and trying to use the DictationRecognizer.
It always results in an UnknownError. I’m at a loss for what to try to fix it.
Cortana works on my machine and understands dictation. I tried building with a Windows Store build but that didn’t affect the result. The KeywordRecognizer works.
I have the exact same problem, only solution that has been found thus far is to roll back pre-Win10-Anniversary update. Not sure who broke what but some attention from either Microsoft or Unity would be much appreciated!
EDIT: I’ve been in contact with Unity, and they claim it’s the fault of Windows and they will never fix it. The solution is to downgrade windows (or upgrade to the next version when it comes out), as 1607 is broken. The problem is, any users on the Anniversary Edition won’t be able to use your stuff.
Our solution, for those who really need this, is to spin the voice recognition off into a separate process, and send the inputs back into Unity.
The DictationCompletionCause.UnknownError received upon request completion seems to be related to your Windows updates. I tried the same piece of code on several devices, with or without updates, and devices which were last updated before October were able to recognize speech.
The problem does not occur when using the 32-bits version of the Unity Editor, or in a 32-bits build; but will always occur on an updated, 64-bits Windows.
“Solution” would be to switch Unity to 32-bits (Editor or only your build configuration); or revert the faulty update (don’t know which one though).
Edit: I am using Unity 5.4.1. Updating to 5.4.3 to see if it changes anything.
I hope this helps other Hololens devs (that was how I found this thread):
-DictationRecognizer works fine on Hololens (Win 10 Holographic) w/ Unity 5.5.2 p4 (64 bit), but only when deployed on the device, on the editor it’s still bust.
Could it be related to the fact that the Hololens is an x86 device?