- Home /
DictationRecognizer : catch "Dictation support is not enabled on this device"
Hello,
I'm working with Dictation Recognizer to fill text area more easily in VR. Everything work well but if some parameters in Windows10 privacy are not enabled, DictationRecognizer crash and Unity too. So, as it's not mandatory (because there is also a virtual keyboard), I don't want my application to crash. DictationRecognizer gives me the event
DictationRecognizer_OnDictationError
to handle error like this (the warning on the picture is mine) but it's not enough to avoid my application to crash. I can't use a try catch as this errors seems to happen out of my aplication (there is no stack explaining how I arrived to this exception). The DictationRecognizer is initialized and started without any problems too.
Is there a way to catch those kind of error ? Can I verify windows privacy parameter before starting the DictationRecognizer ?
Thanks for your help
Your answer
![](https://koobas.hobune.stream/wayback/20220613005508im_/https://answers.unity.com/themes/thub/images/avi.jpg)