So, I want to basically make a audio device switcher in windows 11. so, in windows 11 you change the audio device by pressing windows + A.

then the arrow next to the volume slider

And then Clicking on the device name

I recorded my steps but when playing them back, I got error :-

I am a beginner so, I need help to fix this error
Thank You for any help