With Sound Recognition in CarPlay, you can have iPhone continuously listen for car horns and sirens, and recognize them using on-device intelligence. A notification appears on the CarPlay touchscreen when these sounds are detected.
Note: Sound Recognition in CarPlay is available with Accessibility features for hearing on iPhone