Describe the bug
If a user or a script set the SpeechRecognitionKeyword on a StatefulInteractable to an empty/whitespace string (and AllowSelectByVoice is still true), the whole speech system stops recognizint keywords, without any warning or error.
If you have a script (in my case a LocalizedStringEvent for Unity Localization package) that briefly set an empty string and then set the correct string, the bug still remains and speech won't work at all.
To reproduce
Steps to reproduce the behavior:
- Open the CanvasExemple scene
- Choose one button and set the SpeechRecognitionKeyword to an empty field
- Build & Run on Hololens
- Look at another button, say "select" and see nothing happen
Expected behavior
If one button SpeechRecognitionKeyword is set to an empty string, other buttons still work.
Your setup
- Unity Version: 2021.3.21f1
- MRTK Version or Commit: current main branch 3707957
Target platform
Additional context
The issue is that the SpeechInteractor allows to register interactable with an empty string put in the keywordDictionary and then the Unity KeywordRecognizer doesn't work.
Describe the bug
If a user or a script set the
SpeechRecognitionKeywordon aStatefulInteractableto an empty/whitespace string (and AllowSelectByVoice is still true), the whole speech system stops recognizint keywords, without any warning or error.If you have a script (in my case a
LocalizedStringEventfor Unity Localization package) that briefly set an empty string and then set the correct string, the bug still remains and speech won't work at all.To reproduce
Steps to reproduce the behavior:
Expected behavior
If one button SpeechRecognitionKeyword is set to an empty string, other buttons still work.
Your setup
Target platform
Additional context
The issue is that the
SpeechInteractorallows to register interactable with an empty string put in thekeywordDictionaryand then the UnityKeywordRecognizerdoesn't work.