- Home /
 
DictationRecognizer stops working after a random period of time
I can get DictationRecognizer to start and use it but only for a certain amount of time. After a while voice recognition just stops working. Moreover, if I try to do Stop() it looks like it does nothing and the property Status always returns Running...
I've implemented a coroutine to start the voice recognition in a continuous way because everytime the dictation result was different than Complete the voice recognition would stop automatically.
 IEnumerator ControlVoiceRecog()
 {
     while (true)
     {
         Debug.LogError("Voice recog status: " + m_DictationRecognizer.Status);
         if (m_DictationRecognizer.Status == SpeechSystemStatus.Stopped)
         {
             m_DictationRecognizer.Start();
         }
         yield return new WaitForSeconds(1);
     }
 }
 
               This method allows my application to be continuously listening even after I change between apps (which causes DictationCompletionCause.Canceled) but after a while it just stops working since the Status of the DictationRecognizer always returns true but in reality it is not detecting anything.
I have also set these two properties thinking it would solve the problem:
 m_DictationRecognizer.AutoSilenceTimeoutSeconds = float.PositiveInfinity;
 m_DictationRecognizer.InitialSilenceTimeoutSeconds = float.PositiveInfinity;
 
               But it didn't... at this point I don't know what else to try that is why I'm here seeking for advice.. Thanks in advance
Hi, I am facing same problem, Have you find solution for this.
Your answer
 
             Follow this Question
Related Questions
Dictation Recognizer does not recognize words 0 Answers
Speech recognition on Android with Unity 3D 0 Answers
Is it possible to use Arabic google speech APIs with unity3D ? 2 Answers
Creating a KeywordRecognizer makes Unity crash 1 Answer
Speech Recognition in background doesn't work correctly! 2 Answers