On iOS there is a Shortcut action for enabling background sounds. This doesn't exist on macOS 13 Ventura, as far as I can tell.
I can enable background sounds manually by navigating to Accessibility -> Audio (in System Settings) and toggling a switch.
But I want to automate this.
The setting appears to be contained in ~/Library/Preferences/com.apple.ComfortSounds.plist
. I tried setting this via terminal with defaults
or plutil
:
# either of these:
defaults write com.apple.ComfortSounds comfortSoundsEnabled -bool YES
plutil -replace comfortSoundsEnabled -bool YES ~/Library/Preferences/com.apple.ComfortSounds.plist
...and confirmed these were making the same change as toggling the switch in System Settings (they did). But no luck, it didn't actually enable background sounds.
It may be possible to use AppleScript to automatically click the appropriate "physical" switch (ex. tell "System Settings" to...
), but I'm not sure how to go about this.
launchctl list
when it is running ? If so may be able to dolaunchctl unload com.appple.ComfortSounds
to stop it and ...load.. to start it... – Mr R Mar 04 '23 at 00:21comfortSoundsEnabled
value was set to (from terminal). – Nebula Mar 04 '23 at 01:01launchctl kill SIGHUP gui/501/com.apple.accessibility.heard
. That worked for me - if you confirm - I'll create an answer. – Mr R Mar 05 '23 at 02:31launchctl kill
command works consistently. I'd happily accept an answer! – Nebula Mar 05 '23 at 23:46