Logitech media server (squeezebox) with the don’t stop the music plugin. It can use different services for context aware playlists and I found last.fm to be a lot better than Spotify. MusicIP used to be a thing on LMS as well, and probably can still be used, that’s completely local but analyzing new tracks is slow since MusicIP servers are down (MusicIP got bought by Spotify ages ago).
I adored my HP Veer, I bet that if I get a working one in my hands I’ll blind-type flawless again in seconds, I was better on that thing than any full size keyboard. Best phone I’ve ever had because of the keyboard and the ease of customization when you know Javascript. Screen was a bit too small (I consider every modern phone way, way too big) and speed could’ve been better but wasn’t bad.