I’ve created a simple workflow to toggle between audio outputs. It works fine on my setup; one MacBook Pro and one Apple TV. However, currently the workflow only works out of the box on Norwegian OS X systems, since two Norwegian words used in System Preferences are hardcoded in the workflow.
To be honest, I found the code to toggle between the audio outputs somewhere on the Internet, and I’m not really sure how it works. I’m not even sure it will work if you’ve got more than two sources.
Is there any way to fix the language dependency, and make sure it works with i.e. several Apple TVs? It would also be nice to return the name of the new active audio source.