I have the same bulbs, and at first I thought you'd need a bunch of extra equipment for syncing. Turns out the official Philips Hue app has a built-in sound sync feature. You just open the app, go to room settings, find the "Music Sync" option or something like that in the effects section. Then you select your phone's microphone as the sound source, and the bulbs start responding to music in real time.
It works without extra equipment, but there are some catches. First, the sensitivity depends on how loud the music is playing next to your phone - if the music is coming from speakers on the other side of the room, the effect will be weaker. Second, the app has to keep running in the background, which drains your battery. I usually keep my phone near me or place it closer to the sound source.
If that's not enough and you want more complex scenarios, there are alternatives like connecting the bulbs to smart assistants or using third-party apps (though that requires messing with APIs), but for a simple light-music effect, the built-in feature works just fine.