Certain models of Google Pixel phones, running Android 10 or up, can automatically identify music nearby right from your phone. To enable, go to Settings > Sound and vibration > Now Playing, then toggle on 'Identify songs playing nearby' to display detected tracks on your device's lock screen. You can view previously identified songs by tapping 'Now Playing History', and tap the heart button next to a track to favourite it for future reference.