Quote:
That's odd! You shouldn't need to put the full names of the devices. You just need to make sure that the names are different enough so that one of your items in the array doesn't match both of the audio devices you are trying to switch between. Could this be your problem?
This script doesn't use the contains method, but it uses a similar method called 'IndexOf' that does the same thing. I changed it to use this method because I wanted to ignore the casing. Ie. "headset" will now match "Headset", but it didn't before.
I hope this helps!