[BUG] Put an empty/whitespace string in SpeechRecognitionKeyword
break the whole speech system
#612
Labels
Package: Input
The Project input package is impacted by this issue.
Type: Bug
A problem with an existing feature that can be fixed with the next patched release.
Describe the bug
If a user or a script set the
SpeechRecognitionKeyword
on aStatefulInteractable
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:
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
SpeechInteractor
allows to register interactable with an empty string put in thekeywordDictionary
and then the UnityKeywordRecognizer
doesn't work.The text was updated successfully, but these errors were encountered: