On the surface that looks correct. What, specifically, isn't working? Does it always play the "voiceline saying that confirmation failed"?
You can right-click the action list, choose "Copy All as Text" from the context menu, then paste here into a code block (click the # button), rather than manually transcribing all that (which also makes sure no potentially significant details are lost)
As an aside, if both "Confirm" and "Yes" are intended to trigger the same command, you can use the condition builder to merge that into an "OR" condition (right-click the first condition and choose "Edit With Condition Builder")
Also meant to point out that setting the "Confirmation" variable beforehand is redundant: The "Wait For Spoken Response" action will overwrite that value (which would also create the variable, if it doesn't exist already) regardless of which options are set in that action.