- install switchaudio-osx
- decide which devices to toggle between. If you don't care about toggling through all available sources, use
-n
flag:
SwitchAudioSource -n
- use a tool such as keyboard maestro to assign a hotkey to call the applescript created earlier.