On iOS there’s a Shortcut motion for enabling background sounds. This does not exist on macOS 13 Ventura, so far as I can inform.
I can allow background sounds manually by navigating to Accessibility -> Audio (in System Settings) and toggling a swap.
However I need to automate this.
The setting seems to be contained in ~/Library/Preferences/com.apple.ComfortSounds.plist
. I attempted setting this by way of terminal with defaults
or plutil
:
# both of those:
defaults write com.apple.ComfortSounds comfortSoundsEnabled -bool YES
plutil -replace comfortSoundsEnabled -bool YES ~/Library/Preferences/com.apple.ComfortSounds.plist
…and confirmed these have been making the identical change as toggling the swap in System Settings (they did). However no luck, it did not really allow background sounds.
It might be attainable to make use of AppleScript to robotically click on the suitable “bodily” swap (ex. inform "System Settings" to...
), however I am unsure learn how to go about this.