MacOS – the settings for microphone input volume stored

audiomacosmicrophonesettings

I'm trying to write a script that detects a change in this setting:
Setting in the red box

However, I'm having trouble locating the .plist file where this setting is stored. Does anyone where I can find this file?

Edit: I feel like it may be located at /Library/Preferences/Audio/com.apple.audio.DeviceSettings.plist
however, I can't narrow down the numeric value that corresponds to input volume

Best Answer

I don't know in which file the value is stored, I haven't found any file change in your suggested file when I changed the input volume.

But you can access the value via Terminal and AppleScript:

osascript -e 'input volume of (get volume settings)'

This will get your input volume as a number between 0 and 100.

Related Question