The music recognition feature works similar to Shazam app although the later is faster and better. It allows you identify music playing on your phone.

HOW IT WORKS
For instance, if you are playing a song on your Android device, long press on the home button to launch your Google assistant, then, say this —
“What is playing right now”
Once your voice is recognized by google, you should have something that looks like the screenshot above:
And in a couple of seconds, get the song that is playing.
Though personally, there were times I got the “I can’t identify songs yet” response, but if you try again you might be lucky.