Using 'Set Sound Output' and 'Set Sound Input' Together
When macros Set Sound Output (Version 6.0+) and Set Sound Input (Version 1.0+) are used together and called as subroutines, both sound settings can be set with minimal manipulation of the System Preferences (or System Settings).
For example, suppose the System Settings Privacy & Security pane is open. A macro that calls Set Sound Output (SSO) and Set Sound Input (SSI) could change the two settings and return to the Privacy & Security pane in just a few seconds.
Here are the steps:
- Both SSO and SSI can create macros that call themselves by simply executing them from the Keyboard Maestro Editor. For example, if SSO is executed from the editor, the following dialog appears:

If MacBook Pro Speakers is entered, the following macro is created.

- Likewise, if SSI is executed from the editor, the following dialog appears:

And if MacBook Pro Microphone is entered, the following macro is created.

- If the two macro are combined and the parameters are set as depicted, the combined macro would save the current state of the System Settings (in this hypothetical, open to the Privacy & Security pane), change the Sound Output, change the Sound Input, and return the System Settings to the initial state.

The Save Initial State and Exit Action parameters provide several other possibilities. Refer to the comments in the calling macros for more information.