So Apple feeling any pressure from Pixel 2 and Android 8?
In a reversal of form the Pixel 2 can recognise the music from the phone, but Shazam (Apple) needs to call back to the cloud.
Google Assistant can also recognise music playing on other devices that are part of the same connected account. So example, a Google Home playing music from Spotify in another room, I can ask my phone what the music is and it will tell me without listening. This also works with Android TV and the YouTube app.