Apple added support for Background Noise in macOS. Unfortunately this can only be enabled and disabled inside the settings.
There is a alternative way through the command line:
Enable sound:
defaults write com.apple.ComfortSounds comfortSoundsEnabled -bool YES
defaults write com.apple.ComfortSounds lastEnablementTimestamp $(date +%s)
killall heard
Disable sound:
defaults write com.apple.ComfortSounds comfortSoundsEnabled -bool NO
killall heard
It might be nice to control this with shortcuts.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too