Is there a method of displaying which audio input/output device is selected, without needing to click the sound icon in the menu-bar? I'd like to have it displayed permanently in the menu-bar and have it display whatever is actively selected.
1 Answer
With jq
installed you can run
system_profiler -json SPAudioDataType |
jq -r '.SPAudioDataType[]._items[]
| select(.coreaudio_default_audio_system_device) | ._name'
like
$ system_profiler -json SPAudioDataType |
jq -r '.SPAudioDataType[]._items[]
| select(.coreaudio_default_audio_system_device) | ._name'
Jabra EVOLVE LINK
There's also a CLI utility called SwitchAudioSource available via HomeBrew (/ht this answer).
$ SwitchAudioSource -c
Jabra EVOLVE LINK
system_profiler SPAudioDataType
in Terminal and if yes, could you add to your question why it's not sufficient? Do you want selected audio IO displayed permanently without any user action? If your question can be more specific, the answers will be more relevant.