Dictation recognizer freezes from time to time

Hello! First post here, not sure if this is the place to post, hope it is. Sorry for my english in advance, i’ll try to do my best to describe the problem.

I’m developing a VR/Non VR simulation in which im having problems with the dictation recognizer. I can’t catch the issue of why the dictation recognizer is suddnely freezing time to time. Sometimes it happens at the begging of the scene, when i press play. Sometimes it happens after a while.

Im developing in Windows. Already searched for forums, and no solution is given anywhere.

The dictation recognizer works perfectly when it does not freeze, it starts, get my speech input, writes it into text, stops when i trigger an event. But time to time it just stops working.

I am aware of the timeouts variables as well, initializing them with high values to prevent stopping due inactivity, with no luck. Also tried debugging and the problem is not of the dictation “status”. Sometimes it freezes when the last status of the dictation recognizer is still “running”, but it wont “listen” anymore.

I tried reloading the scene and the problem persist, sometimes it helps and works at the reload, sometimes doesent.

I don’t know what else to do or where to look for this problem, any help would be really appretiated. Any questions as well. Thanks in advance.

Also when the “freeze” happens on the dictation recognizer, i use the “debug.log” to print the dictation recognizer status. It says running. Then i press a button to trigger a event where it should stop the dictation recognizer, and it still says the dictation is running, although the function is called (checked with debug log as well).

I have the same problem. Hope somebody knows the answer

If Dictation Recognizer suddenly stops working, please add this line when you create dictation recognizer:

dictationRecognizer.AutoSilenceTimeoutSeconds = 5f;

Also remember to shutdown PhraseRecognitionSystem when you start the dictation recognizer, if you are using both