Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

PhraseRecognizer appears to be broke?

Discussion in '2020.2 Beta' started by baaleos, Dec 5, 2020.

  1. baaleos

    baaleos

    Joined:
    May 12, 2018
    Posts:
    12
    Assertion failed on expression: 'NULL == handler->m_Next'
    UnityEngine.Windows.Speech.PhraseRecognizer:Start ()
    SpellKeywords:Awake () (at Assets/Scripts/Spellcasting/SpellKeywords.cs:20)

    This was working on 2019, but appears to be broke in 2020 beta.

    My code is as follows:


    Code (CSharp):
    1. _recognizer = new KeywordRecognizer(keywords, ConfidenceLevel.Low);
    2.         _recognizer.OnPhraseRecognized += _recognizer_OnPhraseRecognized;
    3.         _recognizer.Start();
    Is there any work-around for this?
     
    code-blep and PhoenixAdvanced like this.
  2. PhoenixAdvanced

    PhoenixAdvanced

    Joined:
    Sep 30, 2016
    Posts:
    316
    I have just recently downloaded Unity 2020.2, and I am getting this same issue. I have no idea how to fix it though, unfortunately.
     
    code-blep likes this.
  3. code-blep

    code-blep

    Joined:
    Oct 1, 2010
    Posts:
    308
    I'm also fighting with the same issue. 2020.2 also.

    For me, it's always on the 3rd restart of the Keyword Recognizer, and the only way to clear it is by restarting Unity.

    The starting of the Keyword Recognizer can happen over 3 different sessions of putting Unity into Play Mode :/
     
    Last edited: Dec 20, 2020
  4. PhoenixAdvanced

    PhoenixAdvanced

    Joined:
    Sep 30, 2016
    Posts:
    316
    Thanks for confirming the issue.

    Now that you mention it, I believe this issue is intermittent for me too. I thought I just didn't notice it on the first few runs, but I do believe you are right, it only occurs after the 3rd or so restart.

    Very odd!
     
  5. code-blep

    code-blep

    Joined:
    Oct 1, 2010
    Posts:
    308
    We are not the only ones to have come across this. For what it's worth, testing today does not seem to indicate any side effects. All working (for me at least), and I am switching between both Dictation and Keyword modes.
     
  6. PhoenixAdvanced

    PhoenixAdvanced

    Joined:
    Sep 30, 2016
    Posts:
    316
    Yep, it seems to be working for me too, the error is just annoying.
     
    code-blep likes this.
  7. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    Hi everybody,

    Thanks for bringing this up. We were able to reproduce this and the devs will look into it.
     
    unity_uCAh1YGgjxXPOw likes this.
  8. PhoenixAdvanced

    PhoenixAdvanced

    Joined:
    Sep 30, 2016
    Posts:
    316
    Excellent, thank you!
     
    LeonhardP likes this.
  9. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136