Apple Support: How to use Sound Recognition on your iPhone or iPad

If you’re not aware of this part of iOS/iPadOS Accessibility settings, take a minute to watch the video. In a nutshell, turn on Sound Recognition to get a notification when, say, the doorbell rings and you’ve got headphones on.

Note that Sound Recognition disables Hey Siri.