When enabled, it can recognize audio from both internal and external audio sources, so it’s ready whether something is just playing around you or if you need to identify a song that’s streaming to your AirPods (a feature the Android version added last year).
If you’re running the beta already then you can the button from within your Control Center, then access it by swiping up or down (depending on what model iPhone you have) and just press the button.