Issue regarding EventSlotsUsed in VoiceIntentsExample ML2

Unity Editor version: 2022.2.3f1
ML2 OS version: 1.2.0-dev2 (secure)
Host OS: Windows


we have an issue regarding the use of EventSlots in the VoiceIntentsExample of the ML2.

In general, we would like to work with multiple EventSlots (arguments) within one spoken sentence.

We tried to use the following line of Code of the VoiceIntentsExample that should output all EventSlots used in one voiceIntent (their SlotName and SlotValue):

strBuilder.AppendJoin("\n",voiceEvent.EventSlotsUsed.Select(v => $"Name: {v.SlotName} - Value: {v.SlotValue}"));

However, in doing so, the last SlotValue becomes the next SlotName and so on.

Is it supposed to be like that? If yes, is there an alternative method to return all used EventSlots as a list with SlotName and SlotValue?

We provided an example.

Test 1
Our desired output should be:

SlotName0: Test1
SlotValue0: Tree
SlotName1: Test2
SlotValue1: Bird

Output is:


Test 2
Our desired output should be:

SlotName0: Color
SlotValue0: Red
SlotName1: Shape
SlotValue1: Circle
SlotName2: Value
SlotValue2: 1

Output is:


Thank you very much in advance!

1 Like

Thank you for your post @a.reality. Let me dive into this and report back tomorrow. Thanks for your patience.

1 Like