Your iPhone can continuously listen for certain sounds—such as a doorbell, siren, or crying baby—and notify you when it recognizes these sounds.
Note: Don’t rely on your iPhone to recognize sounds in circumstances where you may be harmed or injured, in high-risk or emergency situations, or for navigation.
Go to Settings Accessibility features for hearing on iPhone