Some phones have IR blasters to enable remote functions, but even if yours doesn't, you can do quite a lot over Bluetooth and Wi-Fi.
I receive and test smartphones for a living, and so I always have a few old mobiles hanging around which serve no function but to gather dust. That's doubly true because, for some reason, friends and ...
Whether you just got a Sonos speaker or you're adding one to your current setup, you'll need to use the app.