On my desktop I do this with quodlibet alongside the KDE connect applet + KDE connect android app, which lets the phone control media players on the desktop. You probably don’t want to run a full desktop environment just for this, but it’s a good option if you already have a desktop PC with decent speakers.
Mentioning it just in case, because it works for me. If you’re looking for a purely headless server there are other good suggestions in this thread.