Google has confirmed that the Assistant's ability to recognize music/songs being played around users has started rolling out to non-Google devices as well. The feature - which works like Shazam or SoundHound - was only available on Pixel 2 phones until now. Reports confirm the functionality now works on devices by other manufacturers like OnePlus and Nextbit. Following screenshots - taken from a OnePlus 5 unit - confirms this: In case the Assistant app on your device isn't recognizing music yet, it's likely because the update hasn't reached your device. Google says the rollout began...
Source: https://www.gsmarena.com/assistants_music_recognition_feature_rolling_out_to_nongoogle_devices_as_well-news-28119.php